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

A few of the appendices in my document contain code covering a lot of pages, but those pages have nothing else than code (and page numbers). How can I put a header showing what's the current appendix, starting from the second page of each appendix? The image below shows the undesired results.

alt text

share|improve this question
up vote 6 down vote accepted



to print the current section name in the header.

If you need more precision than that, you can use, eg fancyhdr and craft your own heading layout. See http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/fancyhdr.pdf for details.

share|improve this answer
Do you know how to enable it, only in the pages where the section title is not already present? – Tomas Nov 9 '10 at 5:57
@Tomas: it should work if you put \pagestyle{headings} right after \appendix – Matthew Leingang Nov 9 '10 at 10:14
It does work, but I didn't wanted to get this: oi53.tinypic.com/x8w1g.jpg I don't want the headers in the pages that have the section start. – Tomas Nov 9 '10 at 13:19
In addition to what you already have, add \thispagestyle{empty} right after \section{..} – Juan A. Navarro Nov 9 '10 at 15:41

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.