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}.

-

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

\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{empty}}}


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

\documentclass{book}
\begin{document}
\pagestyle{empty}
\tableofcontents
\cleardoublepage
...

-
Am I missing something, or does this only work for single-page ToC's? –  lockstep Nov 22 '10 at 20:34
@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
@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

Using tocloft,

\usepackage{tocloft}


it is as simple as placing this line:

\tocloftpagestyle{empty}


somewhere in the preamble.

-
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