-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tex
317 lines (240 loc) · 11.8 KB
/
main.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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Version 1.7.2 (2021-01-19)
%
% Created by Vel (vel@latextemplates.com) and Johannes Böttcher
% Based on https://www.latextemplates.com/template/masters-doctoral-thesis
%
% Modified by Nils Höll & Christian Hauff (@christianhauff)
%
% Template license:
% CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% BASIC DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[
11pt, % The default document font size, options: 10pt, 11pt, 12pt
oneside, % One side output by default, comment it out to switch to two side with alternating margins
english, % AE: american, BE: english ngerman for (new) German -> (New spelling, important for line breaks in a word)
singlespacing, % Single line spacing, alternatives: onehalfspacing or doublespacing
% draft, % Uncomment to enable draft mode (no pictures, no links, overfull hboxes indicated)
% nolistspacing, % If the document is onehalfspacing or doublespacing, uncomment this to set spacing in lists to single
liststotoc, % Uncomment to add the list of figures/tables/etc to the table of contents
% toctotoc, % Uncomment to add the main table of contents to the table of contents
% parskip, % Uncomment to add space between paragraphs
% nohyperref, % Uncomment to not load the hyperref package
headsepline, % Uncomment to get a line under the header
chapterinoneline, % Uncomment to place the chapter title next to the number on one line
% consistentlayout, % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout
]{MastersDoctoralThesis} % The class file specifying the document structure
% Change depth of section numbering and table of contents representation
\setcounter{secnumdepth}{2} % Numbers down to \subsection; no \subsubsection
\setcounter{tocdepth}{2} % Printed in toc down to \subsection; no \subsubsection
%----------------------------------------------------------------------------------------
% MARGIN SETTINGS
%----------------------------------------------------------------------------------------
\geometry{
paper=a4paper, % Change to letterpaper for US letter
inner=2.8cm, % Inner margin
outer=2.8cm, % Outer margin
bindingoffset=.5cm, % Binding offset
top=1.5cm, % Top margin
bottom=1.5cm, % Bottom margin
% showframe, % Uncomment to show how the type block is set on the page
}
%----------------------------------------------------------------------------------------
% THESIS INFORMATION
%----------------------------------------------------------------------------------------
% Author information
% Copy `Base/author_info.dist.tex` into `Base/author_info.tex` and set the values
% if you do not want personal data to end up in a public git repository
\IfFileExists{Base/author_info.tex}{\input{Base/author_info.tex}}{\input{Base/author_info.dist.tex}}
% Thesis information
\thesistitle{Catchy Title} % Your thesis title, print it elsewhere with \ttitle
\degree{Master Thesis} % Your degree name, print it elsewhere with \degreename
\subject{Computer Sciences} % Your subject area, this is not currently used anywhere in the template, print it elsewhere with \subjectname
\keywords{\LaTeX, Master Thesis, Programming} % List of keywords, print it elsewhere with \keywordnames
% Environment information
\supervisor{Dr. Supervisor} % Your supervisor's name, print it elsewhere with \supname
\examiner{Prof. Dr. Examiner} % Your examiner's name, print it elsewhere with \examname
\university{\href{https://myserver.com/}{University}} % Your university's name and URL, this is used in the title page and abstract, print it elsewhere with \univname
\faculty{\href{https://myserver.com/}{Faculty}} % Your faculty's name and URL, this is used in the title page and abstract, print it elsewhere with \facname
%----------------------------------------------------------------------------------------
% PACKAGES
%----------------------------------------------------------------------------------------
% ------ FONTS ------
\usepackage[T1]{fontenc} % Output font encoding
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage{lmodern,textcomp} % Latin modern font
\usepackage{mathpazo} % Use the Palatino font by default
% ------ BIBLIOGRAPHY ------
% Use the bibtex backend with the authoryear citation style (which resembles APA); DIN ISO: science
\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
\addbibresource{sources.bib} % The filename of the bibliography
% ------ FIGURES ------
\usepackage{graphicx}
\usepackage[font=small,labelfont=bf]{caption} % Required for specifying captions to tables and figures
\usepackage{subcaption} % Required for nested captions
\usepackage{wrapfig} % Required for wrapping text around figures
% ------ TRANSLATIONS ------
\usepackage{translator}
% Include translations
\input{translations.tex}
% ------ ACRONYMS ------
\usepackage[nohyperlinks, printonlyused]{acronym}
% ------ OTHER ------
\usepackage{shortvrb}
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\usepackage{float}
\restylefloat{table}
\usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography; generates quotes with \enquote{Text}
\hbadness=99999 %suppresses most underfull hbox warnings
% ------ LISTINGS ------
\usepackage{listings}
% Define JavaScript language support
\lstdefinelanguage{JavaScript}{
keywords={break, case, catch, continue, debugger, default, delete, do, else, false, finally, for, function, if, in, instanceof, new, null, return, switch, this, throw, true, try, typeof, var, void, while, with},
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]",
sensitive=true
}
% Load required languages
\lstloadlanguages{PHP, XML, HTML, Java, JavaScript, SQL}
% Define colors for highlighting
\definecolor{lstbg}{gray}{0.95}
\definecolor{lstComment}{RGB}{51, 102, 0}
\definecolor{lstKey}{RGB}{0, 51, 204}
\definecolor{lstStr}{RGB}{162, 43, 43}
% Styling
\lstset{
showtabs=false,
showspaces=false,
%tabsize=4,
%tab=\rightarrowfill,
showstringspaces=false,
basicstyle=\ttfamily,
columns=fullflexible,
frame=single,
%frameround=tttt,
breaklines=true,
backgroundcolor=\color{lstbg},
commentstyle=\color{lstComment},
stringstyle=\color{lstStr},
keywordstyle=\color{lstKey},
%prebreak=\mbox{\textbackslash}%,
literate=
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
{à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
{À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {ß}{{\ss}}1
}
%----------------------------------------------------------------------------------------
% ADDITIONAL COMMANDS
%----------------------------------------------------------------------------------------
\input{commands.tex}
% ------ HYPERSETUP ------
\AtBeginDocument{
\hypersetup{
pdftitle=\ttitle, % Set the PDF's title to your title
pdfauthor=\authorname, % Set the PDF's author to your name
% hidelinks % Prints all links black; comment out the following color defs
linkcolor=cyan,
citecolor=olive,
filecolor=magenta,
urlcolor=blue,
}
}
%----------------------------------------------------------------------------------------
% DOCUMENT START
%----------------------------------------------------------------------------------------
\begin{document}
% ------ PAGE NUMBERING ------
\frontmatter % Use roman page numbering style (I, II, III, IV...) for the pre-content pages
\pagenumbering{Roman} % Capital roman numbers, use "roman" or comment for lower case (i, ii, iii, iv...)
\pagestyle{plain} % Default to the plain heading style until the thesis style is called for the body content
\sloppy
% ------ PRELIMINARY PAGES ------
% Include title page
\input{Base/titlepage.tex}
% Include declaration of independence
\input{Base/declaration.tex}
\cleardoublepage
% Include quotation page
\input{Base/quotation.tex}
% Include abstract page
\input{Base/abstract.tex}
% Include acknowledgements page
\input{Base/acknowledgements.tex}
%----------------------------------------------------------------------------------------
% LIST OF CONTENTS/FIGURES/TABLES PAGES
%----------------------------------------------------------------------------------------
{\hypersetup{linkcolor=black} % Black links in all lists
\tableofcontents % Prints the main table of contents
\listoffigures % Prints the list of figures
\listoftables % Prints the list of tables
\lstlistoflistings % Prints the list of (code) listings
\addchaptertocentry{Listings} % Add the list of listings to the table of contents
}
%----------------------------------------------------------------------------------------
% ABBREVIATIONS
%----------------------------------------------------------------------------------------
\chapter{\abbrevname}
\begin{acronym}[AAAAAA]
\acro{acl}[ACL]{Access Control List}
\acro{ajax}[AJAX]{Asynchronous JavaScript and XML}
\acro{api}[API]{Application Programming Interface}
\acro{css}[CSS]{Cascading Style Sheets}
\acro{gui}[GUI]{Graphical User Interface}
\acro{html}[HTML]{Hypertext Markup Language}
\acro{json}[JSON]{JavaScript Object Notation}
\acro{php}[PHP]{PHP Hypertext Preprocessor}
\acro{sql}[SQL]{Structured Query Language}
\acro{uid}[UID]{User Identifier}
\acro{url}[URL]{Uniform Resource Locator}
\acro{ux}[UX]{User Experience}
% \acro{}[]{}
\end{acronym}
% Use
% - \ac{id} for standard behavior (\Ac{id} for first letter capitalized)
% - \acs{id} for acronym
% - \acl{id} for long version
% - \acp{id} for plural (with 's' at the end)
% - \acf{id} for the full version (long name + acronym in parentheses)
% - \newacro{id}[Acronym]{Long Name} to define acronyms outside the abbreviations list; e.g. for shorthands
% See https://ctan.mirror.norbert-ruehl.de/macros/latex/contrib/acronym/acronym.pdf
\newpage
% ------ GLOSSARY ------
\input{Base/glossary.tex}
%----------------------------------------------------------------------------------------
% THESIS CONTENT - CHAPTERS
%----------------------------------------------------------------------------------------
\mainmatter % Begin numeric (1,2,3...) page numbering
\pagestyle{thesis} % Return the page headers back to the "thesis" style
% Include the chapters of the thesis as separate files from the Chapters folder
% Uncomment the lines as you write the chapters
\include{Chapters/01_introduction}
\include{Chapters/02_foundations}
\include{Chapters/03_methods}
\include{Chapters/04_results}
\include{Chapters/05_discussion}
\include{Chapters/06_conclusion}
%----------------------------------------------------------------------------------------
% THESIS CONTENT - APPENDICES
%----------------------------------------------------------------------------------------
\appendix % Cue to tell LaTeX that the following "chapters" are Appendices
% Include the appendices of the thesis as separate files from the Appendices folder
% Uncomment the lines as you write the Appendices
% \include{Appendices/AppendixA}
% \include{Appendices/AppendixB}
% \include{Appendices/AppendixC}
%----------------------------------------------------------------------------------------
% BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
\printbibliography[heading=bibintoc]
%----------------------------------------------------------------------------------------
\end{document}