diff options
Diffstat (limited to 'preamble.tex')
-rw-r--r-- | preamble.tex | 97 |
1 files changed, 93 insertions, 4 deletions
diff --git a/preamble.tex b/preamble.tex index f0d802c..183313b 100644 --- a/preamble.tex +++ b/preamble.tex | |||
@@ -6,9 +6,24 @@ | |||
6 | \usepackage{bussproofs} | 6 | \usepackage{bussproofs} |
7 | \usepackage{tikz} | 7 | \usepackage{tikz} |
8 | \usepackage{tikz-qtree,tikz-qtree-compat,circuitikz} | 8 | \usepackage{tikz-qtree,tikz-qtree-compat,circuitikz} |
9 | \usepackage{translations} | ||
10 | \usepackage{float} | ||
11 | \usepackage{csquotes} | ||
12 | \usepackage{stmaryrd} | ||
13 | \usepackage{cancel} | ||
14 | \usepackage{array} | ||
9 | 15 | ||
10 | \renewcommand{\algorithmicrequire}{\textbf{Input:}} | 16 | \usetikzlibrary{positioning} |
11 | \renewcommand{\algorithmicensure}{\textbf{Output:}} | 17 | |
18 | \newcolumntype{L}{>{$}l<{$}} | ||
19 | \newcolumntype{C}{>{$}c<{$}} | ||
20 | |||
21 | \DeclareTranslation{English}{float-algorithm}{Algorithm} | ||
22 | \DeclareTranslation{German}{float-algorithm}{Algorithmus} | ||
23 | |||
24 | \floatstyle{ruled} | ||
25 | \newfloat{algorithm}{tbp}{lop} | ||
26 | \floatname{algorithm}{\GetTranslation{float-algorithm}} | ||
12 | 27 | ||
13 | \lstset{ | 28 | \lstset{ |
14 | frame=tb, | 29 | frame=tb, |
@@ -30,5 +45,79 @@ keywordstyle= | |||
30 | \providecommand{\limplies}{\ensuremath{\Rightarrow}} | 45 | \providecommand{\limplies}{\ensuremath{\Rightarrow}} |
31 | \providecommand{\seq}{\ensuremath{\Longrightarrow}} | 46 | \providecommand{\seq}{\ensuremath{\Longrightarrow}} |
32 | 47 | ||
33 | \theoremstyle{definition} | 48 | \DeclareTranslation{English}{thm-definition}{Definition} |
34 | \newtheorem*{def*}{Definition} | 49 | \DeclareTranslation{German}{thm-definition}{Definition} |
50 | \DeclareTranslation{English}{thm-theorem}{Theorem} | ||
51 | \DeclareTranslation{German}{thm-theorem}{Satz} | ||
52 | \DeclareTranslation{English}{thm-example}{Example} | ||
53 | \DeclareTranslation{German}{thm-example}{Beispiel} | ||
54 | \DeclareTranslation{English}{thm-remark}{Remark} | ||
55 | \DeclareTranslation{German}{thm-remark}{Anmerkung} | ||
56 | \DeclareTranslation{English}{thm-lemma}{Lemma} | ||
57 | \DeclareTranslation{German}{thm-lemma}{Lemma} | ||
58 | \DeclareTranslation{English}{thm-proofsketch}{Proof Sketch} | ||
59 | \DeclareTranslation{German}{thm-proofsketch}{Beweisskizze} | ||
60 | \DeclareTranslation{English}{thm-show}{To show} | ||
61 | \DeclareTranslation{German}{thm-show}{Zu Zeigen} | ||
62 | |||
63 | \makeatletter | ||
64 | \newtheoremstyle{definition.indented} | ||
65 | {3pt}% space before | ||
66 | {3pt}% space after | ||
67 | {\addtolength{\@totalleftmargin}{2.5em} | ||
68 | \addtolength{\linewidth}{-2.5em} | ||
69 | \parshape 1 2.5em \linewidth}% body font | ||
70 | {}% indent | ||
71 | {\bfseries}% header font | ||
72 | {.}% punctuation | ||
73 | {.5em}% after theorem header | ||
74 | {}% header specification (empty for default) | ||
75 | \newtheoremstyle{plain.indented} | ||
76 | {3pt}% space before | ||
77 | {3pt}% space after | ||
78 | {\addtolength{\@totalleftmargin}{2.5em} | ||
79 | \addtolength{\linewidth}{-2.5em} | ||
80 | \parshape 1 2.5em \linewidth | ||
81 | \itshape}% body font | ||
82 | {}% indent | ||
83 | {\bfseries}% header font | ||
84 | {.}% punctuation | ||
85 | {.5em}% after theorem header | ||
86 | {}% header specification (empty for default) | ||
87 | \newtheoremstyle{remark.indented} | ||
88 | {3pt}% space before | ||
89 | {3pt}% space after | ||
90 | {\addtolength{\@totalleftmargin}{2.5em} | ||
91 | \addtolength{\linewidth}{-2.5em} | ||
92 | \parshape 1 2.5em \linewidth}% body font | ||
93 | {}% indent | ||
94 | {\itshape}% header font | ||
95 | {.}% punctuation | ||
96 | {.5em}% after theorem header | ||
97 | {}% header specification (empty for default) | ||
98 | \makeatother | ||
99 | |||
100 | \theoremstyle{definition.indented} | ||
101 | \newtheorem{defn}{\GetTranslation{thm-definition}} | ||
102 | \newtheorem*{defn*}{\GetTranslation{thm-definition}} | ||
103 | |||
104 | \theoremstyle{plain.indented} | ||
105 | \newtheorem{thm}{\GetTranslation{thm-theorem}} | ||
106 | \newtheorem*{thm*}{\GetTranslation{thm-theorem}} | ||
107 | \newtheorem{lem}[thm]{\GetTranslation{thm-lemma}} | ||
108 | \newtheorem*{lem*}{\GetTranslation{thm-lemma}} | ||
109 | |||
110 | \theoremstyle{remark.indented} | ||
111 | \newtheorem{rem}{\GetTranslation{thm-remark}} | ||
112 | \newtheorem*{rem*}{\GetTranslation{thm-remark}} | ||
113 | \newtheorem{eg}[rem]{\GetTranslation{thm-example}} | ||
114 | \newtheorem*{eg*}{\GetTranslation{thm-example}} | ||
115 | \newtheorem*{sketch}{\GetTranslation{thm-proofsketch}} | ||
116 | \newtheorem*{tshow}{\GetTranslation{thm-show}} | ||
117 | |||
118 | \newcommand\restr[2]{{% we make the whole thing an ordinary symbol | ||
119 | \left.\kern-\nulldelimiterspace % automatically resize the bar with \right | ||
120 | #1 % the function | ||
121 | \vphantom{\big|} % pretend it's a little taller at normal size | ||
122 | \right|_{#2} % this is the delimiter | ||
123 | }} | ||