I'm trying to start a book in LaTeX, and I have a preface, which is in the frontmatter of the book. Unfortunately, it keeps showing 'Contents' in the header after the table of contents.
Basically, what I want is for it to show 'Contents' in the first two pages of the front matter (the pages actually devoted to the table of contents), and then the chapter title in the headings after that.
My main document:
\documentclass[12pt]{book}
\begin{document}
\frontmatter
\title{A Book}
\author{Jwir3}
\maketitle
\tableofcontents
\include{preface}
\mainmatter
\end{document}
My preface.tex document (included):
\cleardoublepage
\addcontentsline{toc}{section}{Preface}
\chapter*{Preface}
Blah blah blah.. rambling for a couple of pages...