Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132928 views
License: OTHER
1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
% make the index link to the correct part of the page %
3
% http://tex.stackexchange.com/q/74493/5645 %
4
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5
\newcounter{indexanchor}
6
\newcommand*{\xindex}[1]{%
7
\stepcounter{indexanchor}% make anchor unique
8
\def\theindexterm{#1}%
9
\edef\doindexentry{\noexpand\index
10
{\expandonce\theindexterm|indexanchor{index-\theindexanchor}}}%
11
\raisebox{\baselineskip}{\hypertarget{index-\theindexanchor}%
12
{\doindexentry}}%
13
}
14
\newcommand*{\indexanchor}[2]{\hyperlink{#1}{#2}}
15
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16
% Aufgaben-Environment %
17
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
18
\newcounter{aufgabe}
19
\newenvironment{aufgabe}[1][]{\refstepcounter{aufgabe}%
20
\ifthenelse{\isempty{#1}}%
21
{\subsection*{Aufgabe~\theaufgabe}}% if #1 is empty
22
{\subsection*{Aufgabe~\theaufgabe~(#1)}}% if #1 is not empty
23
\begin{adjustwidth}{1cm}{}}%
24
{\end{adjustwidth}}
25
26
\newenvironment{solution}[1][]{%
27
\subsection*{Lösung zu Aufgabe~#1}%
28
\begin{adjustwidth}{1cm}{}}%
29
{\end{adjustwidth}}
30
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
31
% Define theorems %
32
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
33
\newcommand{\thmfoot}{}
34
\theoremstyle{break}
35
\setlength\theoremindent{0.7cm}
36
\theoremheaderfont{\kern-0.7cm\normalfont\bfseries}
37
\theorembodyfont{\normalfont} % nicht mehr kursiv
38
\theoremseparator{\thmfoot}
39
40
\newframedtheorem{satz}{Satz}[chapter]
41
\newframedtheorem{lemma}[satz]{Lemma}
42
\newframedtheorem{proposition}[satz]{Proposition}
43
\newtheorem{korollar}[satz]{Korollar}
44
\newtheorem{folgerung}[satz]{Folgerung}
45
\newtheorem{definition}{Definition}
46
\newtheorem{beispiel}{Beispiel}
47
\newtheorem{bemerkung}{Bemerkung}
48
\theoremstyle{nonumberplain}
49
\newtheorem{beweis}{Beweis:}
50
\newtheorem{behauptung}{Beh.:}
51
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52
53
\def\fB{\mathfrak{B}}%Für Basis
54
\def\fT{\mathfrak{T}}%Für Topologie
55
\renewcommand{\qed}{\hfill\blacksquare}
56
\newcommand{\qedwhite}{\hfill \ensuremath{\Box}}
57
\newcommand{\Parr}{\text{\pointer}}
58
\newcommand{\powerset}[1]{\mathcal{P}(#1)}
59
60
61
\def\praum{\ensuremath{\mathcal{P}}}
62
\def\mdp{\ensuremath{\mathbb{P}}}
63
\def\mdc{\ensuremath{\mathbb{C}}}
64
\def\mdr{\ensuremath{\mathbb{R}}}
65
\def\mdq{\ensuremath{\mathbb{Q}}}
66
\def\mdz{\ensuremath{\mathbb{Z}}}
67
\def\mdn{\ensuremath{\mathbb{N}}}
68
\def\mdh{\ensuremath{\mathbb{H}}}
69
\def\gdw{\ensuremath{\Leftrightarrow}}
70
\newcommand\mapsfrom{\mathrel{\reflectbox{\ensuremath{\mapsto}}}}
71
\newcommand\dcup{\mathbin{\dot{\cup}}}
72
\newcommand{\id}{\textnormal{id}}
73
\DeclareMathOperator{\conv}{conv}
74
\DeclareMathOperator{\IWS}{IWS}
75
\DeclareMathOperator{\SLL}{SLL}
76
\DeclareMathOperator{\Bild}{Bild}
77
\DeclareMathOperator{\fst}{fst}
78
\DeclareMathOperator{\snd}{snd}
79
\DeclareMathOperator{\pair}{pair}
80
\DeclareMathOperator{\nxt}{next}
81
\DeclareMathOperator{\pred}{pred}
82
\DeclareMathOperator{\ABS}{ABS}
83
\DeclareMathOperator{\VAR}{VAR}
84
\DeclareMathOperator{\CONST}{CONST}
85
\DeclareMathOperator{\APP}{APP}
86
\DeclareMathOperator{\First}{First}
87
\DeclareMathOperator{\Follow}{Follow}
88
\let\succ\relax% Set equal to \relax so that LaTeX thinks it's not defined
89
\DeclareMathOperator{\succ}{succ}
90
\newcommand{\iu}{{i\mkern1mu}} % imaginary unit
91
%\DeclareMathOperator{\Re}{Re}
92
%\DeclareMathOperator{\Im}{Im}
93
94
%%%Text %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
95
\newcommand\obda{o.~B.~d.~A.\xspace}
96
\newcommand\Obda{O.~B.~d.~A.\xspace}
97
\newcommand{\ts}[1]{\textnormal{#1}} % textual subscript
98
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
99
% http://tex.stackexchange.com/a/101138/5645
100
\newcommand\rtilde[1]{\widetilde{\mathit{#1}}}
101
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
102
\crefname{satz}{\textup{Satz}}{\textup{Sätze}}
103
\crefname{proposition}{\textup{Proposition}}{\textup{Propositionen}}
104
\crefname{lemma}{\textup{Lemma}}{\textup{Lemmata}}
105
\crefname{korollar}{\textup{Korollar}}{\textup{Korollare}}
106
\crefname{folgerung}{\textup{Folgerung}}{\textup{Folgerungen}}
107
\crefname{definition}{\textup{Definition}}{\textup{Definitionen}}
108
\crefname{behauptung}{\textup{Behauptung}}{\textup{Behauptungen}}
109
\crefname{beispiel}{\textup{Beispiel}}{\textup{Beispiele}}
110
\crefname{aufgabe}{\textup{Aufgabe}}{\textup{Aufgaben}}
111
\crefname{bemerkung}{\textup{Bemerkung}}{\textup{Bemerkungen}}
112
%\let\OldAngle\angle
113
%\let\angle\sphericalangle
114
115
\newlist{defenum}{enumerate}{1}
116
\setlist[defenum]{label=\alph*),ref=\textup{\thedefinition.\alph*}}
117
\crefalias{defenumi}{definition}
118
119
\newlist{defenumprops}{enumerate}{1}
120
\setlist[defenumprops]{label=(\roman*),ref=\textup{\thedefinition.\roman*}}
121
\crefalias{defenumpropsi}{definition}
122
123
\newlist{bemenum}{enumerate}{1}
124
\setlist[bemenum]{label=\alph*),ref=\textup{\thebemerkung.\alph*}}
125
\crefalias{bemenumi}{bemerkung}
126
127
\newlist{bspenum}{enumerate}{1}
128
\setlist[bspenum]{label=\arabic*),ref=\textup{\thebeispiel.\arabic*}}
129
\crefalias{bspenumi}{beispiel}
130
131
\newlist{propenum}{enumerate}{1}
132
\setlist[propenum]{label=\alph*), ref=\textup{\theproposition~(\alph*)}}
133
\crefalias{propenumi}{proposition}
134
135
\newlist{aufgabeenum}{enumerate}{1}
136
\setlist[aufgabeenum]{label=(\alph*),ref=\textup{\theaufgabe~(\alph*)}}
137
\crefalias{aufgabeenumi}{aufgabe}
138
139
% Commands for local abbreviations
140
\newcommand\crefabbr[1]{%
141
\begingroup
142
\crefname{bemerkung}{\textup{Bem.}}{\textup{Bem.}}%
143
\crefname{definition}{\textup{Def.}}{\textup{Def.}}\cref{#1}
144
\endgroup%
145
}
146
\newcommand\Crefabbr[1]{%
147
\begingroup
148
\Crefname{bemerkung}{\textup{Bem.}}{\textup{Bem.}}%
149
\Crefname{definition}{\textup{Def.}}{\textup{Def.}}\Cref{#1}
150
\endgroup%
151
}
152
153