Closed Cs137 closed 4 years ago
I solved the issue by adding additionally a \nouppercase
statement to the fancyhdr section. The following code works for me:
% HEADERS
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{#1}}
\fancyhf{}
\fancyhead[RO]{\scriptsize\sffamily\nouppercase{\rightmark} \hrulefill\ \thepage}
\fancyhead[RE]{\scriptsize\sffamily\thepage\ \hrulefill\ \nouppercase{\leftmark}}
\renewcommand{\headrulewidth}{0pt}
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[C]{\scriptsize\sffamily\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
As I have chemical formulas in chapter names, I removed the uppercase statement from the document class to not mess up element symbols in the headers. It resulted in the desired change, but the ToC and bibliography remains capitalised. I do not find the location where this is defined and hope someone can help me out.
Many thanks, also for this amazing template!