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.
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.