# avoid \headrulewidth appearing at chapter beginning

I am using the following code set my headers.

\fancypagestyle{plain}
\fancyhf{}
\pagestyle{fancy}
\fancyfoot[C]{}



The \headrulewidth (line below the head) is also appearing at the beginning of a chapter and I WANT TO DISABLE this.

How can I change the behaviour of the headrulewidth for the first page of a chapter?

• Delete the line \fancypagestyle{plain}. – cfr Aug 20 '14 at 18:06

You have to redefine the plain pagestyle

\documentclass{report}
\usepackage{blindtext}
\usepackage{ifthen}
\usepackage{fancyhdr}

%Redefine plain
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyfoot[C]{\thepage}%
}

\pagestyle{fancy}