Here's a minimal case of the problem:
\documentclass{book}
\pagestyle{empty}
\begin{document}
\chapter{The first}
This page has a page number\ldots
\newpage
\ldots but not this one.
\end{document}
I've surmised (by removing it) that the problem has something to do with the \chapter
line. But what caused this issue and how do I correct it?
Best Answer
The page style for the first page of a chapter is set internally (in the
book
andreport
document classes) to beplain
; you can change this behaviour by adding the following lines to the preamble of your document:or, using the
etoolbox
package:If the
plain
style is not needed elsewhere, then you can redefine it to be theempty
page style; this can be done with:Finally, in the
scrbook
document class (from theKOMA-Script
bundle), the style for the first page of chapters can be changed simply by redefining the\chapterpagestyle
command, as in:EDIT: added egreg's remarks.