-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPraeambel.tex
216 lines (171 loc) · 4.94 KB
/
Praeambel.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
%!TEX root = Paper.tex
\documentclass[
pdftex,
fontsize=12pt,
paper=a4,
halfparskip,
twoside=false,
numbers=noenddot, % No dot at the end of heading
bibliography=totoc, % Bibliography into table of content
listof=totoc, % list of figures, tables and list into table of content
titlepage=true, % Separate titlepage, style with titlepage environment
headsepline=true, % Head-line separator active
footsepline=true, % Foot-line separator active
abstracton % Abstract active
]{scrreprt}
% Character encoding is utf-8, umlauts can be entered directly
\usepackage[utf8]{inputenc}
% Character encoding output is T1 important for umlauts
\usepackage[T1]{fontenc}
% Defines the font
\usepackage{lmodern}
% Only one space in front of sentences (necessary when writing in English)
\frenchspacing
% Remove space above chapter
\renewcommand*{\chapterheadstartvskip}{\vspace*{-\topskip}}
% Disables the new count in every chapter
\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\counterwithout{footnote}{chapter}
% Formats list of tables and figures as required
\usepackage[titles]{tocloft}
\renewcommand{\cftfigpresnum}{Fig. }
\renewcommand{\cfttabpresnum}{Tab. }
\renewcommand{\cftfigaftersnum}{:}
\renewcommand{\cfttabaftersnum}{:}
\setlength{\cftfignumwidth}{2.3cm}
\setlength{\cfttabnumwidth}{2.3cm}
\setlength{\cftfigindent}{0cm}
\setlength{\cfttabindent}{0cm}
\setcounter{tocdepth}{2}
% Easier working with captions of figures and tables
\usepackage[justification=centering, tableposition=top]{caption}
\usepackage{subcaption}
\captionsetup{font={small}}
% \addto\captionsngerman{
% \renewcommand{\figurename}{Fig.}
% \renewcommand{\tablename}{Tab.}
% }
% Use Colours
\usepackage[table,usenames,dvipsnames]{xcolor}
% Load all constants (including colours)
\input{Constants}
% Wrap figures with text
\usepackage{wrapfig}
% Force position of figures
\usepackage{float}
% Use math environments
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{relsize}
% Use comma as delimiter
\usepackage{icomma}
% Use to-dos
\usepackage{todonotes}
% Use square brackets for footnotes (both in text and footer)
\usepackage{scrextend}
\deffootnotemark{\textsuperscript{[\thefootnotemark]}}
\deffootnote{2em}{1.6em}{[\thefootnotemark]\enskip}
% Choose quotes depending on language
\usepackage[babel=true, german=quotes]{csquotes}
% Settings for Source code listings
\usepackage{listings}
\renewcommand{\lstlistlistingname}{List of Listings}
\renewcommand{\lstlistingname}{Listing}
\lstset{
backgroundcolor=\color{base3},
captionpos=b,
escapechar=!,
extendedchars=true,
numberfirstline=false,
xleftmargin=4ex,
numberbychapter=false
basicstyle=\color{base00}\scriptsize\ttfamily,
showstringspaces=false,
showspaces=false,
numbers=left,
numberstyle=\tiny,
numbersep=10pt,
breaklines=true,
showtabs=false,
captionpos=b,
frame=l,
framerule=4pt,
rulecolor=\color{base2},
aboveskip = 1em,
belowskip = 0em,
}
% Use BibTeX / LaTeX Symbol
\usepackage{texnames}
% Other (font) symbols
\usepackage{pifont}
% Everything concerning tables and special cells
\usepackage{slashbox}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{hhline}
% Use hyphenation in true type
\usepackage[htt]{hyphenat}
% More settings in enumerations
\usepackage{enumitem}
% List of abbreviations
\usepackage[printonlyused]{acronym}
% Use pdf pages directly (as figures for example)
\usepackage{pdfpages}
% Adapt header and footer
\usepackage[plainfootsepline, plainheadsepline, headsepline, footsepline, automark]{scrpage2}
\setheadsepline{0.1pt}
\setfootsepline{0.1pt}
% delete and activate header and footer to apply settings
\clearscrheadfoot
\pagestyle{scrheadings}
% Left header
\ihead[\mytitle]{\mytitle}
% Left footer
\ifoot[\myauthor]{\myauthor}
% Right footer
\ofoot[\pagemark]{\pagemark}
% Use figures from directory
\usepackage{graphicx}
\graphicspath{{Figures/}}
% Define margins
\usepackage[left=3.5cm, right=2.5cm, top=2.5cm, bottom=3cm]{geometry}
% Linespacing
\usepackage{setspace}
\onehalfspacing
% Double line spacing for print-out proof-reading
% \doublespacing
% Bibliography
\usepackage[backend=bibtex, maxbibnames=4, style=alphabetic]{biblatex}
\bibliography{Literature/Literature.bib, Literature/rfc.bib}
% Break URLs in bibliography
\setcounter{biburlnumpenalty}{100}
\setcounter{biburlucpenalty}{100}
\setcounter{biburllcpenalty}{100}
% Glossary
\usepackage[toc,nonumberlist]{glossaries}
% Use title as reference
\usepackage{titleref}
% Use currencies
\usepackage{textcomp}
% Settings for pdf and hyper-links inside
\usepackage[breaklinks]{hyperref}
\hypersetup{
pdfauthor = {\myauthor},
pdftitle = {\mytitle},
pdfsubject = {\type},
pdfkeywords = {},
pdfstartview = {Fit},
colorlinks = {true},
breaklinks = {true},
bookmarksopen = {true},
linkcolor = {black},
citecolor = {black},
urlcolor = {black}
}
% Settings for penalties when breaking words
\clubpenalty = 10000
\widowpenalty = 10000
\displaywidowpenalty = 10000