How to remove the page number from the table of contents page?
4 Answers
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.
-
9Thanks 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. Sep 13, 2010 at 17:34
-
1
-
5I 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...– 71GASep 4, 2013 at 17:17 -
2@71GA in that case I guess you can add also
\addtocontents{toc}{\protect\pagestyle{empty}}
next to the other\addtocontents{}
Sep 4, 2013 at 18:14 -
2
A combination of the following two commands after \tableofcontents
worked for me:
\addtocontents{toc}{\protect\thispagestyle{empty}}
\pagenumbering{gobble}
-
5Welcome to TeX.SE! What is the difference between your answer and the answer of LeV Bishop? Please explain what your code does ...– MenschMar 7, 2018 at 1:18
For me worked the following code:
\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents
\thispagestyle{empty}
\newpage
\setcounter{page}{1}
\input{inc/1.Introduccion}
...
-
2Welcome to TeX.SX!. This answer does not add anything to the given answer by Lev Bishop. Jan 28, 2019 at 16:50
-
1A 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). Jan 28, 2019 at 16:50
i have three pages of table contents and two lists of figures also. the document genrates automtically the number of pages. but we can undisplay the number of pages with the first cmd. then when you want to display the number again use the second cmd
\pagenumbering{gobble}
then when you want to display the numbers of pages simply type:
\pagenumbering{arabic}
-
1
-
1This is by far the cleanest answer and I don't see any other answer that provides this solution as succinctly. Thank you! Dec 31, 2021 at 15:05