This repository has been archived by the owner on May 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
165 lines (145 loc) · 4.25 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
\documentclass[a4paper, 11pt, twoside]{book}
\usepackage[a4paper]{geometry}
\usepackage{textcomp}
\usepackage{color}
\usepackage{url}
\usepackage{amsfonts}
\usepackage{float}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{makeidx}
\usepackage{fancyhdr}
\usepackage[times]{quotchap}
\usepackage{amsmath}
\usepackage{listings}
\usepackage{fancybox}
\usepackage{enumitem}
\usepackage[toc,page]{appendix} % appendice
\usepackage{dirtree} % struttura directory
\usepackage{hyphenat}
\usepackage[italian]{babel}
%%%%%% BIBLIOGRAFIA %%%%%%
\usepackage[
backend=biber,
style=numeric
]{biblatex}
\addbibresource{content/biblio.bib}
%%%%%% APPENDICE %%%%%%
\renewcommand{\appendixname}{Appendice}
\renewcommand{\appendixtocname}{Appendice}
\renewcommand{\appendixpagename}{Appendice}
%% Aggiunge una linea al di sotto di ogni sezione principale
\usepackage[calcwidth]{titlesec}
\titleformat{\section}[hang]{\sffamily\bfseries}
{\Large\thesection}{12pt}{\Large}[{\titlerule[0.4pt]}]
%% Gestisce la grafica a seconda che si usi latex o pdflatex
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse % no pdflatex
\else
\pdfoutput=1 % pdflatex
\pdftrue
\fi
%
\ifpdf
\usepackage[pdftex]{floatflt,graphicx}
\DeclareGraphicsExtensions{.pdf,.mps,.png,.jpg}
\graphicspath{{img/}}
\usepackage[hidelinks,pdftex]{hyperref}
\else
\usepackage{floatflt,graphicx}
\DeclareGraphicsExtensions{.eps}
\fi
\usepackage{subfig}
\usepackage{adjustbox}
\usepackage{multirow}
\usepackage[utf8]{inputenc} % per accenti
\usepackage{csquotes}
%%%%%%%%%%%%% NUOVI COMANDI E IMPOSTAZIONI %%%%%%%%%%%
\newenvironment{mcquote}
{\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}}
\item[]``\ignorespaces}
{\unskip''\end{list}}
\newcommand{\mcchap}[2]{\protect{
\chapter{#1}
\label{#2}
}}
%% Gestione header: no header sulle dispari bianche
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else%
\hbox{}%
\thispagestyle{empty}% % Empty header styles
%\newpage%
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
\newcommand{\placetextbox}[3]{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
\setbox0=\hbox{#3}% Put <stuff> in a box
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
\put(\LenToUnit{#1\paperwidth},\LenToUnit{#2\paperheight}){\vtop{{\null}\makebox[0pt][c]{#3}}}%
}%
}%
%%%%%%%%%%%%%%%% METADATI DOCUMENTO %%%%%%%%%%%%%%%%%%
\date{}
%%%%%%%%%%%%%%%%%% INIZIO DOCUMENTO %%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{empty}
%% Pagina del titolo
\input{content/0_Copertina}
\cleardoublepage{}
\input{content/dedica}
%% Indice ed elenchi
\pagenumbering{roman}
\setcounter{page}{1}
\setcounter{tocdepth}{3}
\renewcommand*\contentsname{Contenuti}
\tableofcontents
\cleardoublepage
%% Inizio capitoli
\mainmatter{}
%% Capitoli
\pagestyle{fancy}
\large % aumenta la dimensione del carattere
\setlength{\parskip}{1em} % spazio paragrafi
\setlength{\parindent}{0pt} % indentazione dei paragrafi
\renewcommand{\baselinestretch}{1.2} % spaziatura tra le righe
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{} % delete current setting for header and footer
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.8pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\figurename}{Fig.} % cambio nome figura
%\renewcommand{\headheight}{13.59999pt}
\addtolength{\headheight}{0.5pt} % make space for the rule
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers on plain pages
\fancyfoot[C]{\bfseries \thepage}
\renewcommand{\headrulewidth}{0pt} % and the line
}
\cleardoublepage
\setcounter{page}{1}
\include{content/1_Introduzione}
\include{content/2_ContestoLavoro}
\include{content/3_Obiettivi}
\include{content/4_BreveStoria}
\include{content/5_DesignSviluppo}
\include{content/6_Dashboard}
\include{content/7_Portale}
\include{content/9_Conclusioni}
\begin{appendices}
\include{content/manual}
\end{appendices}
\include{content/Colophon}
\appendix
\backmatter{}
\printindex
\medskip
\nocite{*} % stampa tutta la bibliografia
\printbibliography[
heading=bibintoc,
title={Bibliografia}
]
\end{document}