-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.tex
202 lines (175 loc) · 5.07 KB
/
settings.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
\PassOptionsToPackage{table,svgnames,dvipsnames}{xcolor}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[sc]{mathpazo}
\usepackage[american]{babel}
\usepackage[autostyle]{csquotes}
\usepackage[%
backend=biber,
url=false,
style=alphabetic,
maxnames=4,
minnames=3,
maxbibnames=99,
firstinits,
uniquename=init]{biblatex} % adapt citation style
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\usepackage{scrhack} % necessary for listings package
\usepackage{listings}
\usepackage{accsupp}
\usepackage{lstautogobble}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usetikzlibrary{shapes.misc}
\tikzset{cross/.style={cross out, draw=black, minimum size=2*(#1-\pgflinewidth), inner sep=0pt, outer sep=0pt},
%default radius will be 1pt.
cross/.default={1pt}}
\usepackage{booktabs}
\usepackage[final]{microtype}
\usepackage[font=small]{caption} % smaller captions
\usepackage[hidelinks]{hyperref} % hidelinks removes colored boxes around references and links
\usepackage[super]{nth}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{breqn}
\usepackage{caption}
\usepackage{subcaption}
%\usepackage{showframe} % use this for debugging the layout
% adjust default page margins
\usepackage[bottom=4.1cm, top=4.1cm]{geometry}
% package for thousand seperation
\usepackage[group-separator={,}]{siunitx}
\bibliography{bibliography}
\setkomafont{disposition}{\normalfont\bfseries} % use serif font for headings
\linespread{1.1} % adjust line spread for mathpazo font
% Settings for pgfplots
\pgfplotsset{compat=1.9} % adjust to your installed version
\pgfplotsset{
% For available color names, see http://www.latextemplates.com/svgnames-colors
cycle list={CornflowerBlue\\Dandelion\\ForestGreen\\BrickRed\\},
}
% Settings for lstlistings
\usepackage{inconsolata}
\usepackage{color}
\definecolor{pgrey}{rgb}{0.46,0.45,0.48}
\lstset{%
basicstyle=\footnotesize\ttfamily,
columns=fullflexible,
autogobble,
keywordstyle=\bfseries\color{MediumBlue},
stringstyle=\color{DarkRed},
commentstyle=\color{DarkGreen}\ttfamily,
backgroundcolor=\color{gray!7},%
numbers=left, numberstyle=\tiny,
numberstyle=\tiny,
tabsize=2,
breaklines=true,
showtabs=false,
captionpos=b
stepnumber=1,
numbersep=9pt,
frame=single,
resetmargins=true
}
\lstdefinelanguage{PythonEx}{
language = Python,
morekeywords = {with, as},
moredelim=[is][\textcolor{pgrey}]{\%\%}{\%\%}
}
% Completely prevent breaking of footnotes over multiple pages
\interfootnotelinepenalty=10000
\clubpenalty = 10000
\widowpenalty = 10000
\displaywidowpenalty = 10000
% Math commands
\DeclareMathAlphabet\mathbfcal{OMS}{cmsy}{b}{n}
\newcommand\floor[1]{\lfloor#1\rfloor}
\newcommand\ceil[1]{\lceil#1\rceil}
\makeatletter
\newcommand{\Spvek}[2][r]{%
\gdef\@VORNE{1}
\left(\hskip-\arraycolsep%
\begin{array}{#1}\vekSp@lten{#2}\end{array}%
\hskip-\arraycolsep\right)}
\def\vekSp@lten#1{\xvekSp@lten#1;vekL@stLine;}
\def\vekL@stLine{vekL@stLine}
\def\xvekSp@lten#1;{\def\temp{#1}%
\ifx\temp\vekL@stLine
\else
\ifnum\@VORNE=1\gdef\@VORNE{0}
\else\@arraycr\fi%
#1%
\expandafter\xvekSp@lten
\fi}
\makeatother
% custom spacing
\setlength{\parindent}{0em}
\setlength{\parskip}{0.5em}
% Glossary
\usepackage[acronym,automake, nonumberlist, toc]{glossaries}
% custom acronym table style:
\newglossarystyle{myacro}
{
\renewenvironment{theglossary}{}{}
\renewcommand*{\glossaryheader}{}
\renewcommand*{\glsgroupheading}[1]{}
\renewcommand*{\glsgroupskip}{}
\renewcommand*{\glossaryentryfield}[5]
{
\begin{minipage}[t]{0.2\textwidth}
\glstarget{##1}{##2}~\dotfill
\end{minipage}
\begin{minipage}[t]{0.7\textwidth}
~##3
\end{minipage}
\vskip -0.16cm % Abstand zwischen den Zeilen
}
\renewcommand*{\glossarysubentryfield}[6]{%
\glossaryentryfield{##2}{##3}{##4}{##5}{##6}}%
}
% custom symbol table style:
\usepackage{multicol}
\newglossarystyle{mysymbol}
{
\renewenvironment{theglossary}
{\begin{multicols}{2}\noindent}{\end{multicols}}
\renewcommand*{\glossaryheader}{}
\renewcommand*{\glsgroupheading}[1]{}
\renewcommand*{\glsgroupskip}{}
\renewcommand*{\glossaryentryfield}[3]
{\noindent
\begin{minipage}[t]{0.94\columnwidth}
\begin{minipage}[t]{0.2\columnwidth}
\glstarget{##1}{##2}
\end{minipage}
\begin{minipage}[t]{0.78\columnwidth}
##3
\end{minipage}
\end{minipage}
\vskip 0.01em % Abstand zwischen den Zeilen
}
\renewcommand*{\glossarysubentryfield}[3]{%
\glossaryentryfield{##2}{##3}}%
}
% create symbol table
\newglossary[slg]{symbolslist}{syi}{syg}{List of Symbols}
% remove auto-dot at the end of every description
\renewcommand*{\glspostdescription}{}
% Empty pages for cleardoublepage:
% Start new chapter always on RHS page, so put in an additional
% blank page only when needed.
\usepackage{emptypage}
\newcommand{\skippage}{\newpage{\thispagestyle{empty}\mbox{}}}
% rotate figures
\usepackage{rotating}
% table packages
\usepackage{multirow}
% global pgf plot settings:
\pgfplotsset{
every tick label/.append style={font=\tiny},
label style = {font=\small},
legend style = {font=\footnotesize}
}