notes: add header and footer
This commit is contained in:
parent
e46a0c2057
commit
53ee5aff16
@ -10,6 +10,8 @@ lang: en-GB
|
|||||||
numbersections: true
|
numbersections: true
|
||||||
fontsize: 12pt
|
fontsize: 12pt
|
||||||
documentclass: article
|
documentclass: article
|
||||||
|
classoption:
|
||||||
|
- twoside
|
||||||
geometry:
|
geometry:
|
||||||
- width=150mm
|
- width=150mm
|
||||||
- top=20mm
|
- top=20mm
|
||||||
@ -30,6 +32,11 @@ header-includes: |
|
|||||||
\floatplacement{figure}{H}
|
\floatplacement{figure}{H}
|
||||||
|
|
||||||
|
|
||||||
|
%% colors
|
||||||
|
\definecolor{cyclamen}{RGB}{146,24,43}
|
||||||
|
\definecolor{brick}{RGB}{160,54,35}
|
||||||
|
|
||||||
|
|
||||||
%% customer macros
|
%% customer macros
|
||||||
% "with" in formulas
|
% "with" in formulas
|
||||||
\DeclareMathOperator{\with}{%
|
\DeclareMathOperator{\with}{%
|
||||||
@ -58,6 +65,7 @@ header-includes: |
|
|||||||
% average value with angle brakets
|
% average value with angle brakets
|
||||||
\newcommand{\avg}[1]{\langle#1\rangle}
|
\newcommand{\avg}[1]{\langle#1\rangle}
|
||||||
|
|
||||||
|
|
||||||
% book cover
|
% book cover
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\renewcommand\maketitle{
|
\renewcommand\maketitle{
|
||||||
@ -91,6 +99,18 @@ header-includes: |
|
|||||||
\captionsetup{font={footnotesize,it}}
|
\captionsetup{font={footnotesize,it}}
|
||||||
\captionsetup{width=11cm}
|
\captionsetup{width=11cm}
|
||||||
\usepackage{stmaryrd}
|
\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
|
bibliography: docs/bibliography.bib
|
||||||
|
Loading…
Reference in New Issue
Block a user