I'm using the fancyhdr package and I have defined headers & footers for the fancy page style using the fancypagestyle command. I have also defined a new page style, tocstyle, using the same command.
Defined in this order:
\pagestyle{fancy}{%
\def\footnotelayout{\color{darkgrey}}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}} % To change from all CAPS
\renewcommand{\sectionmark}[1]{\markright{#1}{}} % to normal case
\fancyhf{}
\fancyhead[RO]{\thechapter\ | \leftmark}
\fancyhead[RE]{\textcolor{darkgrey}{Group 7}}
\fancyhead[LO]{\textcolor{darkgrey}{P2 Report - CPR Teacher}}
\fancyhead[LE]{\thesection\ | \rightmark}
\fancyfoot[RE]{\footnotesize{\thepage\ \textsl{of} \pageref{LastPage}}}
\fancyfoot[LO]{\footnotesize{\thepage\ \textsl{of} \pageref{LastPage}}}
}
\fancypagestyle{tocstyle}{%
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[RE]{\footnotesize{\thepage}}
\fancyfoot[LO]{\footnotesize{\thepage}}
}
In the main .tex file I use the tocstyle for the ToC and then I change to fancy, but instead of applying the fancy style it looks like it has the empty style, the pages are completely empty.
\documentclass[a4paper,11pt,titlepage,twoside,parskip=half-,bibliography=totoc]{scrreprt}
\begin{document}
\pagestyle{tocstyle}
\tableofcontents
\clearpage
\pagestyle{fancy}
\include{baForeword}
\include{bIntroduction}
...
\end{document}