I need help with page layout in memoir. I want to have an unnumbered chapter0 (i.e. introduction) but when using the \chapter starred version the chapter headers is wrong. This is my example source:











And the problem is in chapter0 and in "last". Can you help me?


Use the optional argument provided for \chapter (works for \chapter* as well):


This will set the \chaptermark accordingly, and correct the headers. Why is this the case? Let's look at \@m@mschapter from memoir.cls:

  \ifx \@empty#1
  \else%                    opt arg

The optional argument is set to \@empty if not specified manually. Subsequently, the macro conditions on whether #1 (the optional argument) is \@empty or not, and specifying \chaptermark accordingly.

Note that using \label in an un-numbered sectional unit doesn't help.

| improve this answer | |

Your Answer

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

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