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,
headheight=11pt,
headsep=12pt,
includeheadfoot,
papersize={148mm,210mm},
text={90mm,150mm},
dvips=false,
pdftex=false,
vtex=false
]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{} % clear all header fields
\newcommand{\TheAuthor}{}
\newcommand{\Author}[1]{\renewcommand{\TheAuthor}{#1}}
\rhead{\small\TheAuthor}
\newcommand{\TheTitle}{}
\newcommand{\Title}[1]{\renewcommand{\TheTitle}{#1}}
\lhead{\small\scshape\TheTitle}
\fancyfoot{} % clear all footer fields
\fancyhead[RO,LE]{\thepage}
\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}}}
\addcontentsline{toc}{chapter}{\normalsize\normalfont{Author1} \\ \normalfont\scshape{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}}}
\addcontentsline{toc}{chapter}{\normalsize\normalfont{Author1} \\ \normalfont\scshape{Title}}
\thispagestyle{empty}
\Author{Author1}
\Title{Title}
\lipsum
\newpage
\thispagestyle{empty}
Best Answer
Instead of
I would define a new page style: change those lines into
Then the start of your document can be
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, writeThere'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 linesThen the simple
\tableofcontents
will do (no magic code involving@
characters).