aboutsummaryrefslogtreecommitdiff
path: root/commands.tex
blob: 4f1bb52bbc59eff88e5646d34adc582633bbd137 (plain)
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
\newtheorem{Satz}{Satz}[section]
\newtheorem{Lemma}[Satz]{Lemma}

\theoremstyle{definition}
\newtheorem{Definition}{Definition}[section]

\makeatletter
\AtBeginDocument{\xpatchcmd{\@thm}{\thm@headpunct{.}}{\thm@headpunct{}}{}{}}
\makeatother

\numberwithin{equation}{section}

\newcommand{\R}{\mathbb{R}} % reelle
\newcommand{\Z}{\mathbb{Z}} % ganze
\newcommand{\N}{\mathbb{N}} % natuerliche

\newcommand{\G}{\mathcal{G}} % Grobes Gitter
\newcommand{\F}{\mathcal{F}} % Feines Gitter
\newcommand{\U}{\mathcal{U}} % Übergangsbereich

\newcommand{\restrictedto}[2]{{\left.\kern-\nulldelimiterspace #1 \vphantom{\big|} \right|_{#2}}}

\DeclareMathOperator{\res}{\boldsymbol{r}}
\newcommand{\resarg}[2]{\boldsymbol{r(}{#1}, {#2}\boldsymbol{)}}

\DeclareMathOperator{\ipol}{\boldsymbol{n}}
\DeclareMathOperator{\sipol}{\overline{\boldsymbol{n}}}
\newcommand{\ipolarg}[2]{\boldsymbol{n}_{#1}\boldsymbol{(}{#2}\boldsymbol{)}}
\newcommand{\sipolarg}[1]{\overline{\boldsymbol{n}}\boldsymbol{(}{#1}\boldsymbol{)}}
\newcommand{\sipolderivarg}[2]{\overline{\boldsymbol{n}}^{\,(#1)}\boldsymbol{(}{#2}\boldsymbol{)}}

\newcommand{\class}[1]{\texttt{#1}}
\newcommand{\method}[1]{\texttt{#1}}

\newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}}

\newcommand{\V}[2]{\ensuremath{\begin{pmatrix}#1\\#2\end{pmatrix}}}
\newenvironment{rcases}{\left.\begin{aligned}}{\end{aligned}\right\rbrace}

% See: https://tex.stackexchange.com/questions/108140/draw-3d-rectangle
\makeatletter
\tikzoption{canvas is xy plane at z}[]{%
	\def\tikz@plane@origin{\pgfpointxyz{0}{0}{#1}}%
	\def\tikz@plane@x{\pgfpointxyz{1}{0}{#1}}%
	\def\tikz@plane@y{\pgfpointxyz{0}{1}{#1}}%
	\tikz@canvas@is@plane
}
\makeatother

\tikzset{xyp/.style={canvas is xy plane at z=#1}}
\tikzset{xzp/.style={canvas is xz plane at y=#1}}
\tikzset{yzp/.style={canvas is yz plane at x=#1}}

\DeclareFieldFormat*{citetitle}{\textit{#1}}

\newcommand\blankpage{
	\null
	\thispagestyle{empty}
	\addtocounter{page}{-1}
	\newpage}