next up previous contents index
Next: The Verbatim Package Up: Bibliography Previous: Indexing   Contents   Index


Fancy Headers

The fancyhdr package,5.6 written by Piet van Oostrum, provides a few simple commands that allow you to customize the header and footer lines of your document. If you look at the top of this page, you can see a possible application of this package.

Figure: Example fancyhdr Setup.

The tricky problem when customising headers and footers is to get things like running section and chapter names in there. LATEX accomplishes this with a two-stage approach. In the header and footer definition, you use the commands rightmark and leftmark to represent the current section and chapter heading, respectively. The values of these two commands are overwritten whenever a chapter or section command is processed.

For ultimate flexibility, the \chapter command and its friends do not redefine rightmark and leftmark themselves. They call yet another command (chaptermark, sectionmark, or subsectionmark) that is responsible for redefining rightmark and leftmark.

If you want to change the look of the chapter name in the header line, you need only ``renew'' the chaptermark command. sectionmarksubsectionmark

Figure [*] shows a possible setup for the fancyhdr package that makes the headers look about the same as they look in this booklet. In any case, I suggest you fetch the documentation for the package at the address mentioned in the footnote.


next up previous contents index
Next: The Verbatim Package Up: Bibliography Previous: Indexing   Contents   Index
David Barreda Tena 2007-09-12



Alojamiento con 500GB de espacio y 5000GB de ancho de banda por 4 euros al mes
Cómo contratar servicios de hosting con Dreamhost
Descuento, promocode para dreamhost de $50