How can I make produce a table of contents by \tableofcontents with page style empty? It doesn't work with \thispagestyle{empty} or \pagestyle{empty}.

| improve this question | | | | |

You could use this in your preamble to change the first (otherwise commonly plain) TOC page to empty style:


The other pages behave like expected if you use \pagestyle{empty} like you firstly did. So your document may look like

| improve this answer | | | | |
  • 5
    Am I missing something, or does this only work for single-page ToC's? – lockstep Nov 22 '10 at 20:34
  • 1
    @lockstep: you're right, the originally used \pagestyle{empty} which Regis used is still required before \tableofcontents. The line posted by me is an addition which modifies the first TOC page which would otherwise might keep plain page style. Thanks for pointing that out. – Stefan Kottwitz Nov 22 '10 at 21:04
  • 1
    @StefanKottwitz I have Table of Contents that is 3 pages long. With your solution, as well as other solutions, even after using \pagestyle{empty} next to \tableofcontents middle (second) page of table of contents still does have page number in the footer. So it looks like your solution removes page numbers only from first and last page. Do you have any idea for on removing middle page footer as well? – Rafal Dec 7 '13 at 12:33
  • This solution solved my problem! 2 page TOC, first page didn't show formatting properly but second page did - after adding this it worked! – Prevost Sep 29 '17 at 23:33
  • This answer should be the accepted one. This is a 1-line addition and it solves the problem directly – XaWin Aug 22 '18 at 6:35

Using tocloft,


it is as simple as placing this line:


somewhere in the preamble.

| improve this answer | | | | |
  • 1
    Same as with Stefan solution, using tocloft empty option does not remove middle page numbers in 3-page ToC. – Rafal Dec 7 '13 at 12:35
  • 1
    For me, it's not even removing the page numbers from the first page. – Chthonic Project Sep 3 '15 at 19:03

If you use the fancyhdr package, you can remove the page numbering for a multiple-page table of contents as follows:

\clearpage                       % Otherwise \pagestyle affects the previous page.
{                                % Enclosed in braces so that re-definition is temporary.
  \pagestyle{empty}              % Removes numbers from middle pages.
  \fancypagestyle{plain}         % Re-definition removes numbers from first page.
    \fancyhf{}%                       % Clear all header and footer fields.
    \renewcommand{\headrulewidth}{0pt}% Clear rules (remove these two lines if not desired).
  \thispagestyle{empty}          % Removes numbers from last page.

It seems there are three headers that need to be altered separately:

  1. The first page, which always uses the plain style, no matter what. (Therefore, it needs to be redefined manually.)
  2. The middle pages, which follow the current pagestyle.
  3. The last page, which has to be altered with thispagestyle.

You can add the fancyhdr package by adding the following line in the preamble:


The advantage of this solution is that it preserves page numbering as you would expect.

Another option, if all you are using is a plain page number, is to remove it using


You could then restore it (if you are using Arabic numerals) with


(Valid options include arabic, roman, Roman, alph, and Alph.)

If, when using this option, for some reason you want the page numbering to continue before and after the table of contents, you will need to save the page number and restore it:

\newcounter{savepage}             % Creates a counter for saving the page
\setcounter{savepage}{\thepage}   % Saves the page
\clearpage                        % Table of contents, without numbering
\clearpage                        % New section, with numbering
\setcounter{page}{\thesavepage}   % Restores the old page number
\addtocounter{page}{1}            % Upticks the page number by one to continue the numbering
| improve this answer | | | | |
  • This wouldn't remove headers. – egreg Apr 25 '14 at 12:41
  • You are right. Edited to reflect this fact. – AthanasiusOfAlex Apr 25 '14 at 14:32

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.