-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocument_setup.tex
More file actions
162 lines (137 loc) · 4.78 KB
/
document_setup.tex
File metadata and controls
162 lines (137 loc) · 4.78 KB
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
%% --------------
%% | Typography |
%% --------------
% T1 font encoding
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[babel,german=guillemets]{csquotes}
%% --------------
%% | Packages |
%% --------------
\usepackage[nooneline,bf]{caption} % Figure descriptions from left margin
\usepackage{times}
% numbers option provides compact numerical references in the text.
\usepackage[numbers]{natbib}
%% -------------------------------
%% | Graphics, Figures, Tables |
%% -------------------------------
\usepackage[dvips,pdftex]{graphicx}
\usepackage{epic}
\usepackage{eepic}
\usepackage{epsfig}
\usepackage{tikz}
\usepackage{pgfplots} % necessary
\usepackage{float} % damit Tabellen und Grafiken sich selbst ausrichten dürfen und nicht zwangshaft an einer Stelle stehen. verhindern kann man das mit [H]
\usepackage{subcaption} % necessary
\usepackage{transparent}
\usepackage{multicol}
\usepackage{multirow} % necessary
\usepackage{longtable}
\usepackage[export]{adjustbox} % necessary
\usepackage{rotating}
\usepackage{hhline}
\usepackage{booktabs}
%% --------------
%% | Listings |
%% --------------
\usepackage{algorithm} % Code-Listings
\usepackage{algpseudocode} % algorithmicx with layout
%\usepackage{algorithmic} % Code-Listings
% see http://www.ctan.org/tex-archive/macros/latex/contrib/algorithm2e/algorithm2e.pdf
% for more sophisticated algorithm listings
\usepackage{listings}
\definecolor{darkGray}{RGB}{135,135,134}
\definecolor{CodeGreen}{rgb}{0,0.6,0}
\definecolor{CodeMauve}{rgb}{0.58,0,0.82}
\lstset{captionpos=t, numbers=left, stepnumber=1, tabsize=2, basicstyle=\ttfamily\footnotesize, breaklines=true, xleftmargin=4em, frame=leftline, rulecolor=\color{darkGray}, framexleftmargin=2em, escapechar=\%, numberstyle=\color{darkGray},commentstyle=\color{CodeGreen}, keywordstyle=\color{blue}, stringstyle=\color{CodeMauve}}
% Make listings similar to algorithm environment
% \DeclareCaptionFormat{mylst}{\hrule#1#2#3}
% \captionsetup[lstlisting]{format=mylst,labelfont=bf,singlelinecheck=off,labelsep=space}
%% ------------------------------------------
%% | Glossary, Acronyms and Nomenclature |
%% ------------------------------------------
\usepackage[acronym,toc,nonumberlist]{glossaries}
\usepackage{nomencl}
\makeglossaries
%% --------------
%% | Margins |
%% --------------
\usepackage{vmargin} % Adjust margins in a simple way
\usepackage[absolute,overlay]{textpos}
%% --------------
%% | Math |
%% --------------
\usepackage{grffile}
\usepackage{amsmath}
\usepackage{amstext}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{spverbatim}
\usepackage{textcomp}
\usepackage{enumerate}
\usepackage[inline]{enumitem}
%% ------------------------------
%% | TODOs and Dummy Text |
%% ------------------------------
\iflanguage{ngerman}{
\usepackage[colorinlistoftodos,ngerman]{todonotes} %See: https://www.ra.informatik.tu-darmstadt.de/fileadmin/user_upload/Group_RA/eiwa/todonotes.pdf
}{
\usepackage[colorinlistoftodos]{todonotes} %See: https://www.ra.informatik.tu-darmstadt.de/fileadmin/user_upload/Group_RA/eiwa/todonotes.pdf
}
\usepackage{blindtext}
%% ---------------------------
%% | Line spacing |
%% ---------------------------
\usepackage{setspace}
\newcommand{\MSonehalfspacing}{%
\setstretch{1.44}% default
\ifcase \@ptsize \relax % 10pt
\setstretch {1.448}%
\or % 11pt
\setstretch {1.399}%
\or % 12pt
\setstretch {1.433}%
\fi
}
\newcommand{\MSdoublespacing}{%
\setstretch {1.92}% default
\ifcase \@ptsize \relax % 10pt
\setstretch {1.936}%
\or % 11pt
\setstretch {1.866}%
\or % 12pt
\setstretch {1.902}%
\fi
}
%% ---------------------------
%% | References in PDF |
%% ---------------------------
% Hyperref should be the last package loaded
\usepackage[hyphens]{url}
\usepackage[breaklinks,colorlinks=true,pdftex,pageanchor=false]{hyperref}
\Urlmuskip=0mu plus 10mu
%% -------------------------------
%% | Declarations |
%% -------------------------------
\pgfplotsset{compat=newest}
\pgfplotsset{plot coordinates/math parser=false}
%% the following commands are needed for some matlab2tikz features
\usetikzlibrary{plotmarks}
\usetikzlibrary{arrows.meta}
\usepgfplotslibrary{patchplots}
\graphicspath{{figures/}{../jpeg/png/svg/gif/pdf/}}
\setlength {\marginparwidth }{2cm}
\newcommand\setpdf{
\let\theauthor\@author
\let\thetitle\@title
\hypersetup{
plainpages=false,
linkcolor=black, % color of internal links (change box color with linkbordercolor)
citecolor=black, % color of links to bibliography
filecolor=black, % color of file links
urlcolor=black % color of external links
}
}
\newcommand\tab[1][1cm]{\hspace*{#1}}
\newcommand{\comment}[1]{}
%% --- End of Declarations ---