# Setting the space between page header and text block

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{}
\renewcommand{\footrulewidth}{0pt}
\fancypagestyle{plain}{
}

I would like to change space between the line and the following text. Can anyone help me?

-
fancyhdr isn't involved: the relevant parameter is \headsep. Perhaps using geometry is the best strategy. –  egreg May 19 '12 at 20:18
You have two redefinitions of \chaptermark and two competing settings of \headrulewidth. Please consider eliminating the deadwood code. –  Mico May 19 '12 at 22:13
@Mico The second definition of \headrulewidth is correct, being in \fancypagestyle –  egreg May 19 '12 at 22:51
@egreg: Thanks, I hadn't noticed this feature. –  Mico May 19 '12 at 22:54

As @egreg pointed out in the comments, you have to adjust the length headsep. This can be done in the following ways:

1. Use the command \setlength{\headsep}{0.2in} where you can put the relevant value of length.

2. Use the package geometry as \usepackage[margin=1in,headsep=.2in]{geometry}.

As pointed in the comment by @Mico in the comments, you have defined \renewcommand{\chaptermark}.....two times. Please correct them.

-
The second \fancyhead{} is correct, being in \fancypagestyle. The same for \headrulewidth. –  egreg May 19 '12 at 22:52
@egreg: Sorry overlooked it. Thanks for the edit. –  Harish Kumar May 19 '12 at 22:57
Thanks, both solutions are working. I'm just a little bit confused now... Should I delete one of the renewcommands for \chaptermark and \headrulewidth or not? –  Jane May 20 '12 at 11:55