33

How to remove the page number from the table of contents page?

42

See this FAQ answer. In the simplest case you just use \thispagestyle{empty} after \tableofcontents. However there are several complications, so see the linked answer.

One problem not discussed in the FAQ is if the table of contents is longer than 1 page. For this situation you can write \addtocontents{toc}{\protect\thispagestyle{empty}} somewhere before your first chapter.

  • 8
    Thanks for your answer! But could you please edit it to include the actual answer in the site and not just point to an external site? See quality standards for answers for the rationale behind this. – Juan A. Navarro Sep 13 '10 at 17:34
  • Just to get your attention, I second Juan's request. – doncherry Nov 1 '11 at 13:08
  • 3
    I have TOC on 3 pages and if I use \thispagestyle{empty} after the \tableofcontents only the 3rd page has no page number. Then I add the \addtocontents{toc}{\protect\thispagestyle{empty}} in front of the first chapter and I get rid of the page number on the 1st page while page number on the 2nd page remains... – 71GA Sep 4 '13 at 17:17
  • 2
    @71GA in that case I guess you can add also \addtocontents{toc}{\protect\pagestyle{empty}} next to the other \addtocontents{} – Lev Bishop Sep 4 '13 at 18:14
  • 2
    See also tex.stackexchange.com/a/41558/5206 – vanto Nov 25 '14 at 22:31
5

A combination of the following two commands after \tableofcontents worked for me:

\addtocontents{toc}{\protect\thispagestyle{empty}}
\pagenumbering{gobble}
  • 4
    Welcome to TeX.SE! What is the difference between your answer and the answer of LeV Bishop? Please explain what your code does ... – Mensch Mar 7 '18 at 1:18
-1

For me worked the following code:

\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents
\thispagestyle{empty}
\newpage
\setcounter{page}{1}
\input{inc/1.Introduccion}
...
  • 2
    Welcome to TeX.SX!. This answer does not add anything to the given answer by Lev Bishop. – dexteritas Jan 28 at 16:50
  • 1
    A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). – dexteritas Jan 28 at 16:50

Your Answer

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