I am trying to make the first page of the table of contents (and also
list of figures and tables) look the same as those of the different
chapters of the thesis, regarding the headers and footers.
I am using fancyhdr-package like this:
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\lhead[Title of the thesis]{}
\rhead[]{Title of the thesis}
Unfortunately, the ruler of the header/footer does not apperar on the
first page of the table of contents and the page number appears in the
bottom left (and not centered like the other pages).
Can someone help me with this problem?
Thanks.
Have you tried:
\tableofcontents \thispagestyle{fancy}
\listoffigures \thispagestyle{fancy}
\listoftables \thispagestyle{fancy}
Werner
Thanks for your help. In fact, you solved 67% of the problem...
I added \thispagestyle{fancy} before each table/list and I obtained a
bizarre result: it works fine for "table of contents" and "list of
tables" but it simply doesn't work for "list of figures" (I already
tried switching their order).
It also doesn't work for other included files of the document
preamble, such as the "Abstract", "acknowledgements"...
Do you (or someone else) have any further idea about how to solve this
problem?
Thanks.
Joao
Werner Grundlingh escreveu:
The natural pagestyle for each new chapter is specified by
\thispagestyle{plain}. As an alternative option then, you could try
the use of
\chapterfont{\thispagestyle{fancy}}
as presented on page 12 (Section 8.1) of the sectsty package
documentation. The sectsty package is available from CTAN at
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=sectsty
This should work for all chapters (and appendices), including the
'Table of Contents', 'List of Figures' and 'List of Tables', because
these are all invoked via either \chapter or \chapter*. If your
'Abstract' and 'Acknowledgements' is also specified via (say)
\chapter*, then this should work as well.
Werner
Probably you should read in the documentation of fancyhdr the
section about redefining plain style.
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ps@empty
If this doesn't help:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=askquestion
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
--
Ulrike Fischer
\chapterfont{\thispagestyle{fancy}} of the sectsty package
and it worked just fine.
Thanks for your help!
Joao
Ulrike Fischer escreveu: