[Tex/LaTex] Table of contents with page style empty

header-footertable of contents

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

Best Answer

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}
\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{empty}}} 
\begin{document}
\pagestyle{empty}
\tableofcontents
\cleardoublepage
\pagestyle{headings}
...