-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.tex
91 lines (83 loc) · 2.5 KB
/
macros.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
%% math-Abbreviations
\def\defeq {\mathrel{\mathop:}=}
\def\eqdef {=\mathrel{\mathop:}}
\def\defequiv {\mathrel{\mathop:}\Leftrightarrow}
\def\pow #1{{\mathcal{P}(#1)}}
\def\restrict #1{{\big |_{#1}}}
\def\natural {\mathbb{N}}
\def\projective {\mathbb{P}}
\def\integer {\mathbb{Z}}
\def\rational {\mathbb{Q}}
\def\complex {\mathbb{C}}
\def\real {\mathbb{R}}
\def\field {\mathbb{K}}
\def\ideal {\mathfrak{a}}
\def\O {\mathcal{O}}
\def\S {\mathcal{S}}
\def\T {\mathbb{T}}
\def\code {\text{code}}
\def\Div {\text{Div}}
\def\PDiv {\text{PDiv}}
\def\Supp {\text{Supp}}
\def\Eff {\text{Eff}}
\def\Mov {\text{Mov}}
\def\Cl {\text{Cl}}
\def\div {\text{div}}
\def\id {\text{id}}
\def\tensor {\otimes}
\def\acts {{\ \circlearrowleft\ }}
\def\msix {{$\overline{M}_{0,6}$}}
\def\spec {\text{Spec}}
\def\wildcard {\mathrel{\;\cdot\;}}
%%gpispace expressions
\def\gpigt {\mathrel{\text{:gt:}}}
\def\gpiresolve #1{{\$\{#1\}}}
%% text-Abbreviations
\def\singular {\textsc{Singular}}
\def\libsingular {\textsc{libSingular}}
\def\gitfanlib {\textsc{gitfan.lib}}
\def\gpispace {\textsc{GPI-Space}}
\def\beegfs {\textsc{BeeGFS}}
\def\gap {\textsc{GAP}}
\def\slurm {\textsc{SLURM}}
\def\cplusplus {\textsc{C++}}
\def\c {\textsc{C}}
\def\gtest {\textsc{Google Test}}
\def\aface {$\ideal$\=/face}
\def\afaces {$\ideal$\=/faces}
%% Define keywords for algorithms.
\SetKw{Not}{not}
\SetKw{Null}{null}
\SetKw{And}{and}
\SetKw{Or}{or}
\SetKw{New}{new}
\SetKw{True}{true}
\SetKw{Continue}{continue}
\SetKw{Break}{break}
\SetKwFunction{First}{first}
\SetKwComment{Comment}{/* }{ */}
\SetKwInput{KwDependencies}{Dependencies}
\SetKwData{Map}{Map}
\SetKwData{List}{List}
\SetKwData{Queue}{Queue}
%% Provide command for a raised chi so that it does not exceed the baseline
\DeclareRobustCommand{\rchi}{{\mathpalette\irchi\relax}}
\newcommand{\irchi}[2]{\raisebox{0.85\depth}{$#1\chi$}} % inner command, used by \rchi
%% Langer Trennstrich
\def\horizontalline {\noindent\makebox[\linewidth]{\rule{\paperwidth}{0.4pt}}}
%% Unbreakable block
\AtBeginEnvironment{nobreak}{\begin{minipage}{\textwidth}}
\AtEndEnvironment{nobreak}{\end{minipage}}
%% Block für Einschübe
\definecolor{light-gray}{gray}{0.95}
\newcommand{\Block}[2][0.95\textwidth]{
\vspace{2mm}
\begin{center}
\fcolorbox{black}{light-gray}{ \begin{minipage}[r]{#1}
\setcounter{mpfootnote}{\value{footnote}}
\renewcommand{\thempfootnote}{\arabic{mpfootnote}}
#2
\setcounter{footnote}{\value{mpfootnote}}
\end{minipage} }
\end{center}
}