Style headers
This commit is contained in:
@@ -39,12 +39,12 @@
|
||||
|
||||
\pagestyle{fancy} % Use fancy headers and footers
|
||||
\fancyhf{} % Clear headers and footers
|
||||
\fancyhead[LO, RE]{\small\nouppercase{\leftmark}} % Chapter in the left on odd pages and right on even pages of the header
|
||||
\fancyhead[LO, RE]{}
|
||||
\fancyfoot[C]{\thepage} % Page number in the center of the footer
|
||||
|
||||
\appto\mainmatter{
|
||||
\renewcommand{\chaptermark}[1]{\markboth{\chaptername~\thechapter~--\ #1}{}} % Chapter formatting
|
||||
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} % Section formatting
|
||||
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} % Section formatting
|
||||
\fancyhead[LO]{\small\nouppercase{\leftmark}} % Chapter in the left on odd pages
|
||||
\fancyhead[RE]{\small\nouppercase{\rightmark}} % Section in the right on even pages
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user