notes: add header and footer
This commit is contained in:
parent
e46a0c2057
commit
53ee5aff16
@ -10,6 +10,8 @@ lang: en-GB
|
||||
numbersections: true
|
||||
fontsize: 12pt
|
||||
documentclass: article
|
||||
classoption:
|
||||
- twoside
|
||||
geometry:
|
||||
- width=150mm
|
||||
- top=20mm
|
||||
@ -30,6 +32,11 @@ header-includes: |
|
||||
\floatplacement{figure}{H}
|
||||
|
||||
|
||||
%% colors
|
||||
\definecolor{cyclamen}{RGB}{146,24,43}
|
||||
\definecolor{brick}{RGB}{160,54,35}
|
||||
|
||||
|
||||
%% customer macros
|
||||
% "with" in formulas
|
||||
\DeclareMathOperator{\with}{%
|
||||
@ -58,6 +65,7 @@ header-includes: |
|
||||
% average value with angle brakets
|
||||
\newcommand{\avg}[1]{\langle#1\rangle}
|
||||
|
||||
|
||||
% book cover
|
||||
\makeatletter
|
||||
\renewcommand\maketitle{
|
||||
@ -91,6 +99,18 @@ header-includes: |
|
||||
\captionsetup{font={footnotesize,it}}
|
||||
\captionsetup{width=11cm}
|
||||
\usepackage{stmaryrd}
|
||||
|
||||
% configure head/footers
|
||||
\usepackage{fancyhdr}
|
||||
\pagestyle{fancy}
|
||||
\renewcommand{\sectionmark}[1]{\markboth{#1}{}} % no section number
|
||||
\renewcommand{\headrule}{\hbox to\headwidth{%
|
||||
\color{brick}\leaders\hrule height 0.8pt\hfill}}
|
||||
\renewcommand{\footrule}{\hbox to\headwidth{%
|
||||
\color{gray}\leaders\hrule height 0.8pt\hfill}}
|
||||
\fancyfoot{}
|
||||
\fancyfoot[LO,RE]{\vspace{2mm}Giulia Marcer, Michele Guerini Rocco}
|
||||
\fancyfoot[RO,LE]{\vspace{2mm}\thepage}
|
||||
```
|
||||
|
||||
bibliography: docs/bibliography.bib
|
||||
|
Loading…
Reference in New Issue
Block a user