From a0215ad8f085146c76d305428aa2fa0280521c0f Mon Sep 17 00:00:00 2001
From: Nao Pross <naopross@thearcway.org>
Date: Sun, 29 Jan 2017 21:09:30 +0100
Subject: finished energy production

---
 doc/pdi.tex | 51 +++++++++++++++++++++++++++++++++++----------------
 1 file changed, 35 insertions(+), 16 deletions(-)

(limited to 'doc/pdi.tex')

diff --git a/doc/pdi.tex b/doc/pdi.tex
index 40bbabd..09628b5 100644
--- a/doc/pdi.tex
+++ b/doc/pdi.tex
@@ -7,26 +7,25 @@
 %% Alan Scheidegger 3B
 %% 
 
-\documentclass[a4paper,twoside,12pt,openright]{report}
+\documentclass[a4paper,twoside,12pt,openany]{report}
 
 %% Packages {{{
 % file encoding and language
-\usepackage[utf8]{inputenc}
 \usepackage[english,italian]{babel}
-% \usepackage{lmodern}
 \usepackage[scaled]{helvet}
-\renewcommand\familydefault{\sfdefault} 
-%\usepackage[helvet]{sfmath}
+% \usepackage{lmodern}
+% \usepackage[helvet]{sfmath}
+% \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
 
 % page layout
 \usepackage[inner=2cm,outer=1.5cm,top=3cm,bottom=3cm]{geometry}
 \usepackage{fancyhdr}
 \usepackage{lastpage} % used for header
-%\usepackage{marginnote}
 \usepackage{afterpage}
 
 % figures / resources
+\usepackage[dvipsnames]{xcolor}
 \usepackage{graphicx}
 \usepackage{wrapfig}
 \usepackage{caption}
@@ -36,8 +35,6 @@
 
 % plot data
 \usepackage{pgfplots}
-\pgfplotsset{compat=1.9}
-\pgfkeys{/pgf/number format/.cd,1000 sep={'}}
 
 % math
 \usepackage{amsmath}
@@ -48,7 +45,7 @@
 \hypersetup{hidelinks=true}
 
 % bibiograpy
-\usepackage[backend=biber]{biblatex}
+\usepackage[backend=biber,defernumbers=true]{biblatex}
 \addbibresource{pdi.bib}
 
 % other
@@ -81,9 +78,28 @@
 %% }}}
 
 %% Setup of packages {{{
+\renewcommand\familydefault{\sfdefault} % set font
 \selectlanguage{italian}
+
+% pgfplots settings
+\pgfplotsset{compat=1.9}
+\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
 
@@ -101,7 +117,7 @@
         il surriscaldamento globale.
     \end{abstract} % }}}
 
-    % header {{{ 
+    % header {{{
     \setlength\headheight{40pt}
 
     \fancyhead[L]{\includegraphics[height=1.25cm]{res/images/cam_cpt_logo}}
@@ -119,16 +135,16 @@
     \tableofcontents
 
     % chapters {{{
-    \selectlanguage{english} 
+    \selectlanguage{english}
     \input{tex/introduzione}
     \selectlanguage{italian}
 
     \afterpage{
-    \newgeometry{inner=2cm,outer=4.5cm,top=3cm,bottom=3cm,marginpar=3.5cm,marginparsep=5mm}
-    \fancyhfoffset[E,O]{0pt}
-    \input{tex/produzione}
-    \input{tex/consumo}
-    \restoregeometry
+        \newgeometry{inner=2cm,outer=4.5cm,top=3cm,bottom=3cm,marginpar=3.5cm,marginparsep=5mm}
+        \fancyhfoffset[E,O]{0pt}
+        \input{tex/produzione}
+        \input{tex/consumo}
+        \restoregeometry
     }
 
     \input{tex/politica}
@@ -137,7 +153,10 @@
 
     \clearpage
     \listoffigures
+    \begingroup
+    \let\clearpage\relax
     \listoftables
+    \endgroup
 
     \printbibliography[keyword={gov}]
     \printbibliography[title={Fonti Esterne},keyword={ref},heading=subbibliography]
-- 
cgit v1.2.1

