10

I would like to remove the style of my report on my table of contents.

I formerly used \thispagestyle{empty} before \tableofcontents but it obviously works only for the first page of the table of contents.

Since my table of contents is now 3 pages, is there a way/options to make a \pagestyle{empty} for an amount of 3 pages only, and then go back with my early own style for the rest of my repport?

Please note that my created style includes headers/images/page number on top and on bottom of each page.

  • 1
    Before \tableofcontents you have to call \pagestyle{empty} and after \tableofcontents do \clearpage\pagestyle{headings} (or any other page style you want). – Marco Daniel May 25 '13 at 8:54
  • Thank you it works! Please answer so that I can validate it. Thanks a lot! – JohnDoe May 25 '13 at 8:58
  • 2
    @MarcoDaniel That last "(or any other page style you want)" saved my day...after 3 hours trying to force the \pagestyle{plain} to my document... Quite Informative post! – Jean Mentz Nov 6 '14 at 20:27
11

As you wrote the command \thispagestyle works only for one page. To manipulate the header/footer of more pages you have to work with \pagestyle. You can't limit the command \pagestyle to a specific number of pages. So you have to switch to you favorit page style after \tableofcontents.

You can do:

\pagestyle{empty}
\tableofcontents
\clearpage
\pagestyle{headings}

If you are working with a class which provides the level \chapter you have to do a little bit more as explained here: Why doesn't \pagestyle{empty} work on the first page of a chapter?

  • Thank you for being so helpful and for this fast answer. – JohnDoe May 25 '13 at 9:02
  • I have 3 pages for tableofcontens i want just to remove page style in those pages not all the pages – Walid Bousseta Jul 4 at 13:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.