Page Layoutfncychap | Application to ToC, LoF and LoT

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ahmedsalahais
Posts: 14
Joined: Sat Mar 19, 2011 11:17 pm

fncychap | Application to ToC, LoF and LoT

Post by ahmedsalahais »

Hi all,

I'm trying to use the fncychap package to decorate titles. It works well but not for ToC, LoF, and LoT which I use tocloft for them. Is there any way to get around it?

Here's my MWE:

Code: Select all

\documentclass[a4paper, 12pt]{book}
\usepackage{tocloft}
\usepackage{algorithm2e}
\usepackage[Sonny]{fncychap}

\begin{document}
	\renewcommand\contentsname{Table of Contents}
	\tableofcontents
    \newpage
	\addcontentsline{toc}{chapter}{List of Tables}
	\listoftables
    \newpage
	\addcontentsline{toc}{chapter}{List of Figures}
	\listoffigures
    \newpage
	\addcontentsline{toc}{chapter}{List of Algorithms}
	\listofalgorithms

\end{document}
Thanks,
Ahmed Salah
Last edited by localghost on Fri Jun 08, 2012 10:07 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

fncychap | Application to ToC, LoF and LoT

Post by meho_r »

Try adding the titles package option to tocloft (take a look at section 2.1 of the tocloft manual):

Code: Select all

\usepackage[titles]{tocloft}
ahmedsalahais
Posts: 14
Joined: Sat Mar 19, 2011 11:17 pm

Re: fncychap | Application to ToC, LoF and LoT

Post by ahmedsalahais »

Thanks a lot. That was the solution, Brilliant!
Post Reply