Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

1 Answer 1

up vote 6 down vote accepted

Use

\pagestyle{headings}

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
2  
In addition to what you already have, add \thispagestyle{empty} right after \section{..} –  Juan A. Navarro Nov 9 '10 at 15:41

Your Answer

 
discard

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.