thank you for existing. Things are easier with solutions from here. But sometimes it is not enough (for me).
I'm using a modified book class. The page header are changed in color with the following command.
\renewcommand*\chaptermark[1]{\markboth{\thechapter.\ \color{title}#1}{}}
\renewcommand*\sectionmark[1]{\markright{\thesection.\ \color{title}#1}}
This does not work for the table of contents and the bibliography. Also the following seems not to have an effect
\newcommand*\setheader[1]{\markboth{\color{title}#1}{\color{title}#1}}
So the question is: what is the command for the toc and the references?
Thanks for everything in advance! If I haven't searched properly enough I'm already sorry.Cheers, Robert
Here is some code. It's not real minimal and not nice, but it does the trick.
\documentclass{book}
\usepackage{lipsum}
\RequirePackage[english]{babel}
\RequirePackage{chapterbib}
\RequirePackage{fancyhdr}
\RequirePackage{titletoc}
\RequirePackage{xcolor}
%% The style for titles is small caps.
\def\titlefont{\rmfamily}
\def\titleshape{\scshape}
\def\titlestyle{\titlefont\titleshape\bfseries}
\def\headerstyle{\titlefont\titleshape\bfseries}
%% colors
\definecolor{tudelft-cyan}{cmyk}{1,0,0,0}
\colorlet{title}{tudelft-cyan}
%% Fancy style for the main matter.
\fancypagestyle{mainmatter}{%
\fancyhf{}
%% Page numbers on the top left and top right.
\fancyhead[LE]{\titlefont\thepage}
\fancyhead[RO]{\titlefont\thepage}
%% Chapter name on the left (even) page.
\fancyhead[RE]{\titlefont\titleshape\nouppercase{\leftmark}}
%% Section name on the right (odd) page.
\fancyhead[LO]{\titlefont\titleshape\nouppercase{\rightmark}}
}
%% The mainmatter style is default for normal pages.
\pagestyle{mainmatter}
%% Print the current chapter and section at the top of the page in cyan.
\renewcommand*\chaptermark[1]{\markboth{\thechapter.\ \color{title}#1}{}}
\renewcommand*\sectionmark[1]{\markright{\thesection.\ \color{title}#1}}
%% The setheader command can be used to print the title of unnumbered chapters in the page header.
\newcommand*\setheader[1]{\markboth{\color{title}#1}{\color{title}#1}}
\begin{document}
\tableofcontents
\chapter{Chapter}
\section{Section}
\subsection{Subsection}
\lipsum
\lipsum
\lipsum[1-2]
\begin{thebibliography}{}
\end{thebibliography}
\chapter{Chapter}
\section{Section}
\subsection{Subsection}
\lipsum
\end{document}
etoolbox. We can't know right now, if your modified class alters the definition, so there can't be a definiitive answer right now. But we can speculate and demonstrate using the default. – Johannes_B Oct 23 '14 at 16:30