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 have a question regarding the header and footer. I am using memoir class and want to create a custom header which displays the name of the chapter. Below is the code I have so far, that doesnt show the chaptername. It seems to me that I have to define the \rightmark and \leftmark command, resp. but can I do this in a gerneric way ? Alternatively, when doing this:

\makeoddhead{pstest}{DUMMY ODD}{}{\thechapter}

then the number is printed, But how can output the name of the chapter ?



\makeevenfoot{pstest}{\thepage}{}{}%page numbers at the outside
\makeevenhead{pstest}{\leftmark}{}{DUMMY EVEN} % small caps
\makeoddhead{pstest}{DUMMY ODD}{}{\rightmark}





Thank you for any comments !

Edit 1: actually it seems that the \chaptername command gives just "chapter". Is this expected ?

share|improve this question

pstest does not tell the chapter what to provide for the header, so nothing is provided. See \makepsmarks in the manual. This article might also be helpful: http://tug.org/pracjourn/2008-2/madsen/

also there is no page style called section, so that alias is not relevant

share|improve this answer
brilliant ! a really helpful paper ! In the end I just copied the given example into a sty file and modified the parts I need. Thanks ! – user1240076 Aug 23 '12 at 9:30

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.