-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
223 lines (185 loc) · 5.68 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
% !TEX encoding = utf8
% To print by both sides
%\documentclass[b5paper,11pt,twoside,cucitura]{toptesi}
% To print by one side
\documentclass[a4paper,11pt,cucitura,tipotesi=magistrale,stile=classica]{toptesi} % Page and font size
%\usepackage[a4paper,top=4.3cm,bottom=5.5cm,left=3cm,right=3cm,bindingoffset=5mm]{geometry}
% TODO for agsm style import the package natbib
%\usepackage{natbib}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage[linesnumbered,ruled]{algorithm2e}
%\usepackage{subfig}
\renewcommand{\figurename}{Fig.}
\usepackage{listings}
\usepackage{color}
% ADDED NOW
\usepackage{float}
%\usepackage{ulem}
\usepackage{hhline}
\usepackage{amsmath}
\usepackage{ragged2e}
\usepackage{bookmark}
\usepackage{comment}
\usepackage{booktabs}
\usepackage{tabularx}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\usepackage{hyphenat}
\usepackage{rotating} % rotate text in table
\usepackage{amssymb} % tick sign
\usepackage{pifont} % tick sign
\usepackage{enumitem}
\setlist[itemize,enumerate,description]{noitemsep,nolistsep} % removes ugly separation of itemize
\usepackage[
type={CC},
modifier={by-nc-sa},
version={3.0},
lang=english,
imagewidth=8em,
]{doclicense}
\advance\voffset -5mm
\advance\textheight 20mm
%for max height
\usepackage{graphicx}
\usepackage[export]{adjustbox}
%\usepackage{subfigure}
\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}{1,1,1}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=true,
showtabs=false,
tabsize=2}
\lstset{style=mystyle,
frame=single}
\usepackage{hyperref}
\hypersetup{
pdfpagemode={UseOutlines},
bookmarksopen,
pdfstartview={FitH},
%colorlinks,
%linkcolor={blue},
%linkcolor={black}, % Secretary version
%citecolor={red},
%citecolor={black}, % Secretary version
%urlcolor={black} % Secretary version
%urlcolor={blue}
}
\usepackage[utf8]{inputenc}% per macchine Linux/Mac/UNIX/Windows; meglio utf8
\usepackage[T1]{fontenc}\usepackage{lmodern}
\usepackage[intoc,english]{nomencl}
%%%%%%%%%%%%%%%%%%%%%%%% Glossary
\usepackage[nogroupskip,toc]{glossaries} %nogroupskip for alphabetical order
%\usepackage[toc]{glossaries}
\renewcommand*{\glstextformat}[1]{#1}
%\renewcommand*{\glstextformat}[1]{\textcolor{black}{\textbf{#1}}} % Secretary version
% build glossary
\makeglossaries
\input{partials/glossary}
%% set the subsubsection to appear, stop to 3 please
%\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{3}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%% List of Abbreviations
\makenomenclature
%\renewcommand{\nomname}{List of Abbreviations}
\input{partials/properties.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%% Front page
\frontespizio
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% turns off chapter numbering and uses roman numerals for page numbers
\frontmatter
\pagenumbering{roman}
%\ringraziamenti
%Grazie a tutti
% TODO ringraziamenti
% CITAZIONE - PERSONALIZZARE
% VSPACE - PROPORZIONE USATA PER CENTRATURA VERTICALE DEL TESTO
% FLUSHRIGHT - ALLINEAMENTO ORIZZONTALE A DESTRA
\vspace*{\stretch{1}}
\begin{flushright}
\noindent
\textit{To all the ones that supported me.}
%\textit{To my family, I will be forever in their debt.}
%\textit{Docker Book}
\end{flushright}
\vspace*{\stretch{6}}
\doclicenseThis
%
%\cleardoublepage
%%
%\vspace*{\stretch{1}}
%\begin{flushright}
%\noindent
%\textit{"To those who try, whether they fail or succeed."}
%
%\textit{Adrian Mouat}
%\end{flushright}
%\vspace*{\stretch{6}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ABSTRACT - PERSONALIZZARE
\sommario
%\input{partials/abstract.tex}
\input{partials/abstract.tex}
\tablespagetrue\figurespagetrue
\indici
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pagenumbering{arabic}
% INDICE GENERALE
%\phantomsection
%\newcommand{\Contentsname}{Contents}
%\addcontentsline{toc}{chapter}{\Contentsname}
%\tableofcontents
%\newpage
%\tableofcontents
%\addcontentsline{toc}{chapter}{Contents}
%\phantomsection
%% INDICE DELLE FIGURE
%\newpage
%\phantomsection \label{listoffig}
%\addcontentsline{toc}{chapter}{List of Figures}
%\listoffigures
%
%% INDICE DELLE TABELLE
%\newpage
%\phantomsection \label{listotable}
%\addcontentsline{toc}{chapter}{List of Tables}
%\listoftables
%
%% Abbreviations
%\renewcommand{\nomname}{List of Abbreviations}
%\printnomenclature
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% turns on chapter numbering, resets page numbering and uses arabic numerals for page numbers
\mainmatter
\pagenumbering{arabic}
\input{partials/chapter_1.tex}
\input{partials/chapter_2.tex}
\input{partials/chapter_3.tex}
\input{partials/chapter_4.tex}
\input{partials/chapter_5.tex}
\input{partials/chapter_6.tex}
% print the glossaries, without listing all the pages appearing
\printglossary[nonumberlist]
%\nocite{*} % uncomment to show also not cited ones
% TODO use agsm with package natbib import
%\bibliographystyle{agsm} % Use the "unsrtnat" BibTeX style for formatting the Bibliography
\bibliographystyle{acm}
\bibliography{references} % The references (bibliography) information are stored in the file named "Bibliography.bib"
\end{document}