notes: add header and footer

This commit is contained in:
Michele Guerini Rocco 2020-06-03 12:11:46 +02:00
parent e46a0c2057
commit 53ee5aff16

View File

@ -10,6 +10,8 @@ lang: en-GB
numbersections: true
fontsize: 12pt
documentclass: article
classoption:
- twoside
geometry:
- width=150mm
- top=20mm
@ -30,15 +32,20 @@ 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}{%
\hspace{30pt} \text{with} \hspace{30pt}
\hspace{30pt} \text{with} \hspace{30pt}
}
% "thus" in formulas
\DeclareMathOperator{\thus}{%
\hspace{30pt} \Longrightarrow \hspace{30pt}
\hspace{30pt} \Longrightarrow \hspace{30pt}
}
% "et" in formulas
@ -58,8 +65,9 @@ header-includes: |
% average value with angle brakets
\newcommand{\avg}[1]{\langle#1\rangle}
% book cover
\makeatletter
\makeatletter
\renewcommand\maketitle{
\begin{titlepage}
\begin{center}
@ -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