TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to nicely format a fairly large novel, with the following structure:

Book I
    Part I
        Chapter 1

I'm using memoir and everything looks quite nice, but for the fact that I don't know how to print a pretty page for "Prologue", "Epilogue", or any of the headers for the Books. Memoir is pretty smart about the Chapters and Parts, is there any higher level of structure for things like Prologues/Epilogs and or structure at the super-part level?

For reference, here is a minimal working example:



\chapter*{Book I}
    \part{Part I}
        \chapter{Chapter 1}
            Chapter 1

I am in no way attached to this layout and it's trivial for me to change, I just want it to look nice in the end. So far this is a decent solution, but I was wondering if there were a better / more intelligent way to do it.

Currently the largest problem with this layout is that I haven't figured out how to have the chaptermark be Prologue instead of CHAPTER 0. PROLOGUE, in the prologue, but I'm sure it's possible.

share|improve this question
Have you considered using \chapter* (instead of \chapter) for your Preamble, Prologue, etc.? – Werner Dec 19 '11 at 6:26
Yep! My next question would be "how do I turn off the CHAPTER 0. CHAPTERNAME" marker in the headings, but I'm currently picking my way through the manual to find out. If you could point me in the right direction that would save me quite a bit of time. :-) – Nate Dec 19 '11 at 6:28
How about editing your existing post with a minimal working example (MWE) (stripping all the unnecessary stuff) so that it shows what you've done thus far, since many things can influence what you do in your document and where. – Werner Dec 19 '11 at 6:33
When using \chapter* (as in your MWE), I don't receive a header CHAPTER 0. PROLOGUE. If you're getting this in your header, you must be doing something else. Also, using \chapter* does not increment the chapter counter, leaving it at 0, which it finally incremented at the first use of \chapter{Chapter 1}. As such, you don't need to set it to 0 (\setcounter{chapter}{0}). Moreover, the commands \endpart and \endchapter are not recognized control sequence in LaTeX nor memoir. – Werner Dec 19 '11 at 7:09
Woops, just fixed the chapter problems. In the MWE there is no chapter marker, because the only chapter marker I can get is CHAPTER 0. PROLOGUE (by using \chaptermark{Prologue}). The desired behavior is to have the header just be "PROLOGUE", which I'm working on now. – Nate Dec 19 '11 at 7:15
up vote 3 down vote accepted

I'm not sure whether this is what you're after, but this is too long for a comment:

\documentclass{memoir}% http://ctan.org/pkg/memoir
\usepackage{lipsum}% http://ctan.org/pkg/lipsum


\chapter*{Preamble} \chaptermark{Preamble}

\chapter*{Prologue} \chaptermark{Prologue}

\chapter*{Book I}

\createmark{part}{left}{shownumber}{\partname\ }{. \ }
\createmark{chapter}{right}{shownumber}{\@chapapp\ }{. \ }
\part{Part I}
\chapter{First chapter}


The use of \createmark{<sec>}{<pos>}{<show>}{<before>}{<after>} is probably what you're after in terms of headings. It creates a mark for the sectional unit <sec> (like chapter, for \chapter) which is displayed on <pos> pages (where <pos> is left, right or both). <show> can either be shownumber or nonumber if you want to display the number of the sectional unit in the mark, while <before> is placed before the number and <after> is placed after the number.

In my MWE, I used

\createmark{chapter}{both}{shownumber}{\@chapapp\ }{.\ }

to place the \chapter mark on both pages with a chapter number (shownumber). The number is prepended with \@chapapp\ (which defaults to Chapter\) and appended with .\, followed by the chapter name.

Read more about how to set page styles and headers in the memoir documentation (section 7.2 Page styles, from p 118).

The use of lipsum is merely used to provide some dummy text to fill the document.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.