-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththesis.tex
249 lines (195 loc) · 6.64 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
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
%% LaTeX2e class for student theses
%% thesis.tex
%%
%% Karlsruhe Institute of Technology
%% Institute for Program Structures and Data Organization
%% Chair for Software Design and Quality (SDQ)
%%
%% Dr.-Ing. Erik Burger
%% burger@kit.edu
%%
%% Version 1.3.3, 2018-04-17
%% Available page modes: oneside, twoside
%% Available languages: english, ngerman
%% Available modes: draft, final (see README)
\documentclass[twoside, english, final]{sdqthesis}
%% ---------------------------------
%% | Information about the thesis |
%% ---------------------------------
%% Name of the author
\author{Lucas Werkmeister}
%% Title (and possibly subtitle) of the thesis
\title{Schema Inference on Wikidata}
%% Type of the thesis
\thesistype{Master's Thesis}
%% Change the institute here, ``IPD'' is default
% \myinstitute{Institute for \dots}
%% You can put a logo in the ``logos'' directory and include it here
%% instead of the SDQ logo
% \grouplogo{myfile}
%% Alternatively, you can disable the group logo
% \nogrouplogo
%% The reviewers are the professors that grade your thesis
\reviewerone{Prof. Reussner}
\reviewertwo{Prof. Sack}
%% The advisors are PhDs or Postdocs
\advisorone{Dr. Koutraki}
%% Please enter the start end end time of your thesis
\editingtime{16. April 2018}{15. October 2018}
\settitle
%% --------------------------------
%% | Settings for word separation |
%% --------------------------------
%% Describe separation hints here.
%% For more details, see
%% http://en.wikibooks.org/wiki/LaTeX/Text_Formatting#Hyphenation
\hyphenation{
% me-ta-mo-del
}
%% --------------------------------
%% | Bibliography |
%% --------------------------------
%% Use biber instead of BibTeX, see README
\usepackage[citestyle=numeric,style=numeric,backend=biber,sortcites]{biblatex}
\addbibresource{thesis.bib}
\AtBeginBibliography{\label{bibliography}}
%% --------------------------------
%% | Glossary |
%% --------------------------------
\usepackage[numberedsection=nameref]{glossaries}
\makeglossaries
\input{sections/glossary-terms.tex}
%% --------------------------------
%% | Listings |
%% --------------------------------
% https://tex.stackexchange.com/a/279245/25264
\usepackage{float}
\usepackage{subcaption}
\usepackage{listings}
\usepackage{cleveref}
\usepackage{rotating}
\newfloat{listing}{htbp}{lol} % listing environment; place here, top, bottom, own page; use *.lol (list of listings) auxiliary file
\floatname{listing}{Listing}
\crefalias{listing}{listing}
\DeclareCaptionSubType{listing}
\crefalias{sublisting}{listing}
\lstset{
basicstyle=\ttfamily,
}
\makeatletter
\def\sidewayslisting{\@rotfloat{listing}}
\let\endsidewayslisting\end@rotfloat
\makeatother
%% --------------------------------
%% | Pseudo-code |
%% --------------------------------
\usepackage{algpseudocode}
\usepackage{algorithm}
%% --------------------------------
%% | TikZ |
%% --------------------------------
\usepackage{tikz}
\usetikzlibrary{shapes,shapes.multipart,arrows,positioning}
%% --------------------------------
%% | License |
%% --------------------------------
\usepackage{csquotes}
\usepackage{hyperxmp}
\usepackage[
type={CC},
modifier={by},
version={4.0},
]{doclicense}
%% --------------------------------
%% | Miscellaneous packages |
%% --------------------------------
\usepackage[binary-units,per-mode=symbol]{siunitx}
\usepackage[section,above,below]{placeins}
%% --------------------------------
%% | Macros |
%% --------------------------------
\newcommand{\Q}[1]{\href{http://www.wikidata.org/entity/#1}{#1}}
\newcommand{\QL}[2]{\href{http://www.wikidata.org/entity/#1}{“#2” (#1)}}
\renewcommand{\P}[1]{\href{http://www.wikidata.org/entity/#1}{#1}}
\newcommand{\PL}[2]{\href{http://www.wikidata.org/entity/#1}{“#2” (#1)}}
\newcommand{\prefix}[1]{\texttt{#1}}
\newcommand{\PName}[1]{\texttt{#1}}
\newcommand{\filename}[1]{\texttt{#1}}
\newcommand{\dirname}[1]{\texttt{#1/}}
\newcommand{\command}[1]{\texttt{#1}}
\newcommand{\variable}[1]{\textit{#1}}
\newcommand{\branchname}[1]{\texttt{#1}}
\newcommand{\loc}[1]{\href{http://id.loc.gov/authorities/names/#1}{#1}}
\newcommand{\viaf}[1]{\href{https://viaf.org/viaf/#1}{#1}}
\newcommand{\imdbName}[1]{\href{https://www.imdb.com/name/#1}{#1}}
\newcommand{\TwitterAccount}[1]{\href{https://twitter.com/#1}{@#1}}
\newcommand{\Instruction}[1]{\text{\textit{#1}}}
\newcommand{\Variable}[1]{\textup{#1}}
\newcommand{\FunctionName}[1]{\textproc{#1}}
\newcommand{\wikidataDiff}[1]{\gls{Wikidata} revision \href{https://www.wikidata.org/wiki/Special:Diff/#1}{#1}}
\newcommand{\wikidataPermalink}[1]{\gls{Wikidata} revision \href{https://www.wikidata.org/wiki/Special:PermanentLink/#1}{#1}}
\newcommand{\wdsiJob}[1]{\href{https://tools.wmflabs.org/wd-shex-infer/job/#1}{\gls{job} \##1}}
% \minsec is always used in a context where it is clear that m means minutes and not metres
\DeclareSIUnit{\shortMinute}{m}
\newcommand{\minsec}[2]{\SI{#1}{\shortMinute}~\SI{#2}{\second}}
\newcommand{\graphRdfLiteral}[2]{#1\\\textit{(\PName{#2})}}
%% ====================================
%% ====================================
%% || ||
%% || Beginning of the main document ||
%% || ||
%% ====================================
%% ====================================
\begin{document}
%% Set PDF metadata
\setpdf
%% Set the title
\maketitle
%% The Preamble begins here
\frontmatter
\input{sections/declaration.tex}
\setcounter{page}{1}
\pagenumbering{roman}
%% ----------------
%% | Abstract |
%% ----------------
%% For theses written in English, an abstract both in English
%% and German is mandatory.
%%
%% For theses written in German, a German abstract is sufficient.
%%
%% The text is included from the following files:
%% - sections/abstract
\includeabstract
%% ------------------------
%% | Table of Contents |
%% ------------------------
\tableofcontents
\listoffigures
\listof{listing}{List of Listings}
%\listof{algorithm}{List of Algorithms}
\listoftables
%% -----------------
%% | Main part |
%% -----------------
\mainmatter
\input{sections/introduction.tex}
\input{sections/background.tex}
\input{sections/content.tex}
\input{sections/evaluation.tex}
\input{sections/conclusion.tex}
%% --------------------
%% | Bibliography |
%% --------------------
%% Add entry to the table of contents for the bibliography
\printbibliography[heading=bibintoc]
%% --------------------
%% | Glossary |
%% --------------------
\printglossaries
%% ----------------
%% | Appendix |
%% ----------------
\appendix
\input{sections/appendix.tex}
\end{document}