I work with documentclass report and use fancyhdr package for chapters in this way:
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\chaptermark}[1]{\markright{\thechapter\ #1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LO]{\bfseries\nouppercase\rightmark}
\fancyhead[RE]{\bfseries\nouppercase\leftmark}
\fancyhead[RO]{\bfseries\nouppercase\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt}
\fancypagestyle{plain}{
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
}
I would like to change space between the line and the following text. Can anyone help me?
fancyhdrisn't involved: the relevant parameter is\headsep. Perhaps usinggeometryis the best strategy. – egreg May 19 '12 at 20:18\chaptermarkand two competing settings of\headrulewidth. Please consider eliminating the deadwood code. – Mico May 19 '12 at 22:13\headrulewidthis correct, being in\fancypagestyle– egreg May 19 '12 at 22:51