As the title says. The heading on the page following the Abstract looks like this:
CHAPTER 0. ABSTRACT
How can I remove the unnecessary Chapter number from the headings in the frontmatter?
\documentclass{book}
\usepackage{fancyhdr}
\begin{document}
\frontmatter
\pagestyle{fancy}
\chapter{Abstract}
Why does it say ``Chapter 0.'' on the next page?
\tableofcontents
\mainmatter
\chapter{First}
\end{document}
Best Answer
The
fancyhdr
package provides, by default, the definition of\chaptermark
used inreport.cls
when\pagestyle{headings}
is in force.The
book
class instead has a check for\if@mainmatter
:So you should supplement your code with the right definition. There's still a small problem, in that the pages of the table of contents will have two “CONTENTS” in the header, because
\tableofcontents
uses\@mkboth
; you can fix it by redefining it.