I am writing a book of puzzles in LaTeX, using the book
class. The \thispagestyle{empty}
command has successfully removed page numbers on all the \chapter
pages, but so far no combination of \newpage
and \thispagestyle{empty}
before and/or after a \part
command has been able to remove the page number at the center of the bottom of the \part
page.
\newpage
\tableofcontents
\thispagestyle{empty}
\newpage
\thispagestyle{empty}
\newpage
\thispagestyle{empty}
\part{}
\thispagestyle{empty}
\chapter{}
\thispagestyle{empty}
The code above produces a table of contents page, then a blank page, then a \part
page, then a blank page, then a \chapter
page. There are no page numbers except on the \part
page, and it appears to be incredibly reluctant to disappear, as you can see from the number of empty page commands surrounding the \part
command!
Any help is appreciated.
Thank you.
Best Answer
The first page of a part or chapter explicitly uses the page style
plain
. If you want to change this behaviour, you can makeplain
to mean the same asempty
by adding the following lines to your preamble:After this, page style
plain
is no longer available. A more flexible solution is to defineNow you can equate
plain
withempty
using\MakePlainPagestyleEmpty
and revert it again by\MakePlainPagestylePlain
.Note that you can also switch the default page style using
and later switch back to
Try the following code: