# First page of ToC has a page number. How to remove it?

I have a problem with the number of the page that appears on the first page of ToC (I don't want it, of course), but only when I have at last two page of ToC. When ToC takes only one page, footer and header is clear, but when I extend it on another page the page number appears in the footer. Here is my MWE:

\documentclass{book}

\usepackage[
centering,
%showframe,
top=14mm,
papersize={148mm,210mm},
text={90mm,150mm},
dvips=false,
pdftex=false,
vtex=false
]{geometry}

\usepackage{fancyhdr}
\pagestyle{fancy}
\newcommand{\TheAuthor}{}
\newcommand{\TheTitle}{}
\fancyfoot{} % clear all footer fields

\usepackage{titlesec}
\titleformat{\chapter}{\normalfont\Large\scshape}{\thechapter}{1em}{}[\vspace{6pt}]

\usepackage{lipsum}
\renewcommand{\contentsname}{whatever}

%-------------------------------------------------------------------------

\begin{document}

\newpage
\thispagestyle{empty}
\tableofcontents
\thispagestyle{empty}
\newpage
\thispagestyle{empty}

\setcounter{footnote} {0}\chapter*{{\fontsize{11}{14}\selectfont \normalfont{Author1} \\
{\scshape\Large Title}}}
\thispagestyle{empty}
\Author{Author1}
\Title{Title}
\lipsum
\newpage
\thispagestyle{empty}

\end{document}

Please, just copy this section a few times

\setcounter{footnote} {0}\chapter*{{\fontsize{11}{14}\selectfont  \normalfont{Author1} \\
{\scshape\Large Title}}}
\thispagestyle{empty}
\Author{Author1}
\Title{Title}
\lipsum
\newpage
\thispagestyle{empty}
-
Your 'MWE' doesn't compile with pdflatex here. –  ℝaphink Sep 15 '11 at 9:21
@Raphink, you're right. Now it seems to be ok. –  kotsport Sep 15 '11 at 9:30
i changed the phrasing of the question. ams has received questions on how to remove the page numbers from entries in the toc, and that's how i read the original version. (for details of the "alternate" meaning, see the ams author faq. this will give a long list; the relevant question will be outlined in red, 'way down the page.) –  barbara beeton Sep 15 '11 at 13:16

\pagestyle{fancy}
...<settings>...

I would define a new page style: change those lines into

\newcommand{\TheAuthor}{}
\newcommand{\TheTitle}{}

\usepackage{fancyhdr}
\fancypagestyle{fancymain}{%
\fancyfoot{}%

Then the start of your document can be

\begin{document}
\pagestyle{empty}
\tableofcontents

\cleardoublepage

\pagestyle{fancymain}

<all the rest>

Less code. I advise you also to reconsider writing for each chapter all that complicated code and define a personal command for it.

However this still leaves the page number in the first page of the ToC. Here's a hack: redefine temporarily the page style. So, instead of the simple \tableofcontents command, write

\begingroup
\makeatletter \let\ps@plain\ps@empty \makeatother
\tableofcontents
\endgroup

There's another way to solve the problem, if, as it seems, you don't want the page number also at chapter beginning.

After \usepackage{fancyhdr} put the two lines

\fancypagestyle{plain}{\fancyhf{}%