%% switch to normal page headings with page numbering \newcommand{\fancynormal}{ \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0mm} %%\fancyhead[LE]{\bfseries\nouppercase\leftmark~\hrulefill} %%\fancyhead[RO]{\hrulefill~\bfseries\nouppercase\rightmark} \fancyhead[LE]{\sffamily\bfseries\nouppercase\leftmark} \fancyhead[RO]{\sffamily\bfseries\nouppercase\rightmark} \fancyfoot[LE,RO]{\bfseries\thepage} \fancypagestyle{plain}{ %% header of first page in chapter \fancyhead[LE,RO]{} \fancyfoot[LE,RO]{\bfseries\thepage} \renewcommand{\headrulewidth}{0mm} \renewcommand{\footrulewidth}{0mm} } }