Different Header styles
This commit is contained in:
parent
817303c217
commit
60539e0b78
@ -1,5 +1,5 @@
|
||||
\chapter{My Second Chapter}
|
||||
\section[short title]{This is going to be a section with a very long section title that it might not fit TOC}
|
||||
\section[Short title]{This is going to be a section with a very long section title that it might not fit TOC}
|
||||
|
||||
If you are having trouble viewing the document please send an email to the computing officer: \href{mailto:kks32@cam.ac.uk}{kks32@cam.ac.uk}\\
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
\chapter{My Third Chapter}
|
||||
|
||||
\section{First Section of the Third Chapter}
|
||||
\section{First Section of the Third Chapter}
|
||||
\markboth{\MakeUppercase{\thechapter. My Third Chapter }}{\thechapter. My Third Chapter}
|
||||
And now I begin my third chapter here ...
|
||||
|
||||
|
@ -148,12 +148,23 @@
|
||||
|
||||
% Custom Header with Chapter Number, Page Number and Section Numbering
|
||||
\pagestyle{fancy}
|
||||
\renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1 }{}}
|
||||
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
|
||||
\fancyhead[LO]{\bfseries\rightmark}
|
||||
% Style 1:
|
||||
%\renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1 }{}}
|
||||
%\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
|
||||
%\fancyhead[LO]{\bfseries\rightmark}
|
||||
%\fancyhead[LE,RO]{\bfseries\thepage}
|
||||
%\fancyhead[RE]{\bfseries\leftmark}
|
||||
%\fancyfoot{}
|
||||
|
||||
% Style 2:
|
||||
\renewcommand{\chaptermark}[1]{\markboth{Chapter \thechapter. #1}{}}
|
||||
\renewcommand{\sectionmark}[1]{\markright{#1}}
|
||||
\fancyhead[LO]{\rightmark}
|
||||
\fancyhead[LE,RO]{\bfseries\thepage}
|
||||
\fancyhead[RE]{\bfseries\leftmark}
|
||||
\fancyhead[RE]{\leftmark}
|
||||
\fancyfoot{}
|
||||
|
||||
|
||||
\renewcommand{\headrulewidth}{0.5pt}
|
||||
\renewcommand{\footrulewidth}{0pt}
|
||||
\addtolength{\headheight}{0.5pt}
|
||||
|
BIN
thesis.pdf
BIN
thesis.pdf
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
\documentclass[a4paper,11pt,twoside]{Classes/PhDThesisPSnPDF}
|
||||
|
||||
%Enable Print or Online version for appropriate referencing styles and links (comment line below to use Online version)
|
||||
%Enable Print or Online version for appropriate referencing styles and links, and page layout support for both oneside and twoside layout especially for binding (comment line below to use Online version)
|
||||
|
||||
%\PrintVersion
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user