-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.tex
49 lines (36 loc) · 2.47 KB
/
commands.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
% DE: wird fuer Tabellen benötigt (z.B. >{centering\RBS}p{2.5cm} erzeugt einen zentrierten 2,5cm breiten Absatz in einer Tabelle
\newcommand{\RBS}{\let\\=\tabularnewline}
% EN: To avoid issues with Springer's \mathplus
% See also http://tex.stackexchange.com/q/212644/9075
\providecommand\mathplus{+}
% EN: from hmks makros.tex - \indexify
\newcommand{\toindex}[1]{\index{#1}#1}
% DE: Anstatt $|x|$ $\abs{x}$ verwenden.
% Die Betragsstriche skalieren automatisch, falls "x" etwas größer sein sollte...
\newcommand{\abs}[1]{\left\lvert#1\right\rvert}
% EN: For the algorithmic package
\newcommand{\commentchar}{\ensuremath{/\mkern-4mu/}}
\algrenewcommand{\algorithmiccomment}[1]{\hfill $\commentchar$ #1}
% DE: Seitengrößen - Gegen Schusterjungen und Hurenkinder...
\newcommand{\largepage}{\enlargethispage{\baselineskip}}
\newcommand{\shortpage}{\enlargethispage{-\baselineskip}}
\newcommand{\Hsquare}{%
\text{\fboxsep=-.2pt\fbox{\rule{0pt}{1.4ex}\rule{1.4ex}{0pt}}}%
}
\newcommand\red{red\,{\setlength\fboxsep{0pt}\colorbox{persian_red}{\Hsquare}}\,\,}
\newcommand\reddot{red\,{\setlength\fboxsep{0pt}\colorbox{persian_red}{\Hsquare}}.}
\newcommand\green{green\,{\setlength\fboxsep{0pt}\colorbox{persian_green}{\Hsquare}}\,\,}
\newcommand\greendot{green\,{\setlength\fboxsep{0pt}\colorbox{persian_green}{\Hsquare}}.}
\newcommand\greencomma{green\,{\setlength\fboxsep{0pt}\colorbox{persian_green}{\Hsquare}},}
\newcommand\grey{grey\,{\setlength\fboxsep{0pt}\colorbox{silver}{\Hsquare}}\,\,}
\newcommand\greydot{grey\,{\setlength\fboxsep{0pt}\colorbox{silver}{\Hsquare}}.}
\newcommand\beige{beige\,{\setlength\fboxsep{0pt}\colorbox{eggshell}{\Hsquare}}\,\,}
\newcommand\beigedot{beige\,{\setlength\fboxsep{0pt}\colorbox{eggshell}{\Hsquare}}.}
\newcommand\lightblue{light blue\,{\setlength\fboxsep{0pt}\colorbox{light_cornflower_blue}{\Hsquare}}\,\,}
\newcommand\lightbluedot{light blue\,{\setlength\fboxsep{0pt}\colorbox{light_cornflower_blue}{\Hsquare}}.}
\newcommand\lightbluecomma{light blue\,{\setlength\fboxsep{0pt}\colorbox{light_cornflower_blue}{\Hsquare}},\,}
\newcommand\darkblue{dark blue\,{\setlength\fboxsep{0pt}\colorbox{charcoal}{\Hsquare}}\,\,}
\newcommand\darkbluedot{dark blue\,{\setlength\fboxsep{0pt}\colorbox{charcoal}{\Hsquare}}.}
\newcommand\darkbluecomma{dark blue\,{\setlength\fboxsep{0pt}\colorbox{charcoal}{\Hsquare}},\,}
\newcommand\blue{blue\,{\setlength\fboxsep{0pt}\colorbox{mpl_blue}{\Hsquare}}\,\,}
\newcommand{\delimit}{{\color{silver}\noindent\rule{\textwidth}{1pt}}}