Chapter and Section Names in Header
<<<< ^^^^^ >>>>
\renewcommand{\chaptermark}[1]{%
   \markboth{\small\slshape\chaptername{} \thechapter: #1}{}
}
\renewcommand{\sectionmark}[1]{%
   \markright{\small\slshape\thesection : #1}
}

\fancyhf{}
\fancyhf[OLH]{\rightmark}
\fancyhf[ERH]{\leftmark}
\fancyhf[ORH,ELH]{\thepage}

How this works

Each new chapter calls \chaptermark with the chapter's title

\chaptermark sets the right and left marks

\fancyhf uses the right and left marks.

<<<< ^^^^^ >>>>
 
 
 
 
 
Copyright (C) 2002 by Steve Litt, you can freely distribute unmodified copies if this copyright notice and disclaimer are intact.  This material originally appeared on Troubleshooters.Com.

This presentation has no warranty, express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the presentation is with you.
 

47.html

Exit Slideshow