wannesm / adsphd

KU Leuven Arenberg Doctoral School PhD dissertation latex class
http://set.kuleuven.be/phd/
73 stars 46 forks source link

Capitalisation in header #99

Closed Cs137 closed 4 years ago

Cs137 commented 4 years ago

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!

Cs137 commented 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}
}