Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
latextemplates
GitHub Repository: latextemplates/scientific-thesis-template
Path: blob/main/main-german-university-of-hamburg.tex
431 views
1
% !TeX spellcheck = de-DE
2
% LTeX: language=de-DE
3
% !TeX encoding = utf8
4
% !TeX program = lualatex
5
% !TeX TXS-program:compile = txs:///lualatex/[--shell-escape]
6
% !BIB program = biber
7
% -*- coding:utf-8 mod:LaTeX -*-
8
9
% The following package allows \\ at the title page
10
% For more information see https://github.com/latextemplates/scientific-thesis-cover/issues/4
11
\RequirePackage{kvoptions-patch}
12
\documentclass[
13
% fontsize=11pt is the standard
14
% ()Aus scrguide.pdf - der Dokumentation von KOMA-Script)
15
% Nach DUDEN steht in Gliederungen, in denen ausschließlich arabische Ziffern für die Nummerierung
16
% verwendet werden, am Ende der Gliederungsnummern kein abschließender Punkt
17
% (siehe [DUD96, R3]). Wird hingegen innerhalb der Gliederung auch mit römischen Zahlen
18
% oder Groß- oder Kleinbuchstaben gearbeitet, so steht am Ende aller Gliederungsnummern ein
19
% abschließender Punkt (siehe [DUD96, R4])
20
numbers=autoendperiod,
21
ngerman, % Neue deutsche Rechtschreibung; der Parameter wird an andere Pakete weiter gegeben
22
a4paper, % KOMAScript allows for both paper=a4 and (standard) a4paper - https://tex.stackexchange.com/a/61044/9075
23
twoside, % We are optimizing for both screen and two-side printing. So the page numbers will jump, but the content is configured to stay in the middle (by using the geometry package)
24
bibliography=totoc,
25
% idxtotoc, % Index ins Inhaltsverzeichnis
26
% liststotoc, % List of * ins Inhaltsverzeichnis, mit liststotocnumbered werden die Abbildungsverzeichnisse nummeriert
27
headsepline,
28
cleardoublepage=empty,
29
parskip=half,
30
% draft % um zu sehen, wo noch nachgebessert werden muss - wichtig, da Bindungskorrektur mit drin
31
draft=false
32
]{scrbook}
33
\usepackage{scrlayer-scrpage}
34
35
\usepackage{iftex}
36
37
\usepackage{ifplatform}
38
39
% backticks (`) werden als solches in verbatim-Umgebungen dargestellt
40
% Details unter:
41
% - https://tex.stackexchange.com/a/341057/9075
42
% - https://tex.stackexchange.com/a/47451/9075
43
% - https://tex.stackexchange.com/a/166791/9075
44
\usepackage{upquote}
45
46
% Setze Deutsch als Sprache
47
\usepackage[english,main=ngerman]{babel}
48
% Neue deutsche Trennmuster
49
\babelprovide[hyphenrules=ngerman-x-latest]{german}
50
%
51
% Hinweis von http://tex.stackexchange.com/a/321066/9075
52
% Ermögliche die Benutzung von "= als Trennstriche
53
\addto\extrasenglish{\languageshorthands{ngerman}\useshorthands{"}}
54
55
% Ein "abstract" ist eine "Kurzfassung", keine "Zusammenfassung"
56
\addto\captionsngerman{%
57
\renewcommand\abstractname{Kurzfassung}%
58
}
59
60
% Links verhalten sich so, wie sie sollen
61
% Zeilenumbrüche bei URLs auch bei Bindestrichen erlauben, auch wenn es verwirrend sein könnte: Gehört der Bindestrich zur URL oder ist es ein Trennstrich?
62
% Siehe https://tex.stackexchange.com/a/3034/9075.
63
\usepackage[hyphens]{url}
64
% \urlstyle{same}
65
%
66
% Hinweis von http://tex.stackexchange.com/a/10419/9075.
67
\makeatletter
68
\g@addto@macro{\UrlBreaks}{\UrlOrds}
69
\makeatother
70
71
%math stuff
72
\usepackage[
73
centertags, % (default) center tags vertically
74
% tbtags, % 'Top-or-bottom tags': For a split equation, place equation numbers level with the last (resp. first) line, if numbers are on the right (resp. left).
75
sumlimits, % (default) Place the subscripts and superscripts of summation symbols above and below
76
% nosumlimits, % Always place the subscripts and superscripts of summation-type symbols to the side, even in displayed equations.
77
intlimits, % Like sumlimits, but for integral symbols.
78
% nointlimits, % (default) Opposite of intlimits.
79
namelimits, % (default) Like sumlimits, but for certain 'operator names' such as det, inf, lim, max, min, that traditionally have subscripts placed underneath when they occur in a displayed equation.
80
% nonamelimits, % Opposite of namelimits.
81
% leqno, % Place equation numbers on the left.
82
% reqno, % Place equation numbers on the right.
83
fleqn, % Position equations at a fixed indent from the left margin rather than centered in the text column.
84
]{amsmath}
85
\SetMathAlphabet{\mathcal}{normal}{OMS}{amsa}{m}{n} %% AMS font for mathcal
86
87
%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/mh/doc/mathtools.pdf
88
% Erweitert amsmath und behebt einige Bugs
89
\usepackage[fixamsmath,disallowspaces]{mathtools}
90
91
%%% Doc: http://www.ctan.org/info?id=fixmath
92
% LaTeX's default style of typesetting mathematics does not comply
93
% with the International Standards ISO31-0:1992 to ISO31-13:1992
94
% which indicate that uppercase Greek letters always be typeset
95
% upright, as opposed to italic (even though they usually
96
% represent variables) and allow for typesetting of variables in a
97
% boldface italic style (even though the required fonts are
98
% available). This package ensures that uppercase Greek be typeset
99
% in italic style, that upright $\Delta$ and $\Omega$ symbols are
100
% available through the commands \upDelta and \upOmega; and
101
% provides a new math alphabet \mathbold for boldface
102
% italic letters, including Greek.
103
\usepackage{fixmath}
104
105
%for theorems, replacement for amsthm
106
\usepackage[amsmath,hyperref]{ntheorem}
107
\theorempreskipamount 2ex plus1ex minus0.5ex
108
\theorempostskipamount 2ex plus1ex minus0.5ex
109
\theoremstyle{break}
110
\newtheorem{definition}{Definition}[chapter]
111
112
%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/onlyamsmath/onlyamsmath.dvi
113
% Warnt bei Benutzung von Befehlen die mit amsmath inkompatibel sind.
114
115
% Braucht man evtl. nicht.
116
% \usepackage[
117
% all,
118
% warning
119
% ]{onlyamsmath}
120
121
%% !!! If you change the font, be sure that words such as "workflow" can
122
%% !!! still be copied from the PDF. If this is not the case, you have
123
%% !!! to use glyphtounicode. See comment at cmap package.
124
%%
125
%% Background: "workflow" contains "fl" which is a ligature, which in turn
126
%% is rendered as one character in the PDF and needs to be split
127
%% whily copying.
128
129
\ifluatex
130
\usepackage[no-math]{fontspec}
131
\usepackage{unicode-math}
132
133
% See https://tug.org/FontCatalogue/texgyretermes/ for more information
134
\setmainfont{texgyretermes}[
135
Extension = .otf,
136
UprightFont = *-regular,
137
BoldFont = *-bold,
138
ItalicFont = *-italic,
139
BoldItalicFont = *-bolditalic,
140
Ligatures=TeX
141
]
142
% See https://tug.org/FontCatalogue/texgyreheros/ for more information
143
\setsansfont[Scale=.9]{TeX Gyre Heros Regular}
144
% shapely l, upright quotes
145
% Normal scaling is too large --> thus, we use ",Scale=.9"
146
\ifwindows
147
\setmonofont[StylisticSet={1,3},Scale=.9]{Inconsolata}
148
\else
149
\setmonofont[StylisticSet={1,3},Scale=.9]{Inconsolatazi4}
150
\fi
151
152
% Enable proper ligatures
153
% For more information see https://ctan.org/pkg/selnolig
154
% language "english" or "ngerman" is passed to selnolig by the document class
155
\usepackage{selnolig}
156
157
\else
158
\RequirePackage{newtxtext}
159
\RequirePackage{newtxmath}
160
\RequirePackage[zerostyle=b,scaled=.9]{newtxtt}
161
162
% Has to be loaded AFTER any font packages. See https://tex.stackexchange.com/a/2869/9075.
163
\usepackage[T1]{fontenc}
164
\fi
165
166
% DE: Noch mehr Symbole
167
%\usepackage{stmaryrd} %fuer \ovee, \owedge, \otimes
168
%\usepackage{marvosym} %fuer \Writinghand %patched to not redefine \Rightarrow
169
%\usepackage{mathrsfs} %mittels \mathscr{} schoenen geschwungenen Buchstaben erzeugen
170
%\usepackage{calrsfs} %\mathcal{} ein bisserl dickeren buchstaben erzeugen - sieht net so gut aus.
171
172
% EN: Fallback font - if the subsequent font packages do not define a font (e.g., monospaced)
173
% This is the modern package for "Computer Modern".
174
% In case this gets activated, one has to switch from cmap package to glyphtounicode (in the case of pdflatex)
175
% DE: Fallback-Schriftart
176
%\usepackage[%
177
% rm={oldstyle=false,proportional=true},%
178
% sf={oldstyle=false,proportional=true},%
179
% tt={oldstyle=false,proportional=true,variable=true},%
180
% qt=false%
181
%]{cfr-lm}
182
183
% EN: Headings are typeset in Helvetica (which is similar to Arial)
184
% DE: Schriftart fuer die Ueberschriften - ueberschreibt lmodern
185
%\usepackage[scaled=.95]{helvet}
186
187
% DE: Für Schreibschrift würde tun, muss aber nicht
188
%\usepackage{mathrsfs} % \mathscr{ABC}
189
190
% EN: Font for the main text
191
% DE: Schriftart fuer den Fliesstext - ueberschreibt lmodern
192
% Linux Libertine, siehe http://www.linuxlibertine.org/
193
% Packageparamter [osf] = Minuskel-Ziffern
194
% rm = libertine im Brottext, Linux Biolinum NICHT als serifenlose Schrift, sondern helvet (von oben) beibehalten
195
%\usepackage[rm]{libertine}
196
197
% EN: Alternative Font: Palantino. It is recommeded by Prof. Ludewig for German texts
198
% DE: Alternative Schriftart: Palantino, Packageparamter [osf] = Minuskel-Ziffern
199
% Bitte nur in deutschen Texten
200
%\usepackage{mathpazo} %ftp://ftp.dante.de/tex-archive/fonts/mathpazo/ - Tipp aus DE-TEX-FAQ 8.2.1
201
% EN: The euro sign
202
% DE: Das Euro Zeichen
203
% Fuer Palatino (mathpazo.sty): richtiges Euro-Zeichen
204
% Alternative: \usepackage{eurosym}
205
% \newcommand{\EUR}{\ppleuro}
206
207
% DE: Schriftart fuer Programmcode - ueberschreibt lmodern
208
% Falls auskommentiert, wird die Standardschriftart lmodern genommen
209
% Fuer schreibmaschinenartige Schluesselwoerter in den Listings - geht bei alten Installationen nicht, da einige Fontshapes (<>=) fehlen
210
%\usepackage[scaled=.92]{luximono}
211
%\usepackage{courier}
212
% DE: BeraMono als Typewriter-Schrift, Tipp von http://tex.stackexchange.com/a/71346/9075
213
%\usepackage[scaled=0.83]{beramono}
214
215
\usepackage{setspace}
216
% Alternative package: https://ctan.org/pkg/leading
217
218
% Symbole Check und Cross
219
\usepackage{pifont}
220
\newcommand{\dingcheck}{\ding{51}}
221
\newcommand{\dingcross}{\ding{55}}
222
%for scaling see http://tex.stackexchange.com/a/130236/9075
223
224
% DE: Noch mehr Symbole
225
%\usepackage{stmaryrd} %fuer \ovee, \owedge, \otimes
226
%\usepackage{marvosym} %fuer \Writinghand %patched to not redefine \Rightarrow
227
%\usepackage{mathrsfs} %mittels \mathscr{} schoenen geschwungenen Buchstaben erzeugen
228
%\usepackage{calrsfs} %\mathcal{} ein bisserl dickeren buchstaben erzeugen - sieht net so gut aus.
229
230
\automark[section]{chapter}
231
\setkomafont{pageheadfoot}{\normalfont\sffamily}
232
\setkomafont{pagenumber}{\normalfont\sffamily}
233
234
\ihead[]{}
235
\chead[]{}
236
\ohead[]{\headmark}
237
\cfoot[]{}
238
\ofoot[\usekomafont{pagenumber}\thepage]{\usekomafont{pagenumber}\thepage}
239
\ifoot[]{}
240
241
% Optischer Randausgleich und Grauwertkorrektur. Siehe See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/
242
243
\usepackage[
244
babel=true,
245
expansion=alltext,
246
protrusion=alltext-nott,
247
final
248
]{microtype}
249
250
% \texttt{test -- test} - diese Einstellung behält "--" bei (und konveriert sie nicht zu einem Bindestrich)
251
\DisableLigatures{encoding = T1, family = tt* }
252
253
% tracking=true muss als Parameter des microtype-packages mitgegeben werden
254
% Deaktiviert, da dies bei Algorithmen seltsam aussieht
255
256
%\DeclareMicrotypeSet*[tracking]{my}{ font = */*/*/sc/* }%
257
258
% Hier wird festgelegt, dass alle Passagen in Kapitälchen automatisch leicht gesperrt werden.
259
% Quelle: http://homepage.ruhr-uni-bochum.de/Georg.Verweyen/pakete.html
260
% Deaktiviert, da sonst "BPEL", "BPMN" usw. wirklich komisch aussehen.
261
% Macht wohl nur bei geisteswissenschaftlichen Arbeiten Sinn.
262
%\SetTracking{ encoding = *, shape = sc }{ 45 }
263
264
\usepackage{graphicx}
265
266
% Base folder, so there is no need to repeat this over and over again.
267
\graphicspath{ {figures/} }
268
269
%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf
270
\usepackage{pdfpages} % Include pages from external PDF documents in LaTeX documents
271
272
% Diagonal lines in a table - http://tex.stackexchange.com/questions/17745/diagonal-lines-in-table-cell
273
% Slashbox is not available in texlive (due to licensing) and also gives bad results. Thus, we use diagbox
274
\usepackage{diagbox}
275
276
\ifluatex
277
\usepackage{spelling}
278
\spellingoutput{off}
279
\fi
280
281
\usepackage[dvipsnames, table]{xcolor}
282
283
\definecolor{uhhred}{cmyk}{0,100,100,0}
284
285
% Code Listings
286
\usepackage{listings}
287
288
\definecolor{eclipseStrings}{RGB}{42,0.0,255}
289
\definecolor{eclipseKeywords}{RGB}{127,0,85}
290
\colorlet{numb}{magenta!60!black}
291
292
% JSON definition
293
% Source: https://tex.stackexchange.com/a/433961/9075
294
295
\lstdefinelanguage{json}{
296
basicstyle=\normalfont\ttfamily,
297
commentstyle=\color{eclipseStrings}, % style of comment
298
stringstyle=\color{eclipseKeywords}, % style of strings
299
numbers=left,
300
numberstyle=\scriptsize,
301
stepnumber=1,
302
numbersep=8pt,
303
showstringspaces=false,
304
breaklines=true,
305
frame=lines,
306
% backgroundcolor=\color{gray}, %only if you like
307
string=[s]{"}{"},
308
comment=[l]{:\ "},
309
morecomment=[l]{:"},
310
literate=
311
*{0}{{{\color{numb}0}}}{1}
312
{1}{{{\color{numb}1}}}{1}
313
{2}{{{\color{numb}2}}}{1}
314
{3}{{{\color{numb}3}}}{1}
315
{4}{{{\color{numb}4}}}{1}
316
{5}{{{\color{numb}5}}}{1}
317
{6}{{{\color{numb}6}}}{1}
318
{7}{{{\color{numb}7}}}{1}
319
{8}{{{\color{numb}8}}}{1}
320
{9}{{{\color{numb}9}}}{1}
321
}
322
323
\lstset{
324
% everything between (* *) is a latex command
325
escapeinside={(*}{*)},
326
%
327
language=json,
328
%
329
showstringspaces=false,
330
%
331
basicstyle=\footnotesize\ttfamily,
332
%
333
commentstyle=\slshape,
334
%
335
% Default: \rmfamily, damit werden die Strings im Quellcode hervorgehoben. Zusaetzlich evtl.: \scshape oder \rmfamily durch \ttfamily ersetzen. Dann sieht's aus, wie bei fancyvrb
336
stringstyle=\ttfamily,
337
%
338
breaklines=true, % Zeilen werden umbrochen
339
%
340
breakatwhitespace=true,
341
%
342
% Alternative: fixed
343
columns=flexible,
344
%
345
tabsize=2, % Groesse von Tabs
346
%
347
numbers=left,
348
%
349
numberstyle=\tiny,
350
%
351
basewidth=.5em,
352
%
353
xleftmargin=.5cm,
354
%
355
% aboveskip=0mm,
356
%
357
% belowskip=0mm,
358
%
359
captionpos=b
360
}
361
362
\ifpdftex
363
% Ermögliche Umlaute falls \lstinputputlisting genutzt wird
364
% Siehe https://stackoverflow.com/a/29260603/873282 und https://tex.stackexchange.com/a/24532/9075 für Details.
365
% listingsutf8 hat im Juni 2020 nicht funktioniert.
366
\lstset{extendedchars=true, literate=
367
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
368
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
369
{à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
370
{À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
371
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
372
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
373
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
374
{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
375
{Ã}{{\~A}}1 {ã}{{\~a}}1 {Õ}{{\~O}}1 {õ}{{\~o}}1
376
{œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
377
{ű}{{\H{u}}}1 {Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1
378
{ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
379
}
380
\fi
381
382
\lstloadlanguages{% Check dokumentation for further languages...
383
%[Visual]Basic
384
%Pascal
385
%C
386
%C++
387
%XML
388
%HTML
389
}
390
391
% For easy quotations: \enquote{text}
392
% This package is very smart when nesting is applied, otherwise textcmds (see below) provides a shorter command
393
\usepackage[autostyle=true]{csquotes}
394
395
% Enable using "`quote"' - see https://tex.stackexchange.com/a/150954/9075
396
\defineshorthand{"`}{\openautoquote}
397
\defineshorthand{"'}{\closeautoquote}
398
399
% bessere Abstaende innerhalb der Tabelle (Layout))
400
% -------------------------------------------------
401
% \toprule, \midrule, \bottomrule
402
% Doc: https://texdoc.org/serve/booktabs/0
403
\usepackage{booktabs}
404
405
% Extended enumerate, such as \begin{compactenum}
406
\usepackage{paralist}
407
\usepackage[
408
backend = biber, %biber does not work with 64x versions alternative: bibtex8; minalphanames only works with biber backend
409
sortcites = true,
410
bibstyle = alphabetic,
411
citestyle = alphabetic,
412
giveninits = true,
413
useprefix = false, %"von, van, etc." will be printed, too. See below.
414
minnames = 1,
415
minalphanames = 3,
416
maxalphanames = 4,
417
maxbibnames = 99,
418
maxcitenames = 2,
419
natbib = true,
420
eprint = true,
421
url = true,
422
doi = true, %source: http://tex.stackexchange.com/a/23118/9075
423
isbn = true, %source: http://tex.stackexchange.com/a/23118/9075
424
backref = true]{biblatex}
425
426
% enable more breaks at URLs. See https://tex.stackexchange.com/a/134281.
427
\setcounter{biburllcpenalty}{7000}
428
\setcounter{biburlucpenalty}{8000}
429
430
\bibliography{bibliography}
431
%\addbibresource[datatype=bibtex]{\bibliography{bibliography}}
432
433
% Do not put "vd" in the label, but put it at "\citeauthor"
434
% Source: http://tex.stackexchange.com/a/30277/9075
435
\makeatletter
436
\AtBeginDocument{\toggletrue{blx@useprefix}}
437
\AtBeginBibliography{\togglefalse{blx@useprefix}}
438
\makeatother
439
440
% Thin spaces between initials
441
% http://tex.stackexchange.com/a/11083/9075
442
\renewrobustcmd*{\bibinitdelim}{\,}
443
444
% Keep first and last name together in the bibliography
445
% http://tex.stackexchange.com/a/196192/9075
446
\renewcommand*\bibnamedelimc{\addnbspace}
447
\renewcommand*\bibnamedelimd{\addnbspace}
448
449
% Replace last "and" by comma in bibliography
450
% See http://tex.stackexchange.com/a/41532/9075
451
\AtBeginBibliography{%
452
\renewcommand*{\finalnamedelim}{\addcomma\space}%
453
}
454
455
% enable hyperlinked author names when using \citeauthor
456
% source: http://tex.stackexchange.com/a/75916/9075
457
\DeclareCiteCommand{\citeauthor}
458
{
459
\boolfalse{citetracker}%
460
\boolfalse{pagetracker}%
461
\usebibmacro{prenote}
462
}
463
{
464
\ifciteindex
465
{\indexnames{labelname}}
466
{}%
467
\printtext[bibhyperref]{\printnames{labelname}}
468
}
469
{\multicitedelim}
470
{\usebibmacro{postnote}}
471
472
% Farbige Tabellen
473
% ----------------
474
% Das Paket colortbl wird inzwischen automatisch durch xcolor geladen
475
%
476
% Erweiterte Funktionen innerhalb von Tabellen
477
% --------------------------------------------
478
%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/multirow/multirow.sty
479
\usepackage{multirow} % Mehrfachspalten
480
%
481
%%% Doc: Documentation inside dtx Package
482
\usepackage{dcolumn} % Ausrichtung an Komma oder Punkt
483
484
%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/supertabular/supertabular.pdf
485
%\usepackage{supertabular}
486
487
%%% Fussnoten/Endnoten ===================================================
488
489
%%% Doc: http://mirror.ctan.org/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf
490
%
491
\usepackage[
492
bottom, % Footnotes appear always on bottom. This is necessary specially when floats are used
493
stable, % Make footnotes stable in section titles
494
% perpage, % Reset on each page
495
% para, % Place footnotes side by side of in one paragraph.
496
% side, % Place footnotes in the margin
497
ragged, % Use RaggedRight
498
% norule, % Suppress rule above footnotes
499
multiple, % Rearrange multiple footnotes intelligent in the text.
500
% symbol, % Use symbols instead of numbers
501
]{footmisc}
502
503
\counterwithout{footnote}{chapter} % Continuous numbering of footnotes across chapters
504
505
\interfootnotelinepenalty=10000 % Verhindert das Fortsetzen von Fussnoten auf der gegenüberligenden Seite
506
507
% EN: Put footnotes below floats
508
% DE: Fußnoten unter Gleitumgebungen ("floats") platzieren
509
% Source: https://tex.stackexchange.com/a/32993/9075
510
\usepackage{stfloats}
511
\fnbelowfloat
512
513
% EN: Extended support for footnotes
514
% DE: Fußnoten
515
%
516
%\usepackage{dblfnote} %Zweispaltige Fußnoten
517
%
518
% Keine hochgestellten Ziffern in der Fußnote (KOMA-Script-spezifisch):
519
%\deffootnote[1.5em]{0pt}{1em}{\makebox[1.5em][l]{\bfseries\thefootnotemark}}
520
%
521
% Abstand zwischen Fußnoten vergrößern:
522
%\setlength{\footnotesep}{.85\baselineskip}
523
%
524
% EN: Following command disables the separting line of the footnote
525
% DE: Folgendes Kommando deaktiviert die Trennlinie zur Fußnote
526
%\renewcommand{\footnoterule}{}
527
%
528
%\addtolength{\skip\footins}{\baselineskip} % Abstand Text <-> Fußnote
529
530
% DE: Fußnoten immer ganz unten auf einer \raggedbottom-Seite
531
% DE: fnpos kommt aus dem yafoot package
532
%\usepackage{fnpos}
533
%\makeFNbelow
534
%\makeFNbottom
535
536
% TODO (and comment) configuration
537
%
538
% - \todo (from todo, easy-todo, todonotes) / \TODO (from fixmetodonotes) - for "normal" TODOs
539
% - \todofix - "important" TODOs
540
%
541
% - \textcomment - highlights text and has a hover comment
542
% - \sidecomment - just puts a comment to the side. Note: \comment MUST NOT be used as command name, it is already defined by much packages (mathdesign, mindflow, verbatim, and others)
543
%
544
% - \missingfigure
545
%
546
% - \textmarker
547
% - \modified
548
% - \change - adresses a review comment
549
550
% Enable nice comments
551
\usepackage{pdfcomment}
552
553
\newcommand{\textcomment}[2]{\colorbox{yellow!60}{#1}\pdfcomment[color={0.234 0.867 0.211},hoffset=-6pt,voffset=10pt,opacity=0.5]{#2}}
554
555
% Small PDF comment
556
% 1. Parameter: Comment
557
\newcommand{\sidecomment}[1]{\pdfcomment[color={0.045 0.278 0.643},voffset=4pt,icon=Note]{#1}}
558
% Disabled variant - for the final PDF
559
%\newcommand{\sidecomment}[1]{}
560
561
\newcommand{\todo}[1]{TODO!\sidecomment{#1}}
562
563
% Änderungen
564
%
565
% 1. Parameter: Review-Kommentar
566
% 2. Parameter: Neuer Text
567
\newcommand{\change}[2]{{\color{red}#2}\pdfcomment[color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{#1}}
568
% Disabled variant - for the final PDF
569
%\newcommand{\change}[2]{#2}
570
571
% Define default commands
572
\makeatletter
573
\@ifundefined{missingfigure}{\newcommand{\missingfigure}{... missing figure ...}}{}
574
\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{}
575
\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{}
576
\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{}
577
\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{}
578
\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{}
579
\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{}
580
\makeatother
581
582
% Textmarker (Textfarbe rot)
583
\newcommand{\textmarker}[1]{{\color{red} #1}\xspace}
584
585
% Modified (Text blau)
586
\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace}
587
588
\usepackage[group-minimum-digits=4,per-mode=fraction]{siunitx}
589
\addto\extrasgerman{\sisetup{locale = DE}}
590
591
% See http://tex.stackexchange.com/a/83051/9075
592
% Normally, doesn't work with hyperref, but cleveref fixes that
593
\usepackage[ngerman]{varioref}
594
595
596
% Enable that parameters of \cref{}, \ref{}, \cite{}, ... are linked so that a reader can click on the number an jump to the target in the document
597
\usepackage{hyperref}
598
599
% Enable hyperref without colors and without bookmarks
600
\hypersetup{
601
hidelinks,
602
colorlinks=true, % Links erhalten Farben statt Kaeten
603
raiselinks=true, % calculate real height of the link
604
allcolors=black,
605
pdfstartview=Fit,
606
breaklinks=true, % Links ueberstehen Zeilenumbruch
607
hypertexnames=false, % Fix jumping to algorithm line - http://tex.stackexchange.com/a/156404/9075
608
}
609
610
% Enable correct jumping to figures when referencing
611
\usepackage[all]{hypcap}
612
613
% Hint by https://tex.stackexchange.com/a/193370/9075 to suppress strange outputs of the babel package
614
% Example strange output: Package babel Info: Redefining ngerman shorthand "|
615
\usepackage{etoolbox}
616
\makeatletter
617
\patchcmd{\@decl@short}{\bbl@info}{\@gobble}{}{}
618
\makeatother
619
620
621
%%%
622
% Ermoeglicht es, Abbildungen um 90 Grad zu drehen
623
% Alternatives Paket: rotating Allerdings wird hier nur das Bild gedreht, während bei lscape auch die PDF-Seite gedreht wird.
624
%Das Paket lscape dreht die Seite auch nicht
625
\usepackage{pdflscape}
626
627
\usepackage[caption=false,font=footnotesize]{subfig}
628
629
% Alternative for making subfigures:
630
% Part of the caption package. See http://www.ctan.org/pkg/caption
631
% Ersetzt die Pakete subfigure und subfig - siehe https://tex.stackexchange.com/a/13778/9075
632
%
633
% (subfigure is outdated. subfig is maintained, but subcaption is better)
634
% See: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure
635
%\usepackage[hypcap=true]{subcaption}
636
637
\usepackage{mindflow}
638
639
% https://ctan.org/pkg/algorithms
640
% Consists of two environments: algorithm and algorithmic
641
% Although oudated, it defines the "algorithm" float enviornment
642
% TODO: Define floating environment "algorithm" in other ways
643
\usepackage[chapter]{algorithm}
644
645
% https://ctan.org/pkg/algpseudocodex
646
% Successor of algorithmicx; more modern than https://ctan.org/pkg/algorithms
647
\usepackage{algpseudocodex}
648
649
\floatname{algorithm}{Algorithmus}
650
\renewcommand{\listalgorithmname}{Algorithmenverzeichnis}
651
652
\newcommand{\commentchar}{\ensuremath{/\mkern-4mu/}}
653
\algrenewcommand{\algorithmiccomment}[1]{\hfill $\commentchar$ #1}
654
655
% cleveref für cref statt autoref, da cleveref auch bei Definitionen funktioniert
656
\usepackage[capitalise,nameinlink,noabbrev]{cleveref}
657
658
\crefname{table}{Tabelle}{Tabellen}
659
\Crefname{table}{Tabelle}{Tabellen}
660
\crefname{figure}{Abbildung}{Abbildungen}
661
\Crefname{figure}{Abbildung}{Abbildungen}
662
\crefname{equation}{Gleichung}{Gleichungen}
663
\Crefname{equation}{Gleichung}{Gleichungen}
664
\crefname{theorem}{Theorem}{Theoreme}
665
\Crefname{theorem}{Theorem}{Theoreme}
666
\crefname{listing}{Listing}{Listings}
667
\Crefname{listing}{Listing}{Listings}
668
\crefname{section}{Abschnitt}{Abschnitte}
669
\Crefname{section}{Abschnitt}{Abschnitte}
670
\crefname{paragraph}{Abschnitt}{Abschnitte}
671
\Crefname{paragraph}{Abschnitt}{Abschnitte}
672
\crefname{subparagraph}{Abschnitt}{Abschnitte}
673
\Crefname{subparagraph}{Abschnitt}{Abschnitte}
674
675
\usepackage{lipsum}
676
677
% For demonstration purposes only
678
% These packages can be removed when all examples have been deleted
679
\usepackage[math]{blindtext}
680
\usepackage{mwe}
681
\usepackage[realmainfile]{currfile}
682
\usepackage{tcolorbox}
683
\tcbuselibrary{listings}
684
685
%introduce \powerset - hint by http://matheplanet.com/matheplanet/nuke/html/viewtopic.php?topic=136492&post_id=997377
686
\DeclareFontFamily{U}{MnSymbolC}{}
687
\DeclareSymbolFont{MnSyC}{U}{MnSymbolC}{m}{n}
688
\DeclareFontShape{U}{MnSymbolC}{m}{n}{
689
<-6> MnSymbolC5
690
<6-7> MnSymbolC6
691
<7-8> MnSymbolC7
692
<8-9> MnSymbolC8
693
<9-10> MnSymbolC9
694
<10-12> MnSymbolC10
695
<12-> MnSymbolC12%
696
}{}
697
\DeclareMathSymbol{\powerset}{\mathord}{MnSyC}{180}
698
699
\addto\captionsngerman{%
700
\renewcommand*{\glossaryname}{Bedeutung}%
701
}
702
\usepackage[
703
translate=babel,
704
abbreviations, % create "abbreviations" glossary
705
nomain, % don't create "main" glossary
706
stylemods=longbooktabs % do the adjustments for the longbooktabs styles
707
]{glossaries-extra}
708
\setglossarystyle{long3col-booktabs}
709
710
% Hint by https://tex.stackexchange.com/a/463188/9075
711
% \usepackage{glossary-longextra}
712
713
% Following is required if the abbreviation list should be sorted automatically (\printglossary / \printglossaries)
714
% Not required, if we printed the entries in-order (using \printunsrtglossaries)
715
% Required to have the German chapter name % Source: https://tex.stackexchange.com/a/426392/9075
716
\makeglossaries
717
718
\input{abbreviations}
719
720
721
\usepackage{xspace}
722
% Macht \xspace und \enquote kompatibel
723
\makeatletter
724
\xspaceaddexceptions{\grqq \grq \csq@qclose@i \} }
725
\makeatother
726
727
% Enable hyphenation at other places as the dash.
728
% Example: applicaiton\hydash specific
729
\makeatletter
730
\newcommand{\hydash}{\penalty\@M-\hskip\z@skip}
731
% Definition of "= taken from http://mirror.ctan.org/macros/latex/contrib/babel-contrib/german/ngermanb.dtx
732
\makeatother
733
734
\ifluatex
735
% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype
736
% See ADR-0008 for alternatives
737
\usepackage{autotype}
738
\fi
739
740
% correct bad hyphenation here
741
\hyphenation{
742
Spe-zi-fi-ka-tion
743
In-te-gra-tion
744
An-for-de-rung An-for-de-run-gen
745
Be-nut-zer-ober-flä-che
746
Mes-sung-en
747
aus-zu-tau-schen
748
Lauf-zeit-in-for-ma-tionen
749
% May not be hypphenated
750
AROMA TOSCA BPMN OASIS OMG DMTF IT DevOps
751
}
752
753
\input{commands}
754
755
\usepackage{geometry}
756
% Package URL: https://ctan.org/pkg/scientific-thesis-cover
757
\usepackage[
758
title={Is Oil the future?},
759
author={Lars K.},
760
type=bachelor,
761
institute=iaas, % or other institute names - or just a plain string using {Demo\\Demo...}
762
course={Medieninformatik},
763
examiner={Prof.\ Dr.\ Uwe Fessor},
764
supervisor={Dipl.-Inf.\ Roman Tiker,\\Dipl.-Inf.\ Laura Stern,\\Otto Normalverbraucher,\ M.Sc.},
765
startdate={July 5, 2018},
766
enddate={January 5, 2019}
767
]{scientific-thesis-cover}
768
769
770
\ifpdftex
771
% Enable copy and paste of text from the PDF
772
% Only required for pdflatex. It "just works" in the case of lualatex.
773
% Alternative: cmap or mmap package
774
% mmap enables mathematical symbols, but does not work with the newtx font set
775
% See: https://tex.stackexchange.com/a/64457/9075
776
% Other solutions outlined at http://goemonx.blogspot.de/2012/01/pdflatex-ligaturen-und-copynpaste.html and http://tex.stackexchange.com/questions/4397/make-ligatures-in-linux-libertine-copyable-and-searchable
777
% Trouble shooting outlined at https://tex.stackexchange.com/a/100618/9075
778
%
779
% According to https://tex.stackexchange.com/q/451235/9075 this is the way to go
780
\input{glyphtounicode}
781
\pdfgentounicode=1
782
\fi
783
% DM: line-breaking-description env vom daniel w.
784
785
% credit goes to daniel w. :-)
786
%% --- Descriptions with line breaks in labels ---------------------------------
787
\usepackage{calc}
788
789
\newcommand*\Descriptionlabel[1]{%
790
\raisebox{0pt}[1ex][0pt]{
791
\makebox[\labelwidth][1]{
792
\parbox[t]{\labelwidth}{
793
\hspace{0pt}\textbf{#1:}}}}
794
}
795
796
\newcommand*\Descriptionlabelx[1]{%
797
\parbox[t]{\textwidth}{
798
\textbf{#1}\\\mbox{}}
799
}
800
801
\newenvironment{Description}{
802
\begin{list}{}{
803
\let\makelabel\Descriptionlabelx
804
\setlength\labelwidth{1em}
805
\setlength\leftmargin{\labelwidth+\labelsep}
806
}
807
}
808
{
809
\end{list}
810
}
811
812
% globally change line spacing of lists
813
% paralist has suspended development since 10 years.
814
% enumitem has been updated 2011-09-28
815
\usepackage[inline]{enumitem}
816
\setlist{partopsep=0pt,itemsep=1pt}
817
818
%------------------------------------------------------------------------
819
% fquote Fancy Quotation environment
820
% supports empty/optional author
821
822
% Use \sloppy to make right-margin easier?
823
% Set picture units to be relative to font size (em)?
824
% Use begingroup to rest units afterwards?
825
826
\usepackage{xifthen}% provides \isempty test
827
\definecolor{quotemark}{gray}{0.7}
828
829
%fquote environment with author as optional parameter
830
%usage: \begin{fquote}quote\end{fquote} or \begin{fquote}[Author]quote\end{fquote}
831
\newenvironment{fquote}[1][]{%
832
\newcommand{\fqauthor}{\relax}
833
\ifthenelse{\isempty{#1}}
834
{}% do nothing
835
{\renewcommand{\fqauthor}{\hfill\textsc{--- #1}}}
836
\vspace{1em}
837
\begin{list}{}{%
838
\setlength{\leftmargin}{0.2\textwidth}
839
\setlength{\rightmargin}{0.2\textwidth}
840
}
841
\item[]%
842
\begin{picture}(0,0)(0,0)
843
\put(-15,-5){\makebox(0,0){%
844
\scalebox{4.5}{\textcolor{quotemark}{\bfseries``}}}%
845
}
846
\end{picture}\em\ignorespaces%
847
}{%
848
\newline%
849
\makebox[0pt][l]{\hspace{0.6\textwidth}%
850
\begin{picture}(0,0)(0,0)
851
\put(15,10){\makebox(0,0){%
852
\scalebox{4.5}{\textcolor{quotemark}{\rmfamily\bfseries''}}}%
853
}
854
\end{picture}}%
855
\fqauthor
856
\end{list}
857
}
858
859
%German fquote
860
% 1 parameter for the author's name, may be empty ("{}")
861
% guaranteed German quotes (works with lualatex and babel package)
862
% usage: \begin{gfquote}{Author}quote\end{gfquote}
863
\newenvironment{gfquote}[1]{%
864
\newcommand{\fqauthor}{\relax}
865
\ifthenelse{\isempty{#1}}
866
{}% do nothing
867
{\renewcommand{\fqauthor}{\hfill\textsc{\textemdash #1}}}
868
\vspace{1em}
869
\begin{list}{}{%
870
\setlength{\leftmargin}{0.2\textwidth}
871
\setlength{\rightmargin}{0.2\textwidth}
872
}
873
\item[]%
874
\begin{picture}(0,0)(0,0)
875
\put(-15,-5){\makebox(0,0){%
876
\scalebox{4.5}{\textcolor{quotemark}{\bfseries \glqq}}}%
877
}
878
\end{picture}\em\ignorespaces%
879
}{%
880
\newline%
881
\makebox[0pt][l]{\hspace{0.6\textwidth}%
882
\begin{picture}(0,0)(0,0)
883
\put(15,10){\makebox(0,0){%
884
\scalebox{4.5}{\textcolor{quotemark}{\rmfamily\bfseries \grqq}}}%
885
}
886
\end{picture}}%
887
\fqauthor
888
\end{list}
889
}
890
891
% fix incompatibilities between KOMA and other packages, mainly float.
892
% should be loaded at the very end - see http://tex.stackexchange.com/a/156256/9075
893
\usepackage{scrhack}
894
895
896
\begin{document}
897
\raggedbottom % Variable Seitenhoehen zulassen
898
\ifluatex
899
% Enable correct rendering of ligatures - provided by https://ctan.org/pkg/autotype
900
% See ADR-0008 for alternatives
901
\autotypelangoptions{ngerman}{ligbreak}
902
\fi
903
904
\pagenumbering{arabic}
905
\frontmatter
906
\newgeometry{centering,left=2cm,right=2cm,top=2cm,bottom=2cm}
907
\begin{titlepage}
908
%\includegraphics[scale=0.3]{figures/UHH-Logo_2010_Farbe_CMYK.pdf}
909
\includegraphics[scale=0.3]{figures/UHH-Logo_2010_Farbe_CMYK.png}
910
\vspace*{2cm}
911
\Large
912
\begin{center}
913
{\color{uhhred}\textbf{\so{BACHELORTHESIS}}}
914
%TODO ...oder {\color{uhhred}\textbf{\so{MASTERTHESIS}}}
915
\vspace*{2.0cm}\\
916
{\LARGE \textbf{Titel}}
917
\vspace*{2.0cm}\\
918
vorgelegt von
919
\vspace*{0.4cm}\\
920
Max Musterstudent
921
\end{center}
922
\vfill
923
924
\noindent
925
{\small
926
MIN-Fakultät\\[.2cm]
927
Fachbereich Informatik \\[.2cm]
928
Ggf. Professur/Institut \\[.2cm] %TODO Optional, entweder "Ggf. " oder ganze Zeile löschen
929
Studiengang: Wirtschaftsinformatik \\[.2cm]
930
Matrikelnummer: 1234567 \\[.5cm]
931
Ggf. Abgabedatum: XX.XX.20XX \\[.5cm] %TODO Optional, entweder "Ggf. " oder ganze Zeile löschen
932
Erstgutachterin: Prof. Dr. Bertha Beispiel \\[.25cm]
933
Zweitgutachter: Dr. Eduard Exempel %TODO Bei Bedarf Geschlechter der Gutachter/innen anpassen
934
}
935
\end{titlepage}
936
937
\restoregeometry
938
939
\pagestyle{plain.scrheadings}
940
\renewcommand*{\chapterpagestyle}{plain.scrheadings}
941
942
% Kurzfassung / abstract
943
% auch im Stil vom Inhaltsverzeichnis
944
\section*{Kurzfassung}
945
% Silbentrennung auf Englisch
946
\begin{otherlanguage}{american}
947
\emph{Write an abstract for your work.
948
Replace each of the points below with one sentence (two if you must) and you have your abstract.
949
Write it when you finished your entire report.
950
\footnote{https://www.easterbrook.ca/steve/2010/01/how-to-write-a-scientific-abstract-in-six-easy-steps/}}
951
952
\emph{Introduction.}
953
In one sentence, what’s the topic?
954
Phrase it in a way that your reader will understand.
955
If you’re writing a PhD thesis, your readers are the examiners assume they are familiar with the general field of research, so you need to tell them specifically what topic your thesis addresses.
956
Same advice works for scientific papers the readers are the peer reviewers, and eventually others in your field interested in your research, so again they know the background work, but want to know specifically what topic your paper covers.
957
958
\emph{State the problem you tackle.}
959
What’s the key research question?
960
Again, in one sentence.
961
(Note: For a more general essay, I’d adjust this slightly to state the central question that you want to address)
962
Remember, your first sentence introduced the overall topic, so now you can build on that, and focus on one key question within that topic.
963
If you can’t summarize your thesis/paper/essay in one key question, then you don’t yet understand what you’re trying to write about.
964
Keep working at this step until you have a single, concise (and understandable) question.
965
966
\emph{Summarize (in one sentence) why nobody else has adequately answered the research question yet.}
967
For a PhD thesis, you’ll have an entire chapter, covering what’s been done previously in the literature.
968
Here you have to boil that down to one sentence.
969
But remember, the trick is not to try and cover all the various ways in which people have tried and failed; the trick is to explain that there’s this one particular approach that nobody else tried yet (hint: it’s the thing that your research does).
970
But here you’re phrasing it in such a way that it’s clear it’s a gap in the literature.
971
So use a phrase such as “previous work has failed to address.
972
(if you’re writing a more general essay, you still need to summarize the source material you’re drawing on, so you can pull the same trick explain in a few words what the general message in the source material is, but expressed in terms of what’s missing)
973
974
\emph{Explain, in one sentence, how you tackled the research question.}
975
What’s your big new idea?
976
(Again for a more general essay, you might want to adapt this slightly: what’s the new perspective you have adopted? or:
977
What’s your overall view on the question you introduced in step 2?)
978
979
\emph{In one sentence, how did you go about doing the research that follows from your big idea.}
980
Did you run experiments?
981
Build a piece of software?
982
Carry out case studies?
983
This is likely to be the longest sentence, especially if it’s a PhD thesis after all you’re probably covering several years worth of research.
984
But don’t overdo it we’re still looking for a sentence that you could read aloud without having to stop for breath.
985
Remember, the word ‘abstract means a summary of the main ideas with most of the detail left out.
986
So feel free to omit detail!
987
(For those of you who got this far and are still insisting on writing an essay rather than signing up for a PhD, this sentence is really an elaboration of sentence 4 explore the consequences of your new perspective).
988
989
\emph{As a single sentence, what’s the key impact of your research?
990
Here we’re not looking for the outcome of an experiment.
991
}
992
We’re looking for a summary of the implications.
993
What’s it all mean?
994
Why should other people care?
995
What can they do with your research.
996
(Essay folks: all the same questions apply: what conclusions did you draw, and why would anyone care about them?)
997
\end{otherlanguage}
998
999
\microtypesetup{protrusion=false}
1000
1001
% In case you have trouble with headings reaching into the page numbers, enable the following three lines.
1002
% Hint by http://golatex.de/inhaltsverzeichnis-schreibt-ueber-rand-t3106.html
1003
%
1004
%\makeatletter
1005
%\renewcommand{\@pnumwidth}{2em}
1006
%\makeatother
1007
%
1008
% Bei einem ungünstigen Seitenumbruch im Inhaltsverzeichnis, kann dieser mit
1009
% \addtocontents{toc}{\protect\newpage}
1010
% an der passenden Stelle im Fließtext erzwungen werden.
1011
\tableofcontents
1012
1013
\listoffigures
1014
1015
\listoftables
1016
1017
% We use lstlisting environments with caption paramters.
1018
% Thus, we need that command.
1019
% Alternative: \listof{Listing}{List of Listings}
1020
\lstlistoflistings
1021
1022
%mittels \newfloat wurde die Algorithmus-Gleitumgebung definiert.
1023
%Mit folgendem Befehl werden alle floats dieses Typs ausgegeben
1024
%\listof{Algorithmus}{Verzeichnis der Algorithmen}
1025
%\listofalgorithms %Ist nur für Algorithmen, die mittels \begin{algorithm} umschlossen werden, nötig
1026
1027
% Abkürzungsverzeichnis / Acronyms / Abbreviations
1028
\printglossary[type=\acronymtype,title={Abkürzungsverzeichnis}]
1029
% \printglossaries
1030
% \printnoidxglossaries
1031
% \printunsrtglossaries cannot be used, because then no indexing happens; source: https://tex.stackexchange.com/a/287128/9075
1032
1033
\microtypesetup{protrusion=true}
1034
1035
% Headline and footline
1036
\renewcommand*{\chapterpagestyle}{scrplain}
1037
\pagestyle{scrheadings}
1038
\mainmatter
1039
1040
%%% ===============================================================================
1041
\chapter{Introduction}\label{sec:introduction}
1042
%%% ===============================================================================
1043
1044
\emph{Purpose and scope of your entire report}.
1045
The purpose of your entire report is to make a \emph{scientific argument using the scientific method}.
1046
A scientific argument always has the following steps that all must come in this order.
1047
%
1048
\begin{itemize}
1049
\item[SM1] \emph{Explicate the assumptions and state of the art} on which you are going to conduct your research to investigate your research problem/test the hypothesis.
1050
\item[SM2] Clearly and precisely \emph{formulate a research problem or hypothesis}.
1051
\item[SM3] \emph{Describe the (research) method} that you followed to investigate the problem / to test the hypothesis in a way that \emph{allows someone else to reproduce your steps}.
1052
The method must includes steps and criteria for evaluating whether you answered your question successfully or not.
1053
\item[SM4] \emph{Provide execution details} on how you followed the method in the given, specific situation.
1054
\item[SM5] \emph{Report your results} by describing and summarizing your measurements.
1055
You must not interpret your results.
1056
\item[SM6] \emph{Now interpret your results} by contextualizing the measurements and drawing conclusion that lead to answering your research problem or defining further follow-up research problems.
1057
\end{itemize}
1058
%
1059
This template will mark various parts of the structure with SM1-SM6 to recall to you which step of a scientific argument is used and where.
1060
1061
\emph{Purpose and scope of \cref{sec:introduction}}.
1062
The introduction chapter is a summary of your work and your scientific argument that shall be understandable to anyone in your scientific field, e.g., anyone in Data Science.
1063
A reader must be able to comprehend the problem, method, relevant execution details, results, and their interpretation by reading the introduction and the introduction alone.
1064
Section~\ref{sec:introduction:topic} introduces the general topic of your research.
1065
Section~\ref{sec:introduction:state-of-art} discusses the state of the art and identifies a research.
1066
Section~\ref{sec:introduction:research-question} then states the research problem to investigate.
1067
Section~\ref{sec:problem-exposition:research-method} explains the research method that was followed, possibly with execution details.
1068
Section~\ref{sec:introduction:results} then presents the results and their interpretation.
1069
Only if a reader thinks they are not convinced or they need more details to reproduce your study, they shall have to read further.
1070
The individual chapters and sections provide the details for each of the steps in your scientific argument.
1071
1072
You usually write the introduction chapter \emph{after} you wrote all other chapters, but you should keep on making notes for each of the sections as you write the later chapters.
1073
.
1074
1075
\emph{Purpose and scope of the introduction paragraph to a chapter}.
1076
The paragraph you are reading above is a typical introductory paragraph to a chapter.
1077
It is a high-level summary of the chapters' topic (SM1 and SM2).
1078
It gives the reader some guidance by breaking down the chapter topic into subtopics that are clearly named (SM3) in the right order with forward references to the corresponding sections (SM4).
1079
It may close with announcing the result you obtain (SM6) but this is usually not done in the opening paragraph of the introduction.
1080
1081
% ---------------------------------------------------------------------------------
1082
\section{Context and Topic (SM1)}\label{sec:introduction:topic}
1083
% ---------------------------------------------------------------------------------
1084
1085
\emph{Purpose and scope}.
1086
You begin with providing the general scientific audience an introduction into the specific topic of your work.
1087
The aim of this section is to first introduce the \emph{general subject of study} (``Giraffes are well-known animals and everyone's favorite''), the \emph{specific topic of societal or scientific interest} to investigate (``Giraffes have blue tongues'') and the \emph{objective of society/science towards} this topic (``it is unknown at the moment how the blue color tone evolved'').
1088
It must be understandable by the general scientific public.
1089
Every \emph{term} with a specific meaning must be highlighted and introduced in precise language/concepts that only builds on a general scientific background.
1090
1091
At the end of this section, you have explained and established a general goal that society/science universally agrees to be worth achieving (``knowing how everyone's favorite animal evolved the colour of their tongue'').
1092
1093
% ---------------------------------------------------------------------------------
1094
\section{State of the Art (SM1)}\label{sec:introduction:state-of-art}
1095
% ---------------------------------------------------------------------------------
1096
1097
\emph{Purpose and scope}.
1098
You provide a more in-depth introduction into the research topic by contrasting the current state of the art in society/science in relation to the research topic you introduced in \cref{sec:introduction:topic}.
1099
This introduction has to
1100
1101
\begin{itemize}
1102
\item present established facts, methods, and results that provide a deeper understanding of the research topic (``prior work on giraffe genomes, relevance of giraffes for societal well-being, giraffes being a model-animal for various other studies, etc.'')
1103
\item discuss in which ways prior and recent ideas still fall short of reaching the general goal you explained in \cref{sec:introduction:topic} (``prior work only sequenced the genome of one giraffe and did not consider genes of ancient ancestors'')
1104
\end{itemize}
1105
1106
You have to provide citations/literature references for each of the statements and claims you are making.
1107
This section is usually a summary of the related work discussion in \cref{sec:background}.
1108
1109
At the end of this section, you have established a \emph{knowledge gap} between the state of the art and the general objective you developed in \cref{sec:introduction:topic}.
1110
\emph{Stating a (knowledge) gap between a status quo and a desired situation is the \emph{first step} of a writing scientific argument.}
1111
1112
% ---------------------------------------------------------------------------------
1113
\section{Research Question (SM2)}\label{sec:introduction:research-question}
1114
% ---------------------------------------------------------------------------------
1115
1116
\emph{Purpose and scope}.
1117
In this section you state in which way you will address the knowledge gap you identified at the end of \cref{sec:introduction:state-of-art}.
1118
You usually cannot address and resolve the entire knowledge gap in your work.
1119
The purpose of this section is to clearly detail the specific part of the knowledge that you will address.
1120
You thereby make all the assumptions explicit that underlie your work (``in this report we focus on genomes of female giraffes who lived in the years 1950-2000 in South Africa'').
1121
1122
Your general research question states
1123
\begin{itemize}
1124
\item The starting point/assumptions you are making from which your research starts (``for the given 13 genomes of female giraffes...''), and
1125
\item the final objective/solution you want to reach (``...identify the genes involved in color expression of giraffe tongues...'')
1126
\item and the evaluation criteria that will determine whether you are successful (``...that are present in at least 75\% of the studied giraffes'')
1127
\end{itemize}
1128
1129
You will usually break your general research question down into sub-research questions.
1130
You may do this here.
1131
The sub-research questions have to form a chain that take you in smaller steps from the starting point/assumptions of your general research question to your final objective and evaluation.
1132
1133
% ---------------------------------------------------------------------------------
1134
\section{Method or Approach (SM3, SM4)}\label{sec:introduction:method}
1135
% ---------------------------------------------------------------------------------
1136
1137
\emph{Purpose and scope}.
1138
In this section you outline the method that you applied to answer the research questions, or the new technical approach that you developed to answer it.
1139
It is a summary of the steps that someone else has to take in order to reproduce your steps.
1140
Mention here the data sets you had to obtain/gather/analyze, interviews with stakeholders you had to make to further develop the research questions, technical artifacts (programs, algorithms, models) you could apply or that you had to develop (and how they work).
1141
1142
The section is most readable if you give each of the steps in your method its own paragraph.
1143
In each paragraph you first briefly explain the concept of the step in your method (SM3, ``we explored the data through visual analytics'') and then provide details in execution (SM4, ``we used tool X, we developed dashboard Y'') include a forward reference to the respective chapter that provides more details.
1144
1145
% ---------------------------------------------------------------------------------
1146
\section{Findings (SM5, SM6)}\label{sec:introduction:results}
1147
% ---------------------------------------------------------------------------------
1148
1149
\emph{Purpose and scope}.
1150
You close the introduction by clearly stating the evaluation setup you designed to evaluate the success of your study regarding the research objective, which comes in two steps.
1151
It is most likely a summary of your evaluation in \cref{sec:evaluation}.
1152
1153
\section*{Results (SM5)}
1154
1155
You state the evaluation method that is in line with your research question from \cref{sec:introduction:research-question} and summarize the measurements you obtained but you do not interpret them, i.e., you only report the numbers but you do not include judging statements.
1156
1157
\section*{Interpretation (SM6)}
1158
1159
You summarize your interpretation of the results and draw conclusions.
1160
State whether and to which degree the research question from \cref{sec:introduction:research-question} has been answered successfully or not.
1161
1162
Finally state briefly how much closer society and science have come in answering the general objective you outlined in \cref{sec:introduction:topic}.
1163
1164
%%% ===============================================================================
1165
\section{Background (SM1)}\label{sec:background}
1166
%%% ===============================================================================
1167
1168
\emph{Purpose and scope}.
1169
The background chapter has multiple roles.
1170
\begin{itemize}
1171
1172
\item \emph{Preliminaries.}
1173
It has to provide all (and exactly the) information that is necessary to understand the methodological and technical parts of your work in the specific area of study.
1174
Assume as starting point another student in your degree who did not study the specific subject you are studying but has the task to understand your work.
1175
Which concepts, terms, definitions, etc. does the student have to know?
1176
Which formulas, symbols, etc. are standard in this topic?
1177
Only introduce definitions if you actually need them in any of the subsequent chapters.
1178
1179
\item \emph{Related Work.}
1180
It has to provide a comprehensive discussion of all prior work in the area on this subject.
1181
Your discussion has to summarize these prior works and has to explain in which way the research question you are solving (\cref{sec:introduction:research-question}) has not bee solved yet because prior work had more limiting assumptions, addressed a different angle, their results are not complete etc. Depending on the subject you are studying, the related work part can be larger and warrant an entire chapter on its own, or be fully concluded within \cref{sec:introduction:state-of-art}.
1182
1183
You can close the related work discussion by clarifying the positioning and formulation of your research question (SM2) in relation to all the prior work, making more explicit whether you address an existing research question under different premises or whether you work on a modified or completely new research question.
1184
\end{itemize}
1185
1186
%%% ===============================================================================
1187
\section{Problem Exposition (optional)}\label{sec:problem-exposition}
1188
%%% ===============================================================================
1189
1190
\emph{Purpose and scope}.
1191
Introduce the problem context in more detail if \cref{sec:introduction:topic} does not provide all necessary information about the problem to follow the rest of the report.
1192
This can include further details on the data you studied, context assumptions and requirements, etc.
1193
1194
If you have to expose the problem in more detail here, then this chapter should also provide a more detailed explanation of research question and the method you are applying, i.e., you can now provide more concrete sub-problems compared to \cref{sec:introduction:research-question} more details for the method \cref{sec:introduction:method} because you now have explained the problem much better.
1195
A typical structure can be.
1196
1197
% ---------------------------------------------------------------------------------
1198
\section{Context/Business Understanding (SM1)}\label{sec:problem-exposition:context-understanding}
1199
% ---------------------------------------------------------------------------------
1200
1201
provide details
1202
1203
% ---------------------------------------------------------------------------------
1204
\section{Data Understanding (SM1)}\label{sec:problem-exposition:data-understanding}
1205
% ---------------------------------------------------------------------------------
1206
1207
provide details
1208
1209
% ---------------------------------------------------------------------------------
1210
\section{Detailed Research Questions (SM2)}\label{sec:problem-exposition:research-problems}
1211
% ---------------------------------------------------------------------------------
1212
1213
provide details based on \cref{sec:problem-exposition:context-understanding} and \ref{sec:problem-exposition:data-understanding}
1214
1215
% ---------------------------------------------------------------------------------
1216
\section{Detailed Method (SM3)}\label{sec:problem-exposition:research-method}
1217
% ---------------------------------------------------------------------------------
1218
1219
provide details based on \cref{sec:problem-exposition:context-understanding} and \ref{sec:problem-exposition:data-understanding}
1220
1221
%%% ===============================================================================
1222
\section{First Real Chapter addressing first Research Problem}\label{sec:problem1}
1223
%%% ===============================================================================
1224
1225
\emph{Purpose and scope}.
1226
After you stated research context (SM1), research problem (SM2), and research method (SM3) in \cref{sec:introduction} and possibly \cref{sec:problem-exposition}, the remainder of your entire report addresses execution (SM4), results (SM5), and interpretation (SM6).
1227
You usually do this by addressing various sub-problems again through scientific arguments following the 6 steps SM1-SM6.
1228
1229
Have a short chapter introduction that recalls and explains the first research problem of your thesis.
1230
The problem has to show up in the introduction in \cref{sec:introduction:research-question} or in \cref{sec:problem-exposition:research-problems} already.
1231
This provides the background (SM1) for this chapter while the first research problem of the thesis becomes the research question/hypothesis (SM2) for this chapter.
1232
1233
Next, explain in the chapter intro how you solve the research problem in this chapter by breaking it down in further sub-problems.
1234
By this, you outline the method (SM3) through which you are going to solve the problem of this chapter.
1235
This is necessary to give the reader guidance of what's to come in this chapter and how it fits into the thesis as a whole.
1236
Explain that you will address the first sub-problem in \cref{sec:problem1:subproblem1} and the second sub-problem in \cref{sec:problem1:subproblem2}, etc. The sections then provide the details for execution and results.
1237
1238
% ---------------------------------------------------------------------------------
1239
\section{First Sub-Problem}\label{sec:problem1:subproblem1}
1240
% ---------------------------------------------------------------------------------
1241
1242
\emph{The first paragraph describes the first sub-problem and develops the requirements a solution has to satisfy (SM2 for this section).}
1243
The requirements have to be based on the knowledge and reasoning developing in the preceding chapters and sections.
1244
Try to use an example to illustrate the problem and the desired properties of the solution.
1245
Check that every term/concept you use here has already been defined already in a previous section.
1246
If you cannot describe your problem without defining new terms, you may have to add another section before this one that develops the terms and concepts you need to explain the problem.
1247
1248
\emph{The second paragraph describes the method/approach how you address the problem (SM3 for this section).}
1249
Describe the method in a level of detail that allows another student to reproduce your steps.
1250
Make use of appendices % (see \cref{sec:appendix1})
1251
if certain details take too much space.
1252
1253
\emph{The third, fourth, and following paragraph provides details on applying the method or developing a new approach, i.e., execution (SM4) and may explain results (SM5)}, i.e. details on the steps needed to reproduce the results.
1254
1255
Results (SM5) can come in many forms, e.g., conceptual diagrams, algorithms, tables, charts, a list of articles from a literature research etc. You must reference them (``\cref{fig:my_label} shows.
1256
..'') and describe the results in text.
1257
If you use diagrams, tables, or charts, you cannot expect the reader to know what to you expect them to see in a diagram, table or chart.
1258
Describe to them how to read these, explain the meaning of particular elements, point out special observations.
1259
But you may only describe the results you must not interpret them.
1260
Make use of appendices if certain details take too much space.
1261
1262
\begin{figure}
1263
\centering
1264
%%%\includegraphics{/path/to/figure.pdf}
1265
\caption{A scientific figure that has to be explained in the text}
1266
\label{fig:my_label}
1267
\end{figure}
1268
1269
\emph{After describing the results, you may interpret them (SM6).}
1270
Here you can infer what a particular observation means (for you), how it can be applied, or what others can do with it.
1271
You must not write interpretations before completely describing your results.
1272
This is a common mistake done by most beginner writers.
1273
You want to quickly get to the point, which is the final finding or interpretation.
1274
But you forget that your reader does not understand yet what you are interpreting - they do not know yet what you do know.
1275
An interpretation can only be followed after all results have been described.
1276
The interpretation must be based on the written description only.
1277
Then you can be sure that your readers can follow your interpretation and reach the same conclusions as you have.
1278
1279
Ideally, your interpretation leads to the next sub-problem in \cref{sec:problem1:subproblem2}.
1280
1281
% ---------------------------------------------------------------------------------
1282
\section{Second Sub-Problem}\label{sec:problem1:subproblem2}
1283
% ---------------------------------------------------------------------------------
1284
1285
You now build on the solution to the first sub-problem of \cref{sec:problem1:subproblem1} (SM1) and recall second sub-problem (SM2, you detailed in the introduction of this chapter) and follow the same pattern as before (SM3-SM6).
1286
1287
Note that not all sections may not include all parts SM1-SM6 in all detail.
1288
Some sections do not require to repeatedly state the background (SM1) or the research problem (SM2) if they were already clearly defined in a previous section.
1289
Sometimes, a section is only dedicated to describing the method (SM3) and execution (SM4) and does not contain any results or interpretations.
1290
Sometimes results (SM5) and interpretations (SM6) only come in the evaluation chapter.
1291
1292
What is important for you when you are writing a scientific argument is not to slavishly have SM1-SM6 in each section explicitly, but that you are always fully aware of the following:
1293
%
1294
\begin{itemize}
1295
\item Which step of a scientific argument am I currently writing (SM1, SM2, ..., SM6)?
1296
\item Does the step that I am writing come in the right order, i.e., if you are writing about execution (SM4, e.g., details of building a model), is there a preceding paragraph or section that describes the method (SM3) and is that one preceded by a clear statement of the (sub-)problem addressed (SM2)?
1297
\item Are you really \emph{not} writing interpretation SM6 before SM5, SM4, or SM3?
1298
\item Is it clear to the reader which part of the scientific argument you are currently making?
1299
\end{itemize}
1300
1301
%%% ===============================================================================
1302
\section{Second Real Chapter}\label{sec:sub-problem2}
1303
%%% ===============================================================================
1304
1305
Have a short chapter introduction that recalls what you already achieved in \cref{sec:problem1} and explain the second research problem of your thesis.
1306
The problem has to show up in the introduction in \cref{sec:introduction:research-question} or in \cref{sec:problem-exposition:research-problems} already.
1307
etc.
1308
1309
%%% ===============================================================================
1310
\section{Evaluation}\label{sec:evaluation}
1311
%%% ===============================================================================
1312
1313
\emph{Purpose and scope}.
1314
The evaluation chapter should be the most formal and rigorously structured chapter of your thesis as the validity of your evaluation argument depends on it.
1315
1316
% ---------------------------------------------------------------------------------
1317
\section{Objective (SM2)}\label{sec:evaluation:objective}
1318
% ---------------------------------------------------------------------------------
1319
1320
Clearly state what you want to evaluate and what you want to measure.
1321
1322
% ---------------------------------------------------------------------------------
1323
\section{Setup (SM3)}\label{sec:evaluation:setup}
1324
% ---------------------------------------------------------------------------------
1325
1326
State which data, participants, tools, etc. you chose and why.
1327
Clearly state how you measure outcomes and how you compare them to baselines, reference groups, etc.
1328
1329
% ---------------------------------------------------------------------------------
1330
\section{Execution (SM4)}\label{sec:evaluation:execution}
1331
% ---------------------------------------------------------------------------------
1332
1333
Provide all details on the execution that are necessary to allows another person to reproduce your results at a later point.
1334
1335
% ---------------------------------------------------------------------------------
1336
\section{Results (SM5)}\label{sec:evaluation:results}
1337
% ---------------------------------------------------------------------------------
1338
1339
You only report the measurements.
1340
You must present and reference them (``\cref{fig:my_label2} shows.
1341
..'') and describe the results in text.
1342
If you use diagrams, tables, or charts, you cannot expect the reader to know what to you expect them to see in a diagram, table or chart.
1343
Describe to them how to read these, explain the meaning of particular elements, point out special observations.
1344
But you may only describe the results you must not interpret them.
1345
Make use of appendices if certain details take too much space.
1346
1347
\begin{figure}
1348
\centering
1349
%%%\includegraphics{/path/to/figure.pdf}
1350
\caption{Another scientific figure that has to be explained in the text}
1351
\label{fig:my_label2}
1352
\end{figure}
1353
1354
% ---------------------------------------------------------------------------------
1355
\section{Discussion (SM6)}\label{sec:evaluation:discussion}
1356
% ---------------------------------------------------------------------------------
1357
1358
An interpretation can only be followed after all results have been described.
1359
The interpretation must be based on the written description in \cref{sec:evaluation:results} only.
1360
Then you can be sure that your readers can follow your interpretation and reach the same conclusions as you have.
1361
1362
1363
\chapter{LaTeX Hinweise}
1364
\label{sec:latexhints}
1365
1366
% Benötigt für eine korrekte Darstellung der Hinweise im erzeugten PDF
1367
\newcount\LTGbeginlineexample
1368
\newcount\LTGendlineexample
1369
\newenvironment{ltgexample}%
1370
{\LTGbeginlineexample=\numexpr\inputlineno+1\relax}%
1371
{\LTGendlineexample=\numexpr\inputlineno-1\relax%
1372
\tcbinputlisting{%
1373
listing only,
1374
listing file=\currfilepath,
1375
colback=green!5!white,
1376
colframe=green!25,
1377
coltitle=black!90,
1378
coltext=black!90,
1379
left=8mm,
1380
title=Zugehöriger \LaTeX{}-Quelltext aus \texttt{\currfilepath},
1381
listing options={
1382
frame=none,
1383
language={[LaTeX]TeX},
1384
escapeinside={},
1385
firstline=\the\LTGbeginlineexample,
1386
lastline=\the\LTGendlineexample,
1387
firstnumber=\the\LTGbeginlineexample,
1388
basewidth=.5em,
1389
aboveskip=0mm,
1390
belowskip=0mm,
1391
numbers=left,
1392
xleftmargin=0mm,
1393
numberstyle=\tiny,
1394
numbersep=8pt%
1395
}
1396
}
1397
}%
1398
1399
Hier sollen allgemeine \LaTeX-Hinweise gegeben werden, damit man Minimalbeispiele vorliegen hat, um sofort loszulegen.
1400
1401
\section{Trennung von Absätzen}
1402
1403
\begin{ltgexample}
1404
Pro Satz eine neue Zeile.
1405
Das ist wichtig, um sauber versionieren zu können.
1406
In LaTeX werden Absätze durch eine Leerzeile getrennt.
1407
Analogie zu Word: Bei Word werden neue Absätze durch einmal Eingabetaste herbeigeführt.
1408
Dies führt bei LaTeX jedoch nicht zu einem neuen Absatz, da LaTeX direkt aufeinanderfolgende Zeilen zu einer Zeile zusammenfügt.
1409
Mächte man nun einen Absatz haben, muss man zweimal die Eingabetaste drücken.
1410
Dies führt zu einer leeren Zeile.
1411
In Word gibt es die Funktion Großschreibetaste und Eingabetaste gleichzeitig.
1412
Wenn man dies drückt, wird einer harter Umbruch erzwungen.
1413
Der Text fängt am Anfang der neuen Zeile an.
1414
In LaTeX erreicht man dies durch Doppelbackslashes (\textbackslash\textbackslash) erzeugt.
1415
\\
1416
Dies verwendet man quasi nie.
1417
1418
Folglich werden neue Abstäze insbesondere \emph{nicht} durch Doppelbackslashes erzeugt.
1419
Beispielsweise begann der letzte Satz in einem neuen Absatz.
1420
Eine ausführliche Motivation hierfür findet sich in \url{http://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/#section.3}.
1421
\end{ltgexample}
1422
1423
Möchte man die Art des Absatzes ändern, so kann man die Dokumentklassenoption \texttt{parskip} verwenden.
1424
Beispielsweise kann man mit \texttt{parskip=off} erreichen, dass statt eines freien Bereichs die erste Zeile des Absatzes eingezogen wird.
1425
1426
\section{Notes separated from the text}
1427
1428
The package mindflow enables writing down notes and annotations in a way so that they are separated from the main text.
1429
1430
\begin{ltgexample}
1431
\begin{mindflow}
1432
This is a small note.
1433
\end{mindflow}
1434
\end{ltgexample}
1435
1436
\section{Handling TODOs}
1437
1438
\begin{ltgexample}
1439
\textmarker{Markierter Text.}
1440
\end{ltgexample}
1441
1442
Bei \verb1\textmarker1 wird nur die Textfarbe geändert, da dies auch bei einigen Worten gut funktioniert.
1443
1444
\begin{ltgexample}
1445
\textcomment{Markierter Text.}{Kommentar dazu.}
1446
\end{ltgexample}
1447
1448
\begin{ltgexample}
1449
\hl{In Gelb hervorgehoben.}
1450
Provided indirectly by pdfcomment.sty (soulpos).
1451
\end{ltgexample}
1452
1453
\begin{ltgexample}
1454
\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.}
1455
\end{ltgexample}
1456
1457
\begin{ltgexample}
1458
Das ist ein Text.
1459
\change{FL1: Text angepasst}{Geänderter Text}.
1460
\end{ltgexample}
1461
1462
\begin{ltgexample}
1463
Hier nur ein Kommentar\sidecomment{Kommentar}.
1464
\end{ltgexample}
1465
1466
\begin{ltgexample}
1467
\todo{Hier muss noch kräftig Text produziert werden}
1468
\end{ltgexample}
1469
1470
\section{Hyphenation}
1471
1472
\LaTeX{} automatically hyphenates words.
1473
When using \href{https://ctan.org/pkg/microtype}{microtype}, there should be fewer hyphenations than in other settings.
1474
It might be necessary to tweak the hyphenations nevertheless.
1475
Here are some hints:
1476
1477
\begin{ltgexample}
1478
In case you write \enquote{application-specific}, then the word will only be hyphenated at the dash.
1479
You can also write \verb1applica\allowbreak{}tion-specific1 (result: applica\allowbreak{}tion-specific), but this is much more effort.
1480
1481
You can now write words containing hyphens which are hyphenated at other places in the word.
1482
For instance, \verb1application"=specific1 gets application"=specific.
1483
This is enabled by an additional configuration of the babel package.
1484
\end{ltgexample}
1485
1486
\section{Typesetting Units}
1487
1488
\begin{ltgexample}
1489
Numbers can be written plain text (such as 100), by using the \href{https://ctan.org/pkg/siunitx}{siunitx} package as follows:
1490
\SI{100}{\km\per\hour},
1491
or by using plain \LaTeX{} (and math mode):
1492
$100 \frac{\mathit{km}}{h}$.
1493
\end{ltgexample}
1494
1495
\begin{ltgexample}
1496
\SI{5}{\percent} of \SI{10}{kg}
1497
\end{ltgexample}
1498
1499
\begin{ltgexample}
1500
Numbers are automatically grouped: \num{123456}.
1501
\end{ltgexample}
1502
1503
\section{Surrounding Text by Quotes}
1504
1505
\begin{ltgexample}
1506
Please use the \enquote{enquote command} to quote something.
1507
Quoting with "`quote"' or ``quote'' also works.
1508
1509
\end{ltgexample}
1510
1511
\section{Cleveref examples}
1512
\label{sec:ex:cref}
1513
1514
Cleveref demonstration: Cref at beginning of sentence, cref in all other cases.
1515
1516
\begin{figure}
1517
\centering
1518
\includegraphics[width=.75\linewidth]{example-image-a}
1519
\caption{Example figure for cref demo}
1520
\label{fig:ex:cref}
1521
\end{figure}
1522
1523
\begin{table}
1524
\centering
1525
\begin{tabular}{ll}
1526
\toprule
1527
Heading1 & Heading2 \\
1528
\midrule
1529
One & Two \\
1530
Thee & Four \\
1531
\bottomrule
1532
\end{tabular}
1533
\caption{Example table for cref demo}
1534
\label{tab:ex:cref}
1535
\end{table}
1536
1537
\begin{ltgexample}
1538
\Cref{fig:ex:cref} shows a simple fact, although \cref{fig:ex:cref} could also show something else.
1539
1540
\Cref{tab:ex:cref} shows a simple fact, although \cref{tab:ex:cref} could also show something else.
1541
1542
\Cref{sec:ex:cref} shows a simple fact, although \cref{sec:ex:cref} could also show something else.
1543
\end{ltgexample}
1544
1545
\section{Abbildungen}
1546
1547
\begin{ltgexample}
1548
\Cref{fig:label} zeigt etwas Interessantes
1549
1550
\begin{figure}
1551
\centering
1552
Füge deine Abbildung hier ein.
1553
\caption{Bildunterschrift.}
1554
\label{fig:label}
1555
\end{figure}
1556
\end{ltgexample}
1557
1558
\section{Sub Figures}
1559
1560
An example of two sub figures is shown in \cref{fig:two_sub_figures}.
1561
1562
\begin{ltgexample}
1563
\begin{figure}[!b]
1564
\centering
1565
\subfloat[Case I]{\includegraphics[width=.4\linewidth]{example-image-a}%
1566
\label{fig:first_case}}
1567
\hfil
1568
\subfloat[Case II]{\includegraphics[width=.4\linewidth]{example-image-b}%
1569
\label{fig:second_case}}
1570
\caption{Example figure with two sub figures.}
1571
\label{fig:two_sub_figures}
1572
\end{figure}
1573
\end{ltgexample}
1574
1575
\section{Tables}
1576
1577
\begin{ltgexample}
1578
\begin{table}
1579
\caption{Simple Table}
1580
\label{tab:simple}
1581
\centering
1582
\begin{tabular}{ll}
1583
\toprule
1584
Heading1 & Heading2 \\
1585
\midrule
1586
One & Two \\
1587
Thee & Four \\
1588
\bottomrule
1589
\end{tabular}
1590
\end{table}
1591
\end{ltgexample}
1592
1593
\begin{ltgexample}
1594
% Source: https://tex.stackexchange.com/a/468994/9075
1595
\begin{table}
1596
\caption{Table with diagonal line}
1597
\label{tab:diag}
1598
\begin{center}
1599
\begin{tabular}{|l|c|c|}
1600
\hline
1601
\diagbox[width=10em]{Diag \\Column Head I}{Diag Column\\Head II} & Second & Third \\
1602
\hline
1603
& foo & bar \\
1604
\hline
1605
\end{tabular}
1606
\end{center}
1607
\end{table}
1608
\end{ltgexample}
1609
1610
1611
\section{Quellcode}
1612
1613
\begin{ltgexample}
1614
\Cref{lst:XML} zeigt XML-Quelltext.
1615
\Cref{line:comment} enthält einen Kommentar.
1616
1617
\begin{lstlisting}[
1618
language=XML,
1619
caption={Beispiel-XML-Listing},
1620
label={lst:XML}]
1621
<listing name="example">
1622
<!-- comment --> (* \label{line:comment} *)
1623
<content>not interesting</content>
1624
</listing>
1625
\end{lstlisting}
1626
\end{ltgexample}
1627
1628
Der zusätzliche Paramter \verb+float+ führt dazu, dass das Listing auch floated.
1629
\Cref{lst:flXML} zeigt das gleitendede Listing.
1630
1631
\begin{ltgexample}
1632
\begin{lstlisting}[
1633
% Es ist möglcih, die Abstände bei Bedarf einzustellen
1634
% aboveskip=2.5\baselineskip,
1635
% belowskip=-.8\baselineskip,
1636
float,
1637
language=XML,
1638
caption={Beispiel-XML-Listing -- gleitend},
1639
label={lst:flXML}]
1640
<listing name="example">
1641
Floating
1642
</listing>
1643
\end{lstlisting}
1644
\end{ltgexample}
1645
1646
Es ist möglich auch JSON zu setzen, wie in \cref{lst:json} gezeigt.
1647
1648
\begin{ltgexample}
1649
\begin{lstlisting}[
1650
float,
1651
language=json,
1652
caption={Beispiel-JSON-listing},
1653
label={lst:json}]
1654
{
1655
key: "value"
1656
}
1657
\end{lstlisting}
1658
\end{ltgexample}
1659
1660
Java ist auch möglich -- \cref{lst:java}.
1661
1662
\begin{ltgexample}
1663
\begin{lstlisting}[
1664
caption={Example Java listing},
1665
label=lst:java,
1666
language=Java,
1667
float]
1668
public class Hello {
1669
public static void main (String[] args) {
1670
System.out.println("Hello World!");
1671
}
1672
}
1673
\end{lstlisting}
1674
\end{ltgexample}
1675
1676
\section{Itemization}
1677
1678
One can list items as follows:
1679
1680
\begin{ltgexample}
1681
\begin{itemize}
1682
\item Item One
1683
\item Item Two
1684
\end{itemize}
1685
\end{ltgexample}
1686
1687
With the package paralist, one can create itemizations with lesser spacing:
1688
1689
\begin{ltgexample}
1690
\begin{compactitem}
1691
\item Item One
1692
\item Item Two
1693
\end{compactitem}
1694
\end{ltgexample}
1695
1696
One can enumerate items as follows:
1697
1698
\begin{ltgexample}
1699
\begin{enumerate}
1700
\item Item One
1701
\item Item Two
1702
\end{enumerate}
1703
\end{ltgexample}
1704
1705
With the package paralist, one can create enumerations with lesser spacing:
1706
1707
\begin{ltgexample}
1708
\begin{compactenum}
1709
\item Item One
1710
\item Item Two
1711
\end{compactenum}
1712
\end{ltgexample}
1713
1714
With paralist, one can even have all items typeset after each other and have them clean in the TeX document:
1715
1716
\begin{ltgexample}
1717
\begin{inparaenum}
1718
\item All these items...
1719
\item ...appear in one line
1720
\item This is enabled by the paralist package.
1721
\end{inparaenum}
1722
\end{ltgexample}
1723
1724
\section{Abkürzungen}
1725
1726
Mit \verb+\gls{...}+ können Abkürzungen eingebaut werden, beim ersten Aufrufen wird die lange Form eingesetzt.
1727
Beim wiederholten Verwenden von \verb+\gls{...}+ wird automatisch die Kurzform angezeigt.
1728
Außerdem wird die Abkürzung automatisch in die Abkürzungsliste eingefügt.
1729
Mit \verb+\glspl{...}+ wird die Pluralform verwendet.
1730
Möchte man, dass bei der ersten Verwendung direkt die Kurzform erscheint, so kann man mit \verb+\glsunset{...}+ eine Abkürzung als bereits verwendet markieren.
1731
Das Gegenteil erreicht man mit \verb+\glsreset{...}+.
1732
1733
Definiert werden Abkürzungen in der Datei \textit{abbreviationstex} mithilfe von \verb+\newacronym{...}{...}{...}+.
1734
1735
Mehr Infos unter: \url{https://ctan.org/pkg/bib2gls}.
1736
1737
\begin{ltgexample}
1738
Beim ersten Durchlauf betrug die \gls{fr} 5.
1739
Beim zweiten Durchlauf war die \gls{fr} 3.
1740
Die Pluralform sieht man hier: \glspl{er}.
1741
Um zu demonstrieren, wie das Abkürzungsverzeichnis bei längeren Beschreibungstexten aussieht, muss hier noch \glspl{rdbms} erwähnt werden.
1742
1743
\gls{dante} is a local \TeX\ user group.
1744
The German-speaking local \TeX\ user group is \gls{dante}.
1745
A \gls{gp} is a medical doctor.
1746
I went to my surgery to see the \gls{gp}.
1747
\end{ltgexample}
1748
1749
\section{Other Features}
1750
1751
\begin{ltgexample}
1752
The words \enquote{workflow} and \enquote{dwarflike} can be copied from the PDF and pasted to a text file.
1753
\end{ltgexample}
1754
1755
\begin{ltgexample}
1756
The symbol for powerset is now correct: $\powerset$ and not a Weierstrass p ($\wp$).
1757
1758
$\powerset({1,2,3})$
1759
\end{ltgexample}
1760
1761
\begin{ltgexample}
1762
Brackets work as designed:
1763
<test>
1764
One can also input backticks in verbatim text: \verb|`test`|.
1765
\end{ltgexample}
1766
1767
1768
\section{Varioref examples}
1769
\label{sec:ex:vref}
1770
1771
Varioref demonstration: Vref at beginning of sentence, vref in all other cases.
1772
1773
\begin{ltgexample}
1774
\Vref{fig:ex:cref} shows a simple fact, although \vref{fig:ex:cref} could also show something else.
1775
1776
\Vref{tab:ex:cref} shows a simple fact, although \vref{tab:ex:cref} could also show something else.
1777
1778
\Vref{sec:ex:cref} shows a simple fact, although \vref{sec:ex:cref} could also show something else.
1779
\end{ltgexample}
1780
1781
\section{Citations}
1782
1783
When referencing something from the bibliography file, it will automatically appear in the references section.
1784
If a reference is not cited, it is not appearing there.
1785
1786
\begin{ltgexample}
1787
Standard case: Citing indirectly citing something~\cite{mwe}.
1788
In case one wants to name the author: \textcite{mwe} shows a minimal \LaTeX{} example.
1789
\end{ltgexample}
1790
1791
Note that \texttt{\textbackslash textcite\{mwe\}} prints both the author and the reference to the bibliography entry.
1792
1793
Remember that you have to call \texttt{biber main-german} to generate the bibliography data for \texttt{lualatex}.
1794
You will need to run \texttt{lualatex} twice to ensure that the page numbers are updated correctly.
1795
1796
1797
In the bibliography, use \texttt{\textbackslash textsuperscript} for \enquote{st}, \enquote{nd}, \ldots:
1798
E.g., \enquote{The 2\textsuperscript{nd} conference on examples}.
1799
When you use \href{https://www.jabref.org}{JabRef}, you can use the clean up command to achieve that.
1800
See \url{https://help.jabref.org/en/CleanupEntries} for an overview of the cleanup functionality.
1801
1802
\section{Miscellaneous Examles}
1803
\label{ssec:example}
1804
1805
Referencetest: \Cref{ssec:example}, \cref{fig:Abbildung} und \cref{alg:example}.
1806
1807
\begin{ltgexample}
1808
Checkmark: \dingcheck.
1809
Crossmark: \dingcross.
1810
\end{ltgexample}
1811
1812
\begin{figure}
1813
\missingfigure{}
1814
\caption{Abbildung}
1815
\label{fig:Abbildung}
1816
\end{figure}
1817
1818
\begin{landscape}
1819
\begin{figure}
1820
\missingfigure{}
1821
\caption{Gedrehte Abbildung}
1822
\label{fig:AbbildungGedreht}
1823
\end{figure}
1824
\end{landscape}
1825
1826
\subsection{Algorithmen}
1827
1828
\begin{algorithm}
1829
\caption{$algo$}
1830
\label{alg:example}
1831
\begin{algorithmic}[1]
1832
\State $a \gets 0$
1833
\State State 2\label{alg1:state2}
1834
\end{algorithmic}
1835
\end{algorithm}
1836
1837
\begin{algorithm}
1838
\caption{Algorithmus 2}
1839
\label{alg:example2}
1840
\begin{algorithmic}[1]
1841
\State $a \gets 0$
1842
\State State 2\label{alg2:state2}
1843
\end{algorithmic}
1844
\end{algorithm}
1845
1846
\Cref{alg:example} hat bereits einen Algorithmus gezeigt.
1847
Test der Zeilenreferenzierung: Zeile~\ref{alg1:state2} (\cref{alg:example}) und Zeile~\ref{alg2:state2} (\cref{alg:example2}).
1848
1849
\subsection{Definitionen}
1850
\begin{definition}[Title]
1851
\label{def:def1}
1852
Definition Text
1853
\end{definition}
1854
1855
\Cref{def:def1} zeigt \ldots
1856
1857
\subsection{Aufzählungen}
1858
1859
\begin{enumerate}[label=\alph*)]
1860
\item a
1861
\item b
1862
\item c
1863
\item d
1864
\end{enumerate}
1865
1866
Equivalent to paralist's inparaenum:
1867
\begin{enumerate*}[label=\alph*)]
1868
\item a
1869
\item b
1870
\item c
1871
\item d
1872
\end{enumerate*}
1873
1874
\begin{description}
1875
\item[first] Erstens
1876
\item[second] Zweitens
1877
\item[third] Drittens
1878
\end{description}
1879
1880
\begin{description}
1881
\item[\texttt{first}] Erstens
1882
\item[\texttt{second}] Zweitens
1883
\item[\texttt{third}] Drittens
1884
\end{description}
1885
1886
%works only if package enumitem is loaded
1887
\begin{description}[font=\ttfamily]
1888
\item[first] Erstens
1889
\item[second] Zweitens
1890
\item[third] Drittens
1891
\end{description}
1892
1893
\begin{description}[style=unboxed]
1894
\item[first label with a long description text breaking over one line. Enabled by enumitem package] Erstens
1895
\item[second] Zweitens
1896
\item[third] Drittens
1897
\end{description}
1898
1899
\begin{Description}
1900
\item[first label with a long description text breaking over one line. Defined in template.tex] Erstens
1901
\item[second] Zweitens
1902
\item[third] Drittens
1903
\end{Description}
1904
1905
\begin{itemize}
1906
\item Erstens
1907
\item Zweitens
1908
\item Drittens
1909
\end{itemize}
1910
1911
Optionaler Parameter ändert den Marker, der vorangestellt ist.
1912
Siehe \url{http://www.weinelt.de/latex/item.html}.
1913
\begin{itemize}
1914
\item[A] Erstens
1915
\item[B] Zweitens
1916
\item[C] Drittens
1917
\end{itemize}
1918
1919
Falsche Benutzung des optionalen Parameters wie folgt:
1920
\begin{itemize}
1921
\item[first] Erstens
1922
\item[second] Zweitens
1923
\item[third] Drittens
1924
\end{itemize}
1925
Dabei ist zu beachten, dass es sich bei Einbindung von \texttt{enumitem} anders verhält als bei \texttt{paralist}.
1926
1927
\subsection{fquote}
1928
1929
\begin{fquote}[T.\ Informatiker]
1930
Bis nächsten Freitag ist das Programm fertig.
1931
\end{fquote}
1932
1933
\begin{gfquote}{T.\ Informatiker}
1934
Bis nächsten Freitag ist das Programm fertig.
1935
\end{gfquote}
1936
1937
%%% ===============================================================================
1938
\chapter{Zusammenfassung und Ausblick}\label{sec:conclusion}
1939
%%% ===============================================================================
1940
1941
Your conclusions are not just a factual summary of your work, but they position, interpret, and defend your findings against the state of the art that you discussed in \cref{sec:introduction:state-of-art}.
1942
You specifically outline which concrete findings or methodological contributions advance our knowledge towards the general objective you introduced in \cref{sec:introduction:topic}.
1943
Objectively discuss which parts you solved and in which parts you failed.
1944
1945
You should explicitly discuss limitations and shortcomings of your work and detail what kind of future studies are needed to overcome these limitations.
1946
Be specific in the sense that your arguments for future work should be based on concrete findings and insights you obtained in your report.
1947
1948
1949
%%% ===============================================================================
1950
%%% Bibliography
1951
%%% ===============================================================================
1952
1953
1954
\printbibliography
1955
1956
% Enfore empty line after bibliography
1957
\ \\
1958
%
1959
\noindent
1960
Alle Links wurden zuletzt am 29.03.2021 geprüft.
1961
1962
%%% ===============================================================================
1963
1964
%\IfDefined{printindex}{\printindex}
1965
%\IfDefined{printnomenclature}{\printnomenclature}
1966
1967
\clearpage
1968
\appendix
1969
% 'Anhang' ins Inhaltsverzeichnis
1970
%\phantomsection
1971
%\addcontentsline{toc}{chapter}{Anhang}
1972
\addcontentsline{toc}{part}{Anhang}
1973
1974
%%% ===============================================================================
1975
\chapter{My first appendix}\label{sec:appendix1}
1976
%%% ===============================================================================
1977
1978
\lipsum[1]
1979
1980
\pagestyle{empty}
1981
\renewcommand*{\chapterpagestyle}{empty}
1982
\clearpage
1983
\backmatter
1984
\thispagestyle{empty}
1985
1986
\vspace*{\fill}
1987
\pagestyle{empty}
1988
1989
{\normalsize
1990
\begin{center}\textbf{Eidesstattliche Erklärung}\end{center}
1991
\blindtext[1]
1992
\vspace*{1cm}\\
1993
Hamburg, den XX.XX.20XX
1994
\hspace*{\fill}\begin{tabular}{@{}l@{}}\hline
1995
\makebox[5cm]{Vorname Nachname}
1996
\end{tabular}
1997
\vspace*{3cm}
1998
1999
%TODO Dies ist optional, ggf. löschen!
2000
\begin{center}\textbf{Veröffentlichung}\end{center}
2001
\blindtext[1]
2002
\vspace*{1cm}\\
2003
Hamburg, den XX.XX.20XX
2004
\hspace*{\fill}\begin{tabular}{@{}l@{}}\hline
2005
\makebox[5cm]{Vorname Nachname}
2006
\end{tabular}
2007
}
2008
\vspace*{\fill}
2009
\end{document}
2010
2011