-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.tex
More file actions
81 lines (75 loc) · 2.28 KB
/
header.tex
File metadata and controls
81 lines (75 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{listings}
% \usepackage{xcolor}
\usepackage[table]{xcolor}
\usepackage{amsmath}
\usepackage{cancel}
\usepackage{fancyhdr}
\usepackage{xfrac}
\usepackage{amssymb}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{minted}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{hyperref}
% fissa le footnotes in fondo alla pagina
\usepackage[bottom]{footmisc}
\usetikzlibrary{decorations.pathreplacing,calligraphy}
% FIX MARGINI
\usepackage{geometry}
\geometry{
a4paper,
total={170mm, 257mm},
left=20mm,
top=20mm,
}
% COMANDI CUSTOM
% \abovemargin{1pt} imposta il margine sopra una equazione \[ \] a 1 pt
\newcommand{\abovemargin}[1]{\setlength\abovedisplayskip{#1}}
% \s = \sigma
\newcommand{\s}{\sigma}
% \sumi = {\sum}_i
\newcommand{\sumi}{{\sum}_i}
% \uloosdot{parola} = parola sottolineata con lineette (utile per le footnotes)
\newcommand{\uloosdash}[1]{%
\tikz[baseline=(todotted.base)]{
\node[inner sep=1pt,outer sep=0pt] (todotted) {#1};
\draw[loosely dashed] (todotted.south west) -- (todotted.south east);
}%
}%
% DEFINIZIONE DEGLI SNIPPET DI CODICE
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{style}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=style}
% DEFINIZIONE COLORI
\definecolor{lightgreen}{rgb}{0.5,1,0.5}
\definecolor{lightred}{rgb}{1,0.5,0.5}
\definecolor{Orange}{HTML}{F58137}
\definecolor{ForestGreen}{HTML}{009B55}
\renewcommand{\figurename}{Figura}
\newcommand{\red}[1]{\color{red}{#1}\normalcolor}
\newcommand{\orange}[1]{\color{Orange}{#1}\normalcolor}
\newcommand{\green}[1]{\color{ForestGreen}{#1}\normalcolor}