Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fancyhdr - Control of Headers/Footers on first page of Table of Contents

1,666 views
Skip to first unread message

Joao Correia

unread,
Jul 1, 2007, 10:51:58 AM7/1/07
to
Hi all,

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.

Werner Grundlingh

unread,
Jul 1, 2007, 12:55:15 PM7/1/07
to

Have you tried:

\tableofcontents \thispagestyle{fancy}
\listoffigures \thispagestyle{fancy}
\listoftables \thispagestyle{fancy}

Werner

Joao Correia

unread,
Jul 1, 2007, 1:27:47 PM7/1/07
to
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:

Werner Grundlingh

unread,
Jul 1, 2007, 10:51:02 PM7/1/07
to
On Jul 1, 10:27 am, Joao Correia <joaoramoacorr...@gmail.com> wrote:
> 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

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

Ulrike Fischer

unread,
Jul 2, 2007, 3:39:34 AM7/2/07
to

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

Joao Correia

unread,
Jul 2, 2007, 5:08:16 AM7/2/07
to
I used

\chapterfont{\thispagestyle{fancy}} of the sectsty package

and it worked just fine.

Thanks for your help!

Joao

Ulrike Fischer escreveu:

0 new messages