forked from Pseudomanifold/latex-mimosis
-
Notifications
You must be signed in to change notification settings - Fork 2
/
main-template.tex
223 lines (177 loc) · 5.73 KB
/
main-template.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
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
\documentclass{mimosis}
\usepackage[a4paper]{geometry}
\geometry{left=1.55in}
\geometry{right=1.55in}
% PDF-A output
%\usepackage{metalogo}
%\usepackage[a-3u]{pdfx}
% Compile just one chapter
%\includeonly{Sources/chapter_to_include.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Some of my favorite personal adjustments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% These are the adjustments that I consider necessary for typesetting
% a nice thesis. However, they are *not* included in the template, as
% I do not want to force you to use them.
% This ensures that I am able to typeset bold font in table while still aligning the numbers
% correctly.
\usepackage{etoolbox}
\usepackage{siunitx}
\DeclareSIUnit\px{px}
\DeclareSIUnit\dBm{dBm}
\sisetup{%
detect-all = true,
detect-family = true,
detect-mode = true,
detect-shape = true,
detect-weight = true
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Customs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Openright with oneside class
% Taken from http://mirrors.ctan.org/macros/latex/unpacked/latex.ltx
\makeatletter
\def\cleardoublepage{\clearpage\ifodd\c@page\else
\hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi}
\makeatother
% No footnote ends in different pages
\interfootnotelinepenalty=10000
\usepackage{amsthm}
% Argmax
\DeclareMathOperator*{\argmax}{arg\,max}
% Lemma environment
%\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}{Lemma}
% Better QED
\renewcommand\qedsymbol{$\blacksquare$}
% Algorithms
\usepackage{algpseudocode,algorithm,algorithmicx}
% Asymptotic computational complexity
\newcommand\bigO[1]{$\mathcal{O}(#1)$}
\definecolor{UNIPDRED}{RGB}{155,0,20}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
% Coloured chapter numbers
%\renewcommand*{\chapterformat}{%
% \fontsize{60}{68}\selectfont\textcolor{uniPdRed}{\thechapter}\hspace{0.2in}%
%}
%\renewcommand\chapterlinesformat[3]{\Ifstr{#2}{}{}{#2\\*}#3}
\usepackage[inline]{enumitem}
% Fancy headings
\KOMAoption{chapterprefix}{true}
\renewcommand*\raggedchapter{\centering}
\RedeclareSectionCommand[beforeskip=0pt,afterskip=4\baselineskip]{chapter}
\setkomafont{chapterprefix}{\normalsize\mdseries}
\renewcommand*{\chapterformat}{%
\chapappifchapterprefix{\nobreakspace}\textcolor{UNIPDRED}{\LARGE{\hspace{0.01cm} \thechapter}}\autodot%
\IfUsePrefixLine{%
\par\nobreak\vspace{-\parskip}\vspace{-.6\baselineskip}%
{\rule{0.9\textwidth}{0.5pt}}%
}{\enskip}%
}
% Better tables
\usepackage{colortbl}
\usepackage{multirow}
\usepackage{hhline}
\renewcommand\chapterlineswithprefixformat[3]{%
\MakeUppercase{#2#3}
}
% Dropped letters
\usepackage{lettrine}
% Placeholder text
\usepackage{lipsum}
% TikZ & Co.
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usepgfplotslibrary{polar}
\usepackage{pgfplotstable}
\pgfplotsset{plot coordinates/math parser=false}
\usetikzlibrary {patterns.meta}
\usetikzlibrary{plotmarks,patterns,patterns.meta,decorations.pathreplacing,backgrounds,calc,arrows,arrows.meta,spy,matrix}
\newlength\fheight
\newlength\fwidth
\usepackage{booktabs}
\usepackage{multirow}
\usetikzlibrary{patterns,decorations.pathreplacing,backgrounds,calc}
\usepgfplotslibrary{patchplots,groupplots,fillbetween}
\usepackage{afterpage}
\usepackage{tabulary}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Hyperlinks & bookmarks
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{bookmark}
\bookmarksetup{color=black}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% I like the bibliography to be extremely plain, showing only a numeric
% identifier and citing everything in simple brackets. The first names,
% if present, will be initialized. DOIs and URLs will be preserved.
\usepackage[%
autocite = plain,
backend = biber,
doi = true,
url = true,
giveninits = true,
hyperref = true,
maxbibnames = 99,
maxcitenames = 99,
sorting = none,
style = numeric-comp,
]{biblatex}
\hypersetup{
% Document-wide hyperlinks color
colorlinks=true,
citecolor=UNIPDRED,
%allbordercolors=UNIPDRED
}
\usepackage{xurl}
\addbibresource{Sources/bibl.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fonts
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage[lf]{ebgaramond}
%\usepackage[scale=0.8]{sourcecodepro}
\usepackage{newpxtext,newpxmath} % Palatino like text and math
\onehalfspacing
\renewcommand{\th}{\textsuperscript{\textup{th}}\xspace}
\input{Sources/acronyms.tex}
\makeindex
\makeglossaries
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Incipit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{\textcolor{UNIPDRED}{Dissertation title}}
\author{Dissertation author}
\begin{document}
\frontmatter
\include{Sources/Title_Unipd}
\include{Sources/Title_UniPD_background_logo}
\include{Sources/Title_UniPD_background_logo_2}
\include{Sources/Title_UniPD_tufte_like}
%\include{Sources/Abstract}
\newpage\phantom{justskipthepage}
{
% Custom link color for TOC
\hypersetup{linkcolor=black}
\tableofcontents
}
\mainmatter
\include{Sources/Introduction}
% This ensures that the subsequent sections are being included as root
% items in the bookmark structure of your PDF reader.
\bookmarksetup{startatroot}
\backmatter
\begingroup
\let\clearpage\relax
\printglossary[type=\acronymtype]
\newpage
\printglossary
\endgroup
\printindex
\printbibliography
\end{document}