-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
198 lines (169 loc) · 7.9 KB
/
Copy pathmain.tex
File metadata and controls
198 lines (169 loc) · 7.9 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
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
%& -shell-escape
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Howto
%%
%% To compile this document
%% pdflatex pages/tesi-front.tex
%% pdflatex pages/tesi-post-front.tex
%% pdflatex --shell-escape main.tex
\documentclass[12pt,% % corpo del font principale
a4paper,twoside, % carta A4, fronte
titlepage,% % frontespzio
headinclude,,footinclude,% % testatina e pié di pagina
numbers=noenddot,% % niente punto dopo il numero delle sezioni
cleardoublepage=empty,% % pagine vuote senza testatina e pié di pagina
abstracton,%
appendixprefix=true,%
%draft % useful for debug
]{scrreprt} % classe report di KOMA-Script;
%%% font / input %%%%%%%%%%%%
\usepackage[T1]{fontenc} % la codifica dei font
\usepackage[utf8]{inputenc} % imposta la codifica di input;
%%% language %%%%%%%%%%%%%%%%
\usepackage[italian,english]{babel} % per scrivere in italiano e in inglese;
%%% document style %%%%%%%%%%
\usepackage[eulerchapternumbers,% % numeri dei capitoli in Euler
eulermath,% % AMS Euler come font per la matematica
%pdfspacing% % migliora il riempimento di riga con PDFLaTeX
]{classicthesis} % lo stile ClassicThesis
\usepackage{arsclassica} % modifica alcuni aspetti di ClassicThesis
\usepackage{setspace} % setting space among lines
\onehalfspacing
\KOMAoptions{cleardoublepage=plain} % the cleardoublepage is empty
%%% bibliography %%%%%%%%%%%%
\usepackage[autostyle]{csquotes} % useful with biblatex
\usepackage[backend=biber, % bibliography
babel=hyphen, % hyphenate using `hyphen` in bib entry
bibstyle=alphabetic, % .
citestyle=alphabetic, % .
hyperref, % .
useprefix, % .
backref]{biblatex} % .
\addbibresource{refs/bibliografia.bib} % loads bib file
\DeclareFieldFormat*[book,inbook, % removes url from some bib type entries
article, % .
inproceedings % .
]{url}{} % .
\DeclareFieldFormat*[book,inbook, % removes urldate from some bib type entries
article, % .
inproceedings % .
]{urldate}{} % .
\DeclareBibliographyCategory{online}
\defbibheading{online}{\section*{Online resources}}
\addtocategory{online}{wiki:hull}
\addtocategory{online}{wiki:gpl}
%%% math and science %%%%%%%%%
\usepackage{amsmath,amssymb,amsthm} % indispensabili per la matematica
\usepackage{xfrac} % slanted bar for fractions
\usepackage{siunitx} % SI units
\usepackage{eurosym} % euro symbol
%%% layout %%%%%%%%%%%%%%%%%%
\usepackage[{a4paper, % margins
left=3cm, % .
right=2.5cm, % .
top=3cm, % .
bottom=3.5cm, % .
heightrounded, % .
bindingoffset=1.5cm % .
}]{geometry} % .
\usepackage{varioref} % riferimenti completi della pagina
\usepackage[plain]{fancyref} % better references to fig, table, etc.
\usepackage{minitoc} % mini-index on chapter start
\usepackage{wrapfig} % wraps text around figures
\usepackage{float} % adds H option to image positioning
\usepackage{blindtext} % generates lorem ipsum
%%% images and graphics %%%%%%
\graphicspath{{img/}} % defines images path
\usepackage{graphicx} % basic graphics support
\usepackage{pdfpages} % include pdf
\usepackage[format=plain]{caption} % define captions style
\usepackage{subcaption}
\usepackage{sidecap} % enables captions on the side
\sidecaptionvpos{figure}{c}
\usepackage{parskip}
%% tikz
\usepackage{dot2texi} % converts GraphViz files to TikZ/LaTeX
\usepackage{tikz} % TikZ main package
\usetikzlibrary{ % TikZ libraries
scopes, % .
shapes, % .
arrows, % .
through, % .
calc, % .
intersections, % .
spy, % .
matrix, % .
chains, % .
decorations.pathreplacing,% .
decorations.pathmorphing, % .
decorations.markings} % .
\usepackage{pgfplots} % TikZ plots
\usepackage{pgfplotstable} % TikZ tables from CSV
\pgfplotsset{compat=1.3} % activates `xlabel shift` for pgfplots
\usepackage{gnuplot-lua-tikz} % imports GNUPlot TikZ plots
\usepackage{xifthen} % better if-then-else
\usepackage{rotating} % rotate Tikz figures
\usepackage[dvipsnames]{xcolor} % common color names
\usepackage{colortbl} % common color names
\newcommand\AlCentroPagina[1]{ % generates big b/w logo
\AddToShipoutPicture*{\AtPageCenter{ % .
\makebox(0,0){\includegraphics % .
[width=0.9\paperwidth]{#1}} % .
} % .
} % .
} % .
%%% tables %%%%%%%%%%%%%%%%%%%
\usepackage{booktabs} % migliora la qualità delle tabelle
\usepackage{tabularx} % colonne a spaziatura fissa delle tabelle
\newcommand{\otoprule} % better top rule horizontal line
{\midrule[\heavyrulewidth]} % .
\usepackage{rotfloat} % adds [H] option to sidewaystable
%%% text utils %%%%%%%%%%%%%%%
\usepackage{hyphenat}
\hypersetup{colorlinks=false} % commentare se il file non è x la stampa
\usepackage{acronym} % pacchetto per gli acronimi
\usepackage{listings} % code
% generates summary (before starting chapter's first section)
\newenvironment{chaptersum}
{
\selectlanguage{italian}
\sffamily\textbf{Sommario}\\
}
{\vspace{0.1\textwidth}}
\begin{document}
\includepdf[pages={1}]{pages/tesi-front}
\thispagestyle{empty}
\cleardoublepage
\includepdf[pages={1}]{pages/tesi-post-front}
\thispagestyle{empty}
\cleardoublepage
%******************************************
% Materiale iniziale
%******************************************
\pagenumbering{Roman}
\input{pages/dedication}\cleardoublepage
\pagestyle{scrheadings}
\input{pages/index}\cleardoublepage
%******************************************
% Materiale principale
%******************************************
\pagenumbering{arabic}
\input{cap/intro}\cleardoublepage
\input{cap/case-study}\cleardoublepage
\input{cap/results}\cleardoublepage
\input{cap/conclusions}\cleardoublepage
%******************************************
% Materiale finale
%******************************************
\input{pages/acknowledgments}\cleardoublepage
\printbibliography[notcategory=online]
\printbibliography[heading=online,category=online]
\cleardoublepage
\appendix
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
\addcontentsline{toc}{part}{\appendixname}
\input{cap/data-stat}
\input{cap/data}
\input{cap/code}
\end{document}