forked from JarnoRFB/thesis-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththesis.tex
executable file
·265 lines (211 loc) · 7.48 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
\documentclass[11pt,
paper=a4,
bibliography=totocnumbered,
captions=tableheading,
BCOR=10mm
]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[onehalfspacing]{setspace}
\usepackage{csquotes} % Context sensitive quotation.
\usepackage{amsmath} % Standard math.
\usepackage{amsthm} % Math theorems.
\usepackage{amssymb} % More math symbols.
\theoremstyle{definition}
\newtheorem{definition}{Definition}[chapter]
\usepackage[section]{placeins} % Keep floats in the section they were defined in.
\usepackage{tabularx}
\usepackage{booktabs} % Scientific table styling.
\usepackage{floatrow} % Option for keeping floats in the place they were defined in the code.
\floatsetup[table]{style=plaintop}
\usepackage{hyperref} % Hyperlinks.
\usepackage[all]{nowidow} % Prevent widows and orphans.
\usepackage{xstring} % logic string operations
\usepackage{bbm} % \mathbb on numerals.
\usepackage{csquotes}
\usepackage{mathtools}
\usepackage[ruled,vlined]{algorithm2e} % Pseudocode
\usepackage{scrhack} % Make warning go away.
\usepackage{graphicx}
\usepackage{subcaption} % Subfigures with subcaptions.
\usepackage{authoraftertitle} % Make author, etc., available after \maketitle
\usepackage{listofitems}
\usepackage{blindtext} % Placeholder text.
\usepackage[automake, nopostdot, nonumberlist]{glossaries} % glossary for definitions and acronyms, without dot after entry and page reference
\makeglossaries % Generate the glossary
% \PassOptionsToPackage{obeyspaces}{url}%
\usepackage[backend=bibtex,%
style=nature,%
doi=true,isbn=false,url=false, eprint=false]{biblatex}
% \renewbibmacro*{url}{\printfield{urlraw}}
\addbibresource{references.bib}
\DeclareStyleSourcemap{
\maps[datatype=bibtex, overwrite=true]{
\map{
\step[fieldsource=url, final]
\step[typesource=misc, typetarget=online]
}
\map{
\step[typesource=misc, typetarget=patent, final]
\step[fieldsource=institution, final]
\step[fieldset=holder, origfieldval]
}
}
}
%\linespread{1.5} % set line spacing
\usepackage{listings} % rendering program code
\lstset{% general command to set parameter(s)
basicstyle=\ttfamily\color{grey}, % print whole listing small
keywordstyle=\color{black}\bfseries\underbar,
% underlined bold black keywords
identifierstyle=, % nothing happens
commentstyle=\color{white}, % white comments
stringstyle=\ttfamily, % typewriter type for strings
showstringspaces=false} % no special string spaces
\DeclareFontFamily{U}{mathx}{\hyphenchar\font45}
\DeclareFontShape{U}{mathx}{m}{n}{
<5> <6> <7> <8> <9> <10>
<10.95> <12> <14.4> <17.28> <20.74> <24.88>
mathx10
}{}
\DeclareSymbolFont{mathx}{U}{mathx}{m}{n}
\DeclareFontSubstitution{U}{mathx}{m}{n}
\DeclareMathSymbol{\bigtimes}{1}{mathx}{"91}
%%% Custom definitions %%%
% Shorthands
\newcommand{\ie}{i.\,e.~}
\newcommand{\eg}{e.\,g.~}
\newcommand{\ind}{\mathbbm{1}}
% Functions
\newcommand{\tpow}[1]{\cdot 10^{#1}}
\newcommand{\figref}[1]{(Figure \ref{#1})}
\newcommand{\figureref}[1]{Figure \ref{#1}}
\newcommand{\tabref}[1]{(Table \ref{#1})}
\newcommand{\tableref}[1]{Table \ref{#1}}
\newcommand{\secref}[1]{%
\IfBeginWith{#1}{chap:}{%
(cf. Chapter \ref{#1})}%
{(cf. Section \ref{#1})}%
}
\newcommand{\sectionref}[1]{%
\IfBeginWith{#1}{chap:}{%
Chapter \ref{#1}}%
{\IfBeginWith{#1}{s}{%
Section \ref{#1}}%
{[\PackageError{sectionref}{Undefined option to sectionref: #1}{}]}}}
\newcommand{\chapref}[1]{(see chapter \ref{#1})}
\newcommand{\unit}[1]{\,\mathrm{#1}}
\newcommand{\unitfrac}[2]{\,\mathrm{\frac{#1}{#2}}}
\newcommand{\codeil}[1]{\lstinline{#1}}{} % wrapper for preventing syntax highlight error
\newcommand{\techil}[1]{\texttt{#1}}
\newcommand{\Set}[2]{%
\{\, #1 \mid #2 \, \}%
}
% Line for signature.
\newcommand{\namesigdate}[1][5cm]{%
\vspace{5cm}
{\setlength{\parindent}{0cm}
\begin{minipage}{0.3\textwidth}
\hrule
\vspace{0.5cm}
{\small city, date}
\end{minipage}
\hfill
\begin{minipage}{0.3\textwidth}
\hrule
\vspace{0.5cm}
{\small signature}
\end{minipage}
}
}
% Automatically use the first sentence in a caption as the short caption.
\newcommand\slcaption[1]{\setsepchar{.}\readlist*\pdots{#1}\caption[{\pdots[1].}]{#1}}
% Variables.
% Adapt if necessary, use to refer to figures and graphics.
\def \figwidth {0.9\linewidth}
\graphicspath{ {./graphics/figures/}{./graphics/figures/} } % Path to figures and images.
% Customizations of existing commands.
\renewcommand{\vec}[1]{\mathbf{#1}}
% Capitalized \autoref names.
\renewcommand*{\chapterautorefname}{Chapter}
\renewcommand*{\sectionautorefname}{Section}
% TODO Fill with your data.
\title{My full title}
\author{Firstname Lastname}
\begin{document}
\begin{titlepage}
\begin{flushleft}
Universität Osnabrück\\
Fachbereich Humanwissenschaften\\
Institute of Cognitive Science
\end{flushleft}
\vspace{2cm}
\centering{
Bachelor/Masterthesis\vspace{1cm}\\
\textbf{\Large{\MyTitle}}
\vspace{1cm}\\
\begin{tabular}{c}
\MyAuthor \\
968684 \\
Bachelor's/Master's Program Cognitive Science \\
Starting month and year - end month and year
\end{tabular}}
\vspace{1cm}
\begin{tabular}{ll}
First supervisor: & Rüdiger Busche, M.Sc. \\
& inserve GmbH \\
& Hannover \\\\
Second supervisor: & Prof. Dr. Someone Else \\
& Institute of Cognitive Science \\
& Osnabrück
\end{tabular}
\end{titlepage}
\chapter*{Declaration of Authorship}
I hereby certify that the work presented here is, to the best of my knowledge and belief, original and the result of my own investigations, except as acknowledged, and has not been submitted, either in part or whole, for a degree at this or any other university.
\namesigdate
\pagenumbering{gobble}
\pagebreak
\begin{abstract}
\textbf{\LARGE{Abstract}}\\\\
%TODO summarize the main objectives and outcomes of your work. The abstract should fit on one page.
\end{abstract}
\tableofcontents
\listoffigures
\listoftables
\listofalgorithms
\chapter{Introduction}
\pagenumbering{arabic}
\blindtext
\begin{figure}[H]
\centering
\includegraphics[width=\figwidth]{scientific_paper_graph_quality}
\slcaption{
Developmemt of scientific paper graph quality. A dip in the
quality of scientific graphs is observed from the early 1990s to the early 2010s.
During this time Microsoft Paint and PowerPoint were often used to create graphs in scientific papers.\label{fig:scientific_graph_quality}}
\end{figure}
\begin{table}[H]
\begin{tabular}{@{}ll@{}}
\toprule
year & quality \\ \midrule
1985 & good \\
2000 & bad \\ \midrule
2015 & better \\ \bottomrule
\end{tabular}
\caption{
Empirical measurements of scientific graph quality. Data points were collected using
a systematic literature review.\label{tab:scientific_graph_quality}}
\end{table}
This references a \figref{fig:scientific_graph_quality} while this references a table \tabref{tab:scientific_graph_quality}.
A citation looks like this \cite{hadash2018estimate}. To embed a citation in the text flow use textcite,
\eg \textcite{hadash2018estimate} said you should use a lot of citations.
\chapter{Methods}
\chapter{Results and Discussion}
\chapter{Conclusion}
\chapter*{Acknowledgements}
%TODO A place to say thank you to everybody who helped you.
% Acronym definitions
%TODO Add acronym definitions produced by acronyms2glossary.py
\glsaddall
\printglossaries
\printbibliography
\end{document}