-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.tex
executable file
·234 lines (213 loc) · 9.27 KB
/
header.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
\documentclass[
10pt, % globale Schriftgröße
parskip=half-, % setzt Absatzabstand hoch
paper=a4, % Format
english,
appendixprefix=true % lädt Sprachpakete
]{scrartcl} % Dokumentenklasse
%\linespread{1.2} % Increase line spacing
% //////////////////// Pakete laden ////////////////////
\usepackage{amsmath} % MUSS vor fontspec geladen werden
\usepackage{mathtools} % modifiziert amsmath
\usepackage{amssymb} % mathematische symbole, für \ceckmarks
\usepackage{amsthm} % für proof
\usepackage{mathrsfs} % für \mathscr
\usepackage{latexsym}
\usepackage{marvosym} % für Lightning
%%% to allow custom headings
\usepackage{titlesec}
% to change titles font family
\usepackage{titling}
\usepackage{fontspec} % funktioniert nur mit den neueren Compilern z.B. XeLaTeX
\usepackage{microtype} % für bessere Worttrennung
%\usepackage[english]{babel} % Spracheinstellung
\usepackage{lmodern} % verändert verwendete Schriftart, damit sie weniger pixelig ist
\usepackage{verbatim}
\usepackage{listings} % Für Quellcode
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{sidecap}
\usepackage{tabularx} % für Tabellen mit gleicher Spaltenbreite und automatischen Umbrüchen
\usepackage{fullpage}
\usepackage{multirow} % für multirow in tabulars
\usepackage{rotate}
\usepackage[cmyk,table]{xcolor} % um Farben zu benutzen, kann mehr als das Paket color
\usepackage[ % Verlinkungen
colorlinks, % farbige Schrift, statt farbiger Rahmen
linktocpage, % verlinkt im Abb.Verzeichnis Seitenzahl statt Bildunterschrift
linkcolor=blue, % setzt Farbe der Links auf blau
urlcolor=blue
]{hyperref} % nur für digitale Anwendungen, url = "http://www.example.com"
\usepackage{url} % für Webadressen wie e-mail usw.: "\url{http://www.example.com}"
\urlstyle{sf}
\usepackage{enumerate} % für versch. Aufzählungezeichen wie z.B. a)
\usepackage{xspace} % folgt ein Leerzeichen nach einem \Befehl, wird es nicht verschluckt.
\usepackage{cancel} % für das Durchstreichen u.a. in Matheformeln mit \cancel
\usepackage{float} % zum Forcieren der Position von figure-Umgebungen
% Change font of document
\setsansfont{Source Sans Pro}
\setmainfont{Source Sans Pro}
% font declaration and title settings
\newfontfamily\headingfont[]{Source Sans Pro Light}
\titleformat{\chapter}[display]
{\huge\headingfont}{\chaptertitlename\ \thechapter}{26pt}{\Huge}
\titleformat*{\section}{\LARGE\headingfont}
\titleformat*{\subsection}{\Large\headingfont}
\renewcommand{\maketitlehooka}{\headingfont}
\newfontfamily\ttfamily[]{Roboto Mono}
% zum Zeichnen (u.a. von Graphen)
\usepackage{fp}
\usepackage{tikz}
\usetikzlibrary{tikzmark} % für \tikzmark{toRemember}
\usetikzlibrary{positioning} % verbesserte Positionierung der Knoten
\usetikzlibrary{automata} % für Automaten (GTI)
\usetikzlibrary{arrows}
\usetikzlibrary{shapes}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations.shapes}
\usetikzlibrary{decorations.text}
% //////////////////// Syntaxhighlighting ////////////////////
\lstloadlanguages{Python, Haskell, [LaTeX]TeX, Java}
\lstset{
basicstyle=\footnotesize\ttfamily, % \scriptsize the size of the fonts that are used for the code
backgroundcolor = \color{bgcolour}, % legt Farbe der Box fest
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
breaklines=true, % sets automatic line breaking
captionpos=t, % sets the caption-position to bottom, t for top
commentstyle=\color{codeblue}\ttfamily,% comment style
frame=single, % adds a frame around the code
keepspaces=true, % keeps spaces in text, useful for keeping indentation
% of code (possibly needs columns=flexible)
keywordstyle=\bfseries\ttfamily\color{codepurple},% keyword style
numbers=left, % where to put the line-numbers;
% possible values are (none, left, right)
numberstyle=\tiny\color{codegreen}, % the style that is used for the line-numbers
numbersep=5pt, % how far the line-numbers are from the code
stepnumber=1, % nummeriert nur jede i-te Zeile
showspaces=false, % show spaces everywhere adding particular underscores;
% it overrides 'showstringspaces'
showstringspaces=false, % underline spaces within strings only
showtabs=false, % show tabs within strings adding particular underscores
flexiblecolumns=false,
tabsize=1, % the step between two line-numbers. If 1: each line will be numbered
stringstyle=\color{orange}\ttfamily, % string literal style
numberblanklines=false, % leere Zeilen werden nicht mitnummeriert
xleftmargin=1.2em, % Abstand zum linken Layoutrand
xrightmargin=0.4em, % Abstand zum rechten Layoutrand
aboveskip=2ex,
}
\lstdefinestyle{py}{
language=Python,
}
\lstdefinestyle{hs}{
language=Haskell,
}
\lstdefinestyle{tex}{
language=[LaTeX]TeX,
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
texcsstyle=*\bfseries\color{blue},% hervorhebung der tex-Schlüsselwörter
morekeywords={*,$,\{,\},\[,\],lstinputlisting,includegraphics,
rowcolor,columncolor,listoffigures,lstlistoflistings,
subsection,subsubsection,textcolor,tableofcontents,colorbox,
fcolorbox,definecolor,cellcolor,url,linktocpage,subtitle,
subject,maketitle,usetikzlibrary,node,path,addbibresource,
printbibliography},% if you want to add more keywords to the set
numbers=none,
numbersep=0pt,
xleftmargin=0.4em,
}
\lstdefinestyle{java}{
language=Java,
extendedchars=true, % lets you use non-ASCII characters;
% for 8-bits encodings only, does not work with UTF-8
}
\lstdefinelanguage[x64]{Assembler} % add a "x64" dialect of Assembler
[x86masm]{Assembler} % based on the "x86masm" dialect
% with these extra keywords:
{morekeywords={CDQE,CQO,CMPSQ,CMPXCHG16B,JRCXZ,LODSQ,MOVSXD, %
POPFQ,PUSHFQ,SCASQ,STOSQ,IRETQ,RDTSCP,SWAPGS, %
rax,rdx,rcx,rbx,rsi,rdi,rsp,rbp, %
r8,r8d,r8w,r8b,r9,r9d,r9w,r9b}
} % for 8-bits encodings only, does not work with UTF-8
\lstdefinestyle{c}{
language=c,
extendedchars=true, % for 8-bits encodings only, does not work with UTF-8
}
% //////////////////// eigene Kommandos ////////////////////
\newcommand\FU{Freie Universität Berlin\xspace}% benötigt package xspace
\newcommand\gdw{g.\,d.\,w.\xspace}
\newcommand\oBdA{o.\,B.\,d.\,A.\xspace}
\newcommand{\Eu}{\texteuro}
\newcommand\N{\mathbb{N}\xspace}
\newcommand\Q{\mathbb{Q}\xspace}
\newcommand\R{\mathbb{R}\xspace}
\newcommand\Z{\mathbb{Z}\xspace}
\newcommand\ohneNull{\ensuremath{\backslash\lbrace 0\rbrace}}% \{0}
\let\dhALT\dh % Schreibt Befehl \dh in \dhALT um
\renewcommand\dh{d.\,h.\xspace} %renew überschreibt command \dh
\newcommand\Bolt{\;\text{\LARGE\raisebox{-0.3em}{\Lightning}\normalsize}\xspace}% Blitz
\newcommand\zz{\ensuremath{\raisebox{+0.25ex}{Z}% zu zeigen
\kern-0.4em\raisebox{-0.25ex}{Z}%
\;\xspace}}
\newcommand{\from}{\ensuremath{\colon}}
\newcommand{\floor}[1]{\lfloor{#1}\rfloor}
\newcommand{\ceil}[1]{\lceil{#1}\rceil}
\renewcommand{\L}{\ensuremath{\mathcal{L}}\xspace}
\renewcommand{\P}{\ensuremath{\mathcal{P}}\xspace}
\newcommand{\NL}{\ensuremath{\mathcal{N}\kern-0.2em\mathcal{L}}\xspace}
\newcommand{\NP}{\ensuremath{\mathcal{NP}}\xspace}
% //////////////////// Mathefunktionen ////////////////////
\DeclareMathOperator{\Landau}{\mathcal{O}}
\DeclareMathOperator{\True}{True}
\DeclareMathOperator{\False}{False}
% //////////////////// eigene Theoreme ////////////////////
\newtheorem{theorem}{Satz}
\newtheorem{corollary}[theorem]{Folgerung}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{observation}[theorem]{Beobachtung}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{Literatur}[theorem]{Literatur}
% konfiguriert proof
\makeatletter
\newenvironment{Proof}[1][\proofname]{\par
\pushQED{\qed}%
\normalfont \topsep6\p@\@plus6\p@\relax
\trivlist
\item[\hskip\labelsep
% \itshape
\bfseries
#1\@addpunct{.}]\ignorespaces
}{%
\popQED\endtrivlist\@endpefalse
}
\makeatother
% //////////////////// eigene Farben ////////////////////
\let\definecolor=\xdefinecolor
\definecolor{FUgreen}{RGB}{153,204,0}
\definecolor{FUblue}{RGB}{0,51,102}
\definecolor{middlegray}{rgb}{0.5,0.5,0.5}
\definecolor{lightgray}{rgb}{0.8,0.8,0.8}
\definecolor{orange}{rgb}{0.8,0.3,0.3}
\definecolor{azur}{rgb}{0,0.7,1}
\definecolor{yac}{rgb}{0.6,0.6,0.1}
\definecolor{Pink}{rgb}{1,0,0.6}
\definecolor{bgcolour}{rgb}{0.97,0.97,0.97}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.35,0.35,0.35}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{codeblue}{rgb}{0.4,0.5,1}
% //////////////////// eigene Settings ////////////////////
\textheight = 230mm % Höhe des Satzspiegels / Layouts
\footskip = 10ex % Abstand zw. Fußzeile und Grundlinie letzter Textzeile
\parindent 0pt % verhindert Einrückung der 1. Zeile eines Absatzes
\setkomafont{sectioning}{\rmfamily\bfseries}% setzt Ü-Schriften in Serifen, {disposition}
\usepackage{booktabs}
\usepackage[babel, german=quotes]{csquotes} % einfache Handhabung von quotations
\usepackage[backend=biber]{biblatex} %biblatex mit biber laden
\ExecuteBibliographyOptions{
sorting=nyt, %Sortierung Autor, Titel, Jahr
bibwarn=true, %Probleme mit den Daten, die Backend betreffen anzeigen
isbn=false, %keine isbn anzeigen
url=false %keine url anzeigen
}