summaryrefslogtreecommitdiffstats
path: root/doc/pdi.tex
blob: 736a51a65d300e055ff5c1c3663f634c8542586a (plain)
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
%% Analisi del consumo e della produzione energetica del Canada
%% Progetto Didattico Interdisciplinare
%%
%% SAM Bellinzona 2016/17
%%
%% Naoki Pross 3B
%% Alan Scheidegger 3B
%% 

\documentclass[draft, a4paper,twoside,12pt,openany]{report}

%% Packages {{{
% file encoding and language
\usepackage[english,italian]{babel}
\usepackage{csquotes}
\usepackage[scaled]{helvet}
% \usepackage{lmodern}
% \usepackage[helvet]{sfmath}
% \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

% page layout
\usepackage[inner=2cm,outer=1.5cm,top=3cm,bottom=3cm,marginpar=5mm]{geometry}
\usepackage{fancyhdr}
\usepackage{lastpage} % used for header
\usepackage{afterpage}
\usepackage[raggedrightboxes]{ragged2e} % marginpar

% figures / resources
\usepackage[dvipsnames]{xcolor}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{float}
\usepackage{csvsimple}

% plot data
\usepackage{pgfplots}

% math
\usepackage{amsmath}
\usepackage{cancel}

% links
\usepackage[hidelinks]{hyperref}

% bibiograpy
\usepackage[backend=biber,defernumbers=true]{biblatex}
\addbibresource{pdi.bib}

% other
\usepackage{draftwatermark}
% \usepackage{blindtext}
% \usepackage{showframe}

%% }}}

%% Watermark + fancyhdr setup {{{
% headers / footers
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}

% draft watermark
\SetWatermarkLightness{.95}
\SetWatermarkScale{1.5}
\SetWatermarkText{\tt DRAFT}

% draft mode (double line spacing
\linespread{1.25}
%% }}}

%% Infos {{{
\title{Analisi della produzione e\\
        del consumo di energia in Canada}

\author{Naoki Pross, Alan Scheidegger\\
    \textit{Scuola Arti e Mestieri Bellinzona 3B}}
%% }}}

%% Setup of packages {{{
\renewcommand\familydefault{\sfdefault} % set font
\selectlanguage{italian}

% pgfplots settings
\pgfplotsset{compat=1.11}
\pgfkeys{/pgf/number format/.cd,1000 sep={'}}

% fix bibliography limit
\emergencystretch=1em
%% }}}

% \makeatletter
% \def\@maketitle{
%     \begin{center}
%         {\Huge \bfseries \sffamily \@title }\\[4ex] 
%         {\Large  \@author}\\[4ex] 
%         \@date\\[8ex]
%         \includegraphics[width=0.5\linewidth]{res/images/maple_leaf}\\
%     \end{center}
% }
% \makeatother

\begin{document}
    \maketitle
    % \begin{titlepage}
    %     \begin{center}
    %         \vspace*{1cm}

    %         \Huge
    %         \textbf{Thesis Title}

    %         \vspace{0.5cm}
    %         \LARGE
    %         Thesis Subtitle

    %         \vspace{1.5cm}

    %         \textbf{Author Name}

    %         \vfill

    %         % \includegraphics[width=0.4\textwidth]{university}

    %     \end{center}
    % \end{titlepage} 


    % abstract {{{
    \selectlanguage{english} % to keep "abstract" instead of "sommario"
    \begin{abstract}
        Il Progetto Didattico Interdisciplinare (PDI) del terzo anno alla 
        Scuola Arti e Mestieri di Bellinzona, quest'anno propone la
        tematica dell'energia.
        La ricerca presenta una panoramica del consumo e della produzione 
        energetica del Canada e un analisi dello stato corrente dei 
        sistemi di produzione delle varie forme di energie. Inoltre si 
        analizzer\`a i livelli di inquinamento causati dalle varie attivit\`a 
        per poter individuare i fattori principali di una nazione che causano 
        il surriscaldamento globale.
    \end{abstract} % }}}

    % header {{{
    \setlength\headheight{40pt}

    \fancyhead[L]{\includegraphics[height=1.25cm]{res/images/cam_cpt_logo}}
    \fancyhead[R]{\rightmark}
    \fancyfoot[RO,LE]{Page \thepage~of \pageref{LastPage}}

    \fancypagestyle{plain}{
        \fancyfoot{}
        \fancyfoot[RO,LE]{Page \thepage~of \pageref{LastPage}}
    }
    % }}}

    \addtocounter{page}{-1}
    \selectlanguage{italian}
    \tableofcontents

    % chapters {{{
    \selectlanguage{english}
    \input{tex/introduzione}
    \selectlanguage{italian}

    \afterpage{
        \newgeometry{inner=2cm,outer=4.5cm,top=3cm,bottom=3cm,marginpar=3.5cm,marginparsep=5mm}
        \setlength\headheight{40pt}
        \fancyhfoffset[E,O]{0pt}
        \input{tex/produzione}
        \input{tex/consumo}
        \restoregeometry
    }

    \input{tex/politica}
    \input{tex/conclusioni}
    % }}}

    \clearpage
    \listoffigures
    \begingroup
    \let\clearpage\relax
    \listoftables
    \endgroup

    \printbibliography[keyword={gov}]
    \printbibliography[title={Fonti Esterne},keyword={ref},heading=subbibliography]
    \printbibliography[title={Immagini},keyword={pic},heading=subbibliography]
\end{document}