Page Layout ⇒ Table of Content Formating
Table of Content Formating
I need to change two things in the Table of Content (and also in List of Figures and List of Tables):
1) I need to change the upper margin (I need to add 0,5 or 1 cm)
2) I need to put the page number in the upper right corner (by default is in the bottom center). I tried to do this with a new page style (defined by \newpagestyle{titulos}... and using \thispagestyle{titulos} before \tableofcontents) but it didn't work. Although, it worked to place the Chapter pages number.
Could anybody help with this?
Thank you very much
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
Table of Content Formating
the following example shows a posible solution using some of the commands provided by the tocloft and fancyhdr packages (for further information, please refer to the documentation of the packages):
Code: Select all
\documentclass{book}\usepackage{fancyhdr}\usepackage{tocloft}\pagestyle{fancy}\fancyhf{}\renewcommand\headrulewidth{0pt}\rhead{\thepage}\tocloftpagestyle{fancy}\setlength\cftbeforetoctitleskip{1cm}\setlength\cftbeforeloftitleskip{1cm}\setlength\cftbeforelottitleskip{1cm}\begin{document}\tableofcontents\clearpage\listoffigures\clearpage\listoftables\clearpage\end{document}
Re: Table of Content Formating
Thank you very much. It works perfect!