-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
87 lines (68 loc) · 2.07 KB
/
main.tex
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
82
83
84
85
86
87
\documentclass[a4paper,12 pt]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{float}
\usepackage{subcaption}
\usepackage{hyperref}
\usepackage{wrapfig}
\usepackage{fancyhdr}
% forza le footnote a stare il più in basso possibile
\usepackage[bottom]{footmisc}
%% STILE LISTINGS
\usepackage{xcolor}
\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{mystyle}{
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=mystyle}
%% -----
% mostra le subsubsection nell'indice
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
% Resetta la numerazione dei chapter quando
% una nuova part viene creata
\makeatletter
\@addtoreset{chapter}{part}
\makeatother
% Rimuove l'indentazione quando si crea un nuovo paragrafo
\setlength{\parindent}{0pt}
% footer
\pagestyle{fancyplain}
% rimuove la riga nell'header
\fancyhf{} % sets both header and footer to nothing
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\href{https://github.com/Typing-Monkeys/AppuntiUniversita}{Typing Monkeys}}
\fancyfoot[C]{\emoji{gorilla}}
\fancyfoot[R]{\thepage}
% configurazione emoji
\usepackage{fontspec}
\usepackage{emoji}
\setemojifont{NotoColorEmoji.ttf}[Path=/usr/share/fonts/truetype/noto/]
\begin{document}
\include{frontmatter/main.tex}
\tableofcontents
\include{quote/main.tex}
%% Aggiungere i capitoli qui sotto
\include{capitoli/cap1/main.tex}
\end{document}