Left/Right margins, Logo and Section Name in Heading, Pagenumbering in the footer
This commit is contained in:
@@ -6,3 +6,27 @@
|
||||
\usepackage[hyphens]{url}
|
||||
\usepackage[hidelinks]{hyperref}
|
||||
\setlength{\emergencystretch}{3em} % Prevent overfull lines
|
||||
|
||||
\usepackage{fancyhdr}
|
||||
|
||||
% Define the fancy style but don't activate yet
|
||||
\fancypagestyle{fancy}{
|
||||
\fancyhf{} % clear all header and footer fields
|
||||
\fancyhead[RO,LE]{\includegraphics[height=1.5cm]{images/preamble/logo.png}}
|
||||
\fancyhead[LO,RE]{\nouppercase{\leftmark}}
|
||||
\fancyfoot[RO,LE]{\thepage}
|
||||
\renewcommand{\headrulewidth}{0.4pt}
|
||||
\renewcommand{\footrulewidth}{0.4pt}
|
||||
\newgeometry{top=2.5cm, bottom=2cm, left=3cm, right=2cm, includehead, includefoot}
|
||||
\setlength{\headheight}{50pt}
|
||||
\setlength{\footskip}{30pt}
|
||||
}
|
||||
|
||||
\renewcommand{\sectionmark}[1]{\markboth{#1}{}} % Set section title to \leftmark
|
||||
|
||||
% Default style for preamble/TOC
|
||||
\pagestyle{plain}
|
||||
\fancyhf{}
|
||||
\fancyfoot[C]{\thepage}
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
\renewcommand{\footrulewidth}{0pt}
|
||||
|
||||
Reference in New Issue
Block a user