-
Notifications
You must be signed in to change notification settings - Fork 0
/
_packages.tex
102 lines (85 loc) · 2.81 KB
/
_packages.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
% !TEX root = thesis-index.tex
\usepackage{ETHthesis}
\usepackage[english]{babel}
% Fonts
\usepackage[OT1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
% \usepackage[showframe]{geometry} # Useful to check hbox issues
\usepackage{amsmath, amssymb, amsthm}
\usepackage[dvipsnames]{xcolor}
% Biblio
\usepackage{csquotes}
\usepackage[backend=bibtex, style=alphabetic, natbib=true,
isbn=false, backref=true, maxcitenames=3,
maxbibnames=100]{biblatex}
% \usepackage{subcaption}
\usepackage{tikz}
\usepackage{bbm}
\usepackage{dsfont}
\usepackage{mathtools}
\usepackage{graphicx}
% Tables
\usepackage{tabularx}
\usepackage{booktabs}
% Algorithms
\usepackage{algorithm}
\usepackage[noend]{algorithmic}
\renewcommand\algorithmicthen{}
\renewcommand\algorithmicdo{}
\usepackage{eqparbox}
\renewcommand\algorithmiccomment[1]{%
\hfill\#\ \eqparbox{COMMENT}{\textit{#1}}%
}
\usepackage{xspace}
\usepackage{enumitem}
\setlist[enumerate]{leftmargin=*}
\usepackage{titlesec}
% \usepackage{hyperref}
\usepackage[hidelinks]{hyperref}
\hypersetup{pdfauthor={Francesco Locatello}, pdftitle={}, pdfsubject={A thesis submitted to attain the degree of Doctor of Sciences to ETH Zurich},
pdflang={en}, bookmarksnumbered, pageanchor=true, plainpages=false, colorlinks=true, linktocpage=true,
citecolor=MidnightBlue, filecolor=BrickRed, linkcolor=NavyBlue, urlcolor=ForestGreen}
\definecolor{light-gray}{gray}{0.65}
\titleformat{\chapter}% Command
[display]% shape
{\bfseries\Large}% Format for the whole title
{\filleft{\fontsize{80}{100}\selectfont\color{light-gray}\thechapter}}% Label
{-25pt}% horizontal separation (vertical for display)
{\filleft\fontsize{26}{35}\selectfont}% Before Code
[\vspace{5pt}\titlerule]
%% Page Layout
\setlength{\topmargin}{-7.5mm}
\setlength{\headheight}{5mm}
\setlength{\headsep}{+12.5mm}
\setlength{\textheight}{220mm}
\setlength{\footskip}{+20.mm}
\setlength{\textwidth}{161mm} %!!!
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex plus 0.25ex minus 0.25ex}
\iftwoside
\setlength{\oddsidemargin}{3mm}
\setlength{\evensidemargin}{-3mm}
\else
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{0mm}
\fi
\raggedbottom
%% Float Placement
\renewcommand{\floatpagefraction}{0.9}
\renewcommand{\topfraction}{0.9}
\renewcommand{\bottomfraction}{0.9}
\renewcommand{\textfraction}{0.1}
\renewcommand{\baselinestretch}{1.15}
% Allow subsubsections to have numbers (and be references)
\setcounter{secnumdepth}{3}
% Allow subsubsections to appear in the TOC
\setcounter{tocdepth}{3}
% \setcounter{lofdepth}{2} % we want subfigures in the list of figures
%% Line spacing
\linespread{1.25}
%% Avoid Widows and Orphans
\widowpenalty=1000
\clubpenalty=1000
\vfuzz2pt % Don't report over-full v-boxes if over-edge is small
\hfuzz2pt % Don't report over-full h-boxes if over-edge is smallq