0

I am using the amsbook document class.

My document has no chapters, but I'd like all even pages to have "Title" as opposed to the current chapter. I've achieved this for all even pages (but one) by putting \chaptermark{Title} right after \begin{document}\maketitle\tableofcontents, assigning a "chapter" title for the entire document. However, the first page after the TOC is still displaying the "contents" header at the top of the page. Thereafter, the headers are as desired. Any suggestions?

Edit: The only extra information a minimal working example provides is the packages I am using, which is why I didn't originally include one. But hopefully this it where the problem is coming from.

\documentclass{amsbook}

\usepackage{amssymb,amsmath,amsthm}
\usepackage{tikz}
\usetikzlibrary{cd}
\usetikzlibrary{arrows}
\usepackage[mathscr]{euscript}
\usepackage{dsfont}
\usepackage{enumitem}
\usepackage{centernot}
\usepackage{hyperref}
\usepackage{wrapfig}
\usepackage{imakeidx}
\usepackage{fancyhdr}
\usepackage{lipsum}

\title{Title}
\author{Author}
\date{}
\makeindex[columns=2, title=Index]

\begin{document}
\maketitle
\tableofcontents
\chaptermark{Title}

\section{Section 1}
\lipsum

\section{Section 1}
\lipsum

\section{Section 3}
\lipsum

\end{document}

Here are screenshots of the top of the first few pages after the table of contents of this code:

enter image description here

enter image description here

enter image description here

  • 1
    Where is the minimal working example? – Johannes_B Jun 16 '18 at 6:06
  • @Johannes_B See my edit. – Nicholas Camacho Jun 16 '18 at 13:36
  • You are simply doing it wrong. You need to use chapters, not sections. – Johannes_B Jun 18 '18 at 6:50
  • Nope. I want the title as the header on even pages, and the current section on odd pages. So unless you have a way to assist in that way, please save your salty comments. – Nicholas Camacho Jun 19 '18 at 3:58
  • Amsbook uses chapters as the highest sectioning level. Sections are one level below. – Johannes_B Jun 19 '18 at 4:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.