I am trying to customize my page layout, and I can't find how to do what I want ...
I modified the position of page number in the footer to have it on the outside of the pages. I wanted to do the same on the first pages of chapters, so I redefined the plain style. Here's an extract of my code :
Code: Select all
\fancypagestyle{plain}{
%\renewcommand{\headrulewidth}{0pt}
\fancyfoot[LE,RO]{\thepage}
}
\pagestyle{fancy}
\fancyhf{}
%\renewcommand{\headrulewidth}{0.4pt}
\fancyhead[LO]{\slshape \rightmark}
\fancyhead[RE]{\slshape \uppercase{\chaptername \xspace \thechapter}. \leftmark}
\fancyfoot[LE,RO]{\thepage}
What I don't understand, is that there seems to be an interaction between plain and fancy styles. With this code, the header in plain style is empty, but the horizontal line still present. If I uncomment the two "headrulewidth" lines, the horizontal line totally disappears (in both plain and fancy styles !).
And if I add \fancyhf{} in the plain style, it also removes the headers in fancy style ...
Anyway, I'm confused and I didn't find the solution. Any idea ?
Thank you very much !
Cheers