Hi,
I have some problem with my ToC. The problem is that I don't wont page numbers on ToC pages. I used this.
It works if the ToC is only one page. But it is on two pages and on the second page there is no number but on the first page there is a number. How can I solve this problem?
Page Layout ⇒ Suppress Page Numbers on ToC Pages
Suppress Page Numbers on ToC Pages
Last edited by localghost on Mon Dec 16, 2013 7:11 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Suppress Page Numbers on ToC Pages
What about simply switching between two page styles?
For a more detailed answer instead of this random shot it requires a self-contained and minimal example.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Suppress Page Numbers on ToC Pages
It didn't help but I found this code that did the job

Code: Select all
Code, edit and compile here:
\tableofcontents\addtocontents{toc}{\protect\thispagestyle{empty}}\thispagestyle{empty}\newpage
Last edited by localghost on Mon Dec 16, 2013 7:49 pm, edited 1 time in total.
Suppress Page Numbers on ToC Pages
Probably because you're using a class whereAmor wrote:It didn't help
\tableofcontents
issues a page style implicitly. A 
Thorsten's code works fine in a standard class:
Code: Select all
Code, edit and compile here:
\documentclass{article}\begin{document}\pagestyle{empty}\tableofcontents\clearpage\pagestyle{plain}\section{Test}\end{document}
site moderator & package author