-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsfliptex05.tex
348 lines (249 loc) · 10.6 KB
/
sfliptex05.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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
% Author: Philipp Moers <[email protected]>
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman, english]{babel}
% document: \selectlanguage{ngerman}
\usepackage{hyphenat}
\usepackage{xifthen}
% Häkchen mit \checked
\usepackage{wasysym}
% URLs
% \usepackage[hyphens]{url}
% hyperref loads url internally!
\PassOptionsToPackage{hyphens}{url}
\usepackage{hyperref}
% Uhrzeit mit \currenttime
\usepackage{datetime}
\newcommand{\todo}[1] {\textcolor{red}{TODO: #1}}
\usepackage{moreverb}
%%%%%%%%%%%%%%% Font %%%%%%%%%%%%%%%
% \renewcommand*{\familydefault}{\rmdefault}
\renewcommand*{\familydefault}{\sfdefault}
% \renewcommand*{\familydefault}{\ttdefault}
% Achtung, eigener Font im Mathematik Abschnitt!
%%%%%%%%%%%%%%% Unicode characters %%%%%%%%%%%%%%%
\usepackage{newunicodechar}
\usepackage{marvosym}
% \newunicodechar{∈}{\in}
\newunicodechar{∈}{$\in$}
\newunicodechar{€}{$\EURdig$}
%%%%%%%%%%%%%%% Farben %%%%%%%%%%%%%%%
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\definecolor{grau}{gray}{.90}
% \definecolor{orange}{RGB}{255,127,0}
\definecolor{myred}{HTML}{E78356}
\definecolor{myorange}{HTML}{FCD078}
\definecolor{mylightblue}{HTML}{A7CED1}
\definecolor{mylightgreen}{HTML}{9DE66E}
\definecolor{mylightpurple}{HTML}{FF9BF6}
\definecolor{mark}{HTML}{FFDDCC}
%%%%%%%%%%%%%%% Tabellen %%%%%%%%%%%%%%%
\usepackage{tabularx}
\usepackage{colortbl}
\usepackage{multirow}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
%%%%%%%%%%%%%%% Layout etc. %%%%%%%%%%%%%%%
% \usepackage{enumerate}
% \usepackage{paralist} % compactenum
%%% IN JEDEM ÜBUNGSBLATT %%%
% \usepackage{sectsty}
% % \allsectionsfont{\large\underline} % überschriftendesign
% \sectionfont{\large\underline} % überschriftendesign
% \subsectionfont{\normalsize}
\usepackage{caption}
\captionsetup{margin=10pt,font=small,labelfont=bf}
\usepackage{courier}
\usepackage{pgf} \pgfmathsetmacro{\dotradius}{0.05}
\usepackage[a4paper]{geometry}
\usepackage{rotating}
\usepackage{setspace} \doublespacing
\renewcommand{\baselinestretch}{1.25}\normalsize
\renewcommand{\arraystretch}{1.0}
%%%%%%%%%%%%%%% Übungsblatt Header %%%%%%%%%%%%%%%
% \newcommand{\header}[3]{\setlength{\parindent}{0pt}#1\hfill\today\\[12pt]\begin{huge}\textbf{#2}#3\end{huge}\\\rule{1\textwidth}{0.3pt}\\[9pt]}
\newcommand{\header}[3]
{\setlength{\parindent}{0pt}
\hfill\today\\
#1\\[18pt]
\begin{large}\textbf{#2}\end{large}\\[9pt]
\begin{huge}\textbf{#3}\end{huge}\\
\rule{1\textwidth}{0.3pt}\\[6pt]}
%%%%%%%%%%%%%%% Plots %%%%%%%%%%%%%%%
% \usepackage{gnuplottex}
%%%%%%%%%%%%%%% Zeichnungen %%%%%%%%%%%%%%%
\usepackage{tikz}
\usetikzlibrary{decorations.markings,arrows}
\usetikzlibrary{shapes,positioning,shadows,arrows,automata}
\tikzstyle{mystate} = [state, minimum size = 1.5cm, node distance = 2.5cm]
\tikzstyle{arrowlink} = [decoration={markings,mark=at position 0.1 with \arrow{triangle 60}}, postaction=decorate, color=black]
\tikzstyle{nippel} = [circle, fill = myorange, draw, font=\sffamily\bfseries, minimum size=1.5cm]
\tikzstyle{bucket} = [rectangle, draw, font=\sffamily\bfseries, auto, thick, node distance = 1cm, minimum size=1cm]
\tikzstyle{decision} = [diamond, draw, fill=mark, text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=mark, text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{bplus}=[rectangle split, rectangle split horizontal,rectangle split ignore empty parts,draw]
% entity relationship diagram
% \usepackage{tikz-er2}
% \tikzstyle{every entity} = [top color=white, bottom color=myorange!30, draw=myorange!50!black!100, drop shadow]
% % \tikzstyle{every weak entity} = [drop shadow={shadow xshift=.7ex, shadow yshift=-.7ex}]
% \tikzstyle{every attribute} = [top color=white, bottom color=mylightblue!20, draw=mylightblue, node distance=1cm, drop shadow]
% \tikzstyle{every relationship} = [top color=white, bottom color=myred!20, draw=myred!50!black!100, drop shadow]
% % \tikzstyle{every isa} = [top color=white, bottom color=green!20, draw=green!50!black!100, drop shadow]
%%%%%%%%%%%%%%% Programmcode %%%%%%%%%%%%%%%
\usepackage{listings}
% \usepackage{listingsutf8} % kannste vergessen, chars müssen in ein byte passen
% replace special characters
\lstset{
literate={ö}{{\"o}}1
{Ö}{{\"O}}1
{ä}{{\"a}}1
{Ä}{{\"A}}1
{ü}{{\"u}}1
{Ü}{{\"U}}1
{ß}{{\ss}}1
}
\usepackage{framed}
\colorlet{shadecolor}{grau}
\newcommand{\codeline}[1] {\colorbox{grau}{\texttt{#1}}}
% \newcommand{\codebox}[1] {\begin{shaded}\texttt{#1}\end{shaded}}
% \newcommand{\codebox}[1] {\begin{lstlisting}{\texttt{#1}}\end{lstlisting}}
\lstnewenvironment{codebox}[1][] {\lstset{ language = #1,
backgroundcolor = \color{grau},
% basicstyle = \ttfamily,
basicstyle = \scriptsize,
% basicstyle = \tiny,
numbers = left, % none
numberstyle = \tiny,
breaklines = true,
breakatwhitespace = true,
escapeinside = {@}{@},
frame = single,
tabsize = 2
}}{}
\newcommand{\codefile}[3] {\lstinputlisting[ language = #1,
% extendedchars = true,
% inputencoding = utf8/utf8,
backgroundcolor = \color{grau},
basicstyle = \ttfamily,
numbers = left, % none
numberstyle = \tiny,
breaklines = true,
breakatwhitespace = true,
frame = single,
tabsize = 2,
% firstline=42
% lastline=50
#2]
{#3}}
% JAVASCRIPT SUPPORT
\lstdefinelanguage{JavaScript}{
keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break},
keywordstyle=\color{blue}\bfseries,
ndkeywords={class, export, boolean, throw, implements, import, this},
ndkeywordstyle=\color{darkgray}\bfseries,
identifierstyle=\color{black},
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
commentstyle=\color{purple}\ttfamily,
stringstyle=\color{red}\ttfamily,
morestring=[b]',
morestring=[b]"
}
\lstset{
language=JavaScript,
backgroundcolor=\color{lightgray},
extendedchars=true,
basicstyle=\footnotesize\ttfamily,
showstringspaces=false,
showspaces=false,
numbers=left,
numberstyle=\footnotesize,
numbersep=9pt,
tabsize=2,
breaklines=true,
showtabs=false,
captionpos=b
}
%%%%%%%%%%%%%%% Mathematik etc. %%%%%%%%%%%%%%%
% \usepackage{MnSymbol}
% conflict with wasysym package
\let\iint\relax
\let\iiint\relax
% \usepackage{amsmath} % not needed with mathtools
\usepackage{amssymb}
% \usepackage{complexity} % not compatible with something
\usepackage{mathtools}
\usepackage{mathcomp}
% cool mathmode font
\usepackage{eulervm}
% ... with global font
\usepackage{mathpazo}
% --- Einheiten: ---
% (Syntax: \SI{wert}{einheit})
% \usepackage{siunitx}
% \sisetup
% {
% alsoload=binary, % Binäre Einheiten (\bit, \byte)
% % alsoload=synchem, % Chemische Einheiten (\mmHg, \molar, \torr, ...)
% % alsoload=astro, % Astronomische Einheiten (\parsec, \lightyear)
% % alsoload=hep, % Einheiten der Hochenergie-Physik (\clight, \eVperc)
% % alsoload=geophys, % Einheiten der Geophysik (\gon)
% % alsoload=chemeng % Einheiten der chem. Verfahrenstechnik (\gmol, \kgmol, ...)
% unitsep=thin, valuesep=space
% }
% \newcommand{\lor} {\ensuremath{\vee}}
% \newcommand{\land} {\ensuremath{\wedge}}
\newcommand{\lxor} {\ensuremath{\oplus}}
\newcommand{\setunion} {\ensuremath{\cup}}
\newcommand{\setintersection} {\ensuremath{\cap}}
\newcommand{\R} {\ensuremath{\mathbb{R}}}
\newcommand{\N} {\ensuremath{\mathbb{N}}}
\newcommand{\Z} {\ensuremath{\mathbb{Z}}}
\newcommand{\Q} {\ensuremath{\mathbb{Q}}}
\newcommand{\bigO} {\ensuremath{\mathcal{O}}} % big-O notation/symbol
\newcommand{\ComplexityClassP} {\ensuremath{P}} % complexity class
\newcommand{\ComplexityClassE} {\ensuremath{E}} % complexity class
\newcommand{\ComplexityClassEXP} {\ensuremath{EXP}} % complexity class
\newcommand{\ComplexityClassNP} {\ensuremath{NP}} % complexity class
\newcommand{\ComplexityClassNE} {\ensuremath{NE}} % complexity class
\newcommand{\ComplexityClassNEXP} {\ensuremath{NEXP}} % complexity class
\newcommand{\ComplexityClassFP} {\ensuremath{FP}} % complexity class
\newcommand{\ComplexityClassPP} {\ensuremath{PP}} % complexity class
\newcommand{\ComplexityClassR} {\ensuremath{R}} % complexity class
\newcommand{\ComplexityClassRP} {\ensuremath{RP}} % complexity class
\newcommand{\ComplexityClassBPP} {\ensuremath{BPP}} % complexity class
% symbol inside cup
% http://tex.stackexchange.com/questions/125438/place-symbol-inside-of-bigsqcup
\makeatletter % \moverlay by D. Arsenau
\def\moverlay{\mathpalette\mov@rlay}
\def\mov@rlay#1#2{\leavevmode\vtop{%
\baselineskip\z@skip \lineskiplimit-\maxdimen
\ialign{\hfil$\m@th#1##$\hfil\cr#2\crcr}}}
\newcommand{\charfusion}[3][\mathord]{
#1{\ifx#1\mathop\vphantom{#2}\fi
\mathpalette\mov@rlay{#2\cr#3}
}
\ifx#1\mathop\expandafter\displaylimits\fi}
\makeatother
\newcommand{\bighsqcup}{\charfusion[\mathop]{\bigsqcup}{\innerh}}
\newcommand{\innerh}{\mathchoice
{h}
{\scriptstyle h}
{\scriptscriptstyle h}
{\scriptscriptstyle h}
}
\newcommand{\bigxsqcup}{\charfusion[\mathop]{\bigsqcup}{\innerx}}
\newcommand{\innerx}{\mathchoice
{x}
{\scriptstyle x}
{\scriptscriptstyle x}
{\scriptscriptstyle x}
}
\newcommand{\bigAoverlinesqcup}{\charfusion[\mathop]{\bigsqcup}{\innerAoverline}}
\newcommand{\innerAoverline}{\mathchoice
{\overline{A}}
{\scriptstyle \overline{A}}
{\scriptscriptstyle \overline{A}}
{\scriptscriptstyle \overline{A}}
}