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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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!