-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesis.tex
140 lines (119 loc) · 4.56 KB
/
thesis.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
%%% The main file. It contains definitions of basic parameters and includes all other parts.
% Configuration flag for printing in colour or black/white
% Comment out for black/white
\newcommand*{\colourflag}{}
\include{common} % Information that is shared with generation of thesis abstract
%% Settings for single-side (simplex) printing
% Margins: left 40mm, right 25mm, top and bottom 25mm
% (but beware, LaTeX adds 1in implicitly)
\documentclass[12pt,a4paper,x11names]{report}
\setlength\textwidth{145mm}
\setlength\textheight{247mm}
\setlength\oddsidemargin{15mm}
\setlength\evensidemargin{15mm}
\setlength\topmargin{0mm}
\setlength\headsep{0mm}
\setlength\headheight{0mm}
% \openright makes the following text appear on a right-hand page
\let\openright=\clearpage
%% Settings for two-sided (duplex) printing
% \documentclass[12pt,a4paper,twoside,openright]{report}
% \setlength\textwidth{145mm}
% \setlength\textheight{247mm}
% \setlength\oddsidemargin{14.2mm}
% \setlength\evensidemargin{0mm}
% \setlength\topmargin{0mm}
% \setlength\headsep{0mm}
% \setlength\headheight{0mm}
% \let\openright=\cleardoublepage
\usepackage[a-2u]{pdfx} % generate PDF/A-2u
\usepackage{graphicx} % embedding of pictures
\usepackage{fancyvrb} % improved verbatim environment
\usepackage[square]{natbib}
\usepackage[nottoc]{tocbibind} % makes sure that bibliography, etc. are in TOC
\usepackage{hyperref} % hypertext
\usepackage{enumitem} % custom enumeration labels
\usepackage{multirow} % columns spanning multiple rows
\usepackage{xspace} % define commands that appear not to eat spaces
\usepackage{xcolor} % text colour
\usepackage{xparse}
% Maths
\usepackage{mathpartir} % inference rules
\usepackage{cmll} % linear logic symbols with proper spacing
\usepackage{amsmath}
\usepackage{amssymb} % blackboard bold font (integers)
\usepackage{amsthm}
\usepackage{thmtools} % styles for theorem, definition, etc.
% Typography
\usepackage{microtype}
\usepackage{lettrine}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{EB Garamond}[RawFeature={+pnum}]
\setmonofont{Iosevka Fixed}[Scale=0.9] % font for the code printing
\setmathfont{Garamond-Math}
%%% Basic information on the thesis
\def\YearSubmitted{2021}
\def\Department{Department of Algebra}
\def\DeptType{Department}
\def\Supervisor{Mgr. Vít Šefl}
\def\SupervisorsDepartment{Department of Software and Computer Science Education}
\def\StudyProgramme{Mathematics}
\def\StudyBranch{MMIT}
% An optional dedication: you can thank whomever you wish (your supervisor,
% consultant, a person who lent the software, etc.)
\def\Dedication{%
I am grateful to my advisor, Mgr. Vít Šefl, for his help and advice which was
instrumental to my success. Many thanks also belong to my partner and my
family for their love and support.
}
% 3 to 5 keywords (recommended), each enclosed in curly braces
\def\Keywords{%
{quantitative type theory} {bidirectional typing} {type systems}
{lambda calculus} {Haskell}
}
\begin{VerbatimOut}{\jobname.xmpdata}
\Title{\ThesisTitle}
\Author{\ThesisAuthor}
\Language{\ThesisLanguage}
\Keywords{quantitative type theory\sep bidirectional typing\sep type
systems\sep lambda calculus\sep Haskell}
\Subject{\Abstract}
\Publisher{\ThesisPublisher}
\end{VerbatimOut}
%% The hyperref package settings
\hypersetup{unicode}
\hypersetup{breaklinks=true}
\hypersetup{hidelinks} % no link colour frame
% Definitions of macros (see description inside)
\include{macros}
% Title page and various mandatory informational pages
\begin{document}
\include{title}
\tableofcontents
\include{introduction}
\include{chapter01}
\include{chapter02}
\include{chapter03}
\include{chapter04}
\include{chapter05}
\include{conclusion}
\renewcommand{\bibname}{Bibliography}
\bibliographystyle{plainnat} % Author [Year]
\bibliography{bibliography}
%%% Attachments to the master thesis, if any. Each attachment must be
%%% referred to at least once from the text of the thesis. Attachments
%%% are numbered.
%%%
%%% The printed version should preferably contain attachments, which can be
%%% read (additional tables and charts, supplementary text, examples of
%%% program output, etc.). The electronic version is more suited for attachments
%%% which will likely be used in an electronic form rather than read (program
%%% source code, data files, interactive charts, etc.). Electronic attachments
%%% should be uploaded to SIS and optionally also included in the thesis on a~CD/DVD.
%%% Allowed file formats are specified in provision of the rector no. 72/2017.
\appendix
\include{appendix01}
\include{appendix02}
\openright
\end{document}