diff --git a/latex/thesis.cls b/latex/thesis.cls index 8ae946d..cb28373 100644 --- a/latex/thesis.cls +++ b/latex/thesis.cls @@ -41,11 +41,21 @@ } % Header and footer -\pagestyle{fancy} -\fancyhf{} -\fancyhead[R]{\nouppercase{\rightmark}} -\fancyhead[L]{\nouppercase{\leftmark}} -\fancyfoot[C]{\thepage} +\fancypagestyle{fancy}{% + \fancyhf{} + \fancyhead[R]{\nouppercase{\rightmark}} + \fancyhead[L]{\nouppercase{\leftmark}} + \fancyfoot[C]{\thepage} +} +\fancypagestyle{fancyplainfrontmatter}{% + \renewcommand{\headrulewidth}{0pt} + \fancyfoot[C]{\thepage} +} +\fancypagestyle{fancyplain}{% + \fancyhf{} + \renewcommand{\headrulewidth}{0pt} + \fancyhead[R]{\thepage} +} % Chapter formatting \titleformat{\chapter}[display]