-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.tex
158 lines (143 loc) · 5.23 KB
/
settings.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
% English
\usepackage[english]{babel} % English language setting
\usepackage[utf8]{inputenc} % Unicode text
\usepackage[T1]{fontenc} % German 'Umlaute'
\usepackage{textcomp} % Euro
\usepackage{amsmath} % Advanced mathematical notation
% \usepackage{amssymb} % Symbols
\usepackage{emptypage} % Empty pages are now actually empty
\usepackage{caption} % Better image and table captions
\usepackage{varwidth} % Used for the custom captions
\DeclareCaptionFormat{centered}{%
% #1: label (e.g. "Table 1")
% #2: separator (e.g. ": ")
% #3: caption text
\begin{varwidth}{\linewidth}
#1#2#3%
\end{varwidth}
}
\captionsetup{format=centered} % Global activation of the custom captions
% Fonts, with all the options
\usepackage[bitstream-charter]{mathdesign}
\usepackage[scaled=.96]{helvet}
\usepackage[scaled=.75]{beramono}
\usepackage{microtype}
% Images and listings
\usepackage{color}
\usepackage[dvipsnames]{xcolor}
\usepackage[tikz]{bclogo}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{adjustbox} % scaling
\usepackage{graphicx} % images
\usepackage{subfig} % sub-figures
% Don't make the LoF and LoT numbers flow into the text
\usepackage[subfigure]{tocloft}
\setlength{\cftfignumwidth}{1.5cm}
\setlength{\cfttabnumwidth}{1.5cm}
\usepackage{wrapfig} % wrapping figures
\usepackage{listings} % better source code listings
\usepackage[algoruled,lined,linesnumbered,commentsnumbered]{algorithm2e} % algorithms
\usepackage{tabularx} % better tables
\usepackage{diagbox} % diagonally split table cells
\usepackage{multirow}
\usepackage{rotating}
\usepackage{hhline}
\usepackage{enumitem}
\usepackage{array}
\usepackage{booktabs}
\usepackage[hyphens]{url}
\usepackage{forest}
\usepackage{verbatim}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.8}
\usepackage{pgfplotstable}
\graphicspath{ {figures/} }
% Credit: https://github.com/cansik/kotlin-latex-listing
\lstdefinelanguage{Kotlin}{
comment=[l]{//},
commentstyle={\color{gray}\ttfamily},
emph={delegate, filter, first, firstOrNull, forEach, lazy, map, mapNotNull, println, return@},
emphstyle={\color{OrangeRed}},
identifierstyle=\color{black},
keywords={abstract, actual, as, as?, break, by, class, companion, continue, data, do, dynamic, else, enum, expect, false, final, for, fun, get, if, import, in, interface, internal, is, null, object, override, package, private, public, return, set, super, suspend, this, throw, true, try, typealias, val, var, vararg, when, where, while},
keywordstyle={\color{NavyBlue}\bfseries},
morecomment=[s]{/*}{*/},
morestring=[b]",
morestring=[s]{"""*}{*"""},
ndkeywords={@Deprecated, @JvmField, @JvmName, @JvmOverloads, @JvmStatic, @JvmSynthetic, Array, Byte, Double, Float, Int, Integer, Iterable, Long, Runnable, Short, String},
ndkeywordstyle={\color{BurntOrange}\bfseries},
sensitive=true,
stringstyle={\color{ForestGreen}\ttfamily},
}
\definecolor{lstgrey}{rgb}{0.95,0.95,0.95}
\lstset{
language=Kotlin,
frame=single,
backgroundcolor=\color{lstgrey},
basicstyle=\smaller\ttfamily,
captionpos=b,
tabsize=2,
commentstyle=\color{gray}, % Comments font
tabsize=2, % Default tab size
captionpos=b, % Caption-position = bottom
breaklines=true, % Automatic line breaking?
breakatwhitespace=false, % Automatic breaks only at whitespace?
showspaces=false, % Dont make spaces visible
showtabs=false, % Dont make tabs visible
columns=flexible, % Column format
}
% Page layout
% Comment following two lines in for proper layout
% \usepackage[paper=a4paper,width=14cm,left=35mm,height=22cm]{geometry}
% \linespread{1.5}
\usepackage[paper=a4paper]{geometry}
\usepackage{setspace}
\usepackage[htt]{hyphenat}
\usepackage{sectsty}
\subsubsectionfont{\large}
% Page markers
\newcommand{\phv}{\fontfamily{phv}\fontseries{m}\fontsize{10}{12}\selectfont}
\usepackage{fancyhdr} % nicer header and footer
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancyhead[L]{\phv \nouppercase{\leftmark}}
\fancyhead[R]{\phv \thepage}
% rather not use anything for the footer
\fancyfoot[C]{\ } % no page count in the bottom
% \fancyfoot[R]{\textsf{\small Software Engineering MS}}
% Share the sources
\usepackage{bibtopic}
% Special packages
\usepackage{epigraph}
\setlength{\epigraphrule}{0pt} % no divider
\usepackage{csquotes}
% Some extra styles
\usepackage{soul}
\newcommand*\strikethrough{\st}
% Hyperlink everything
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=black,
citecolor=black,
filecolor=black,
urlcolor=black,
}
\urlstyle{same}
% Hyphenations
\hyphenation{non-neg-li-gi-ble}
\newcommand*\rot{\rotatebox{90}}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
% Wikipedia-style "citation needed" macro
\newcommand{\cn}[1][]{\textsuperscript{\color{red} ~[citation needed]~}}
% UvA logo and text
\newcommand{\uva}{
\begin{tabular}{r l}
\multirow{2}{*}{\includegraphics[height=55pt]{uva.pdf}}
&\textsc{\Large Universiteit van Amsterdam}\\
&\textsc{\small Faculteit der Natuurwetenschappen, Wiskunde en Informatica}\\
&\textsc{\small Master Software Engineering}
\end{tabular}
}
% Code markup
\newcommand{\code}[1]{\texttt{#1}}