TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to suppress the page number on a few pages of a large document. I'm using \thispagestyle{empty} to perform this task, and it works exactly as I want it to. However, when I later compile the document, the page numbers are wrong in my Table of Contents. I have determined that it is the above command that is throwing off the TOC. How can I suppress a page number, but have the TOC count it?

share|improve this question

closed as too localized by Joseph Wright Sep 9 '12 at 8:19

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. – Martin Scharrer Sep 8 '12 at 12:44
\thispagestyle{empty} doesn't suppress advancing the page number. – egreg Sep 8 '12 at 20:54
You have to run LaTeX twice to get the table of contents updated correctly. – Andrew Swann Sep 8 '12 at 21:42
That was, indeed, the problem. Compiling twice fixed the issue. Thanks. – Larry Tate Sep 9 '12 at 1:15
'Too localized' on that basis. – Joseph Wright Sep 9 '12 at 8:19