Hi Stefan,
Thanks for answering.
I've looked at
\let\ps@plain\ps@fancy which doesn't seem to work for me.
Further more, I've tried all kind of combinations of
\pagestyle{fancy}
\fancypagestyle{plain}{my style declarations}
also with leaving out the first line but none of these give me the correct result.
I have found a solution. I have to declare the style declarations again for the default (fancy?) page style:
\pagestyle{fancy}
\fancypagestyle{plain}{my style declarations}
{my style declarations}
This give me the same fancy page layout on the first page and all subsequent pages of the same chapter.
Here is my complete document:
Code: Select all
\documentclass[a4paper,8pt]{report}
\usepackage[a4paper]{geometry}
\setlength{\textwidth} {374pt}
\setlength{\hoffset} {22pt}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}
\fancypagestyle{plain}{%
\fancyhf{}
\setlength{\headheight}{1cm}
\setlength{\headwidth}{\textwidth}
\fancyhead[L]{\footnotesize left head}
\fancyhead[R]{\footnotesize right head}
\fancyfoot[L]{\footnotesize \nouppercase{\leftmark}}
\fancyfoot[C]{\footnotesize \nouppercase{\rightmark}}
\fancyfoot[R]{\footnotesize \thepage}
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.1pt}
}
\fancyhf{}
\setlength{\headheight}{1cm}
\setlength{\headwidth}{\textwidth}
\fancyhead[L]{\footnotesize left head}
\fancyhead[R]{\footnotesize right head}
\fancyfoot[L]{\footnotesize \nouppercase{\leftmark}}
\fancyfoot[C]{\footnotesize \nouppercase{\rightmark}}
\fancyfoot[R]{\footnotesize \thepage}
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.1pt}
\begin{document}
\chapter{Lorum}
Lorem ipsum dolor sit amet.
\vspace{500pt}
\section{Maecenas}
Mi Aliquam convallis scelerisque.
\end{document}
I have a solution, but it is not clear to me how this works and why it couldn't be done with one style declaration.
Wim