This repository has been archived by the owner on Mar 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.tex
172 lines (151 loc) · 5.48 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
% Authoren pro Abschnitt
\newcommand{\currentauthor}[1]{\marginnote{\bfseries \textcolor{black!50}{#1}}}
% Theorems, etc
\newtheorem{theorem}{Theorem}
\newtheorem{definition}{Definition}
% Auf- und Abrundungsklammern
\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
% For better table centering control
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
% Notation
\newcommand{\inputtext}[1][]{\ensuremath{\mathsf{T}\ifthenelse{\equal{#1}{}}{}{[#1]}}\xspace}
\newcommand{\suffix}[1]{\ensuremath{\mathsf{S}_{#1}}\xspace}
\newcommand{\sa}[1][]{\ensuremath{\mathsf{SA}\ifthenelse{\equal{#1}{}}{}{[#1]}}\xspace}
\newcommand{\isa}[1][]{\ensuremath{\mathsf{ISA}\ifthenelse{\equal{#1}{}}{}{[#1]}}\xspace}
\newcommand{\bucket}[1]{\ensuremath{\mathsf{b}_{#1}}\xspace}
\newcommand{\bptr}[1][]{\ensuremath{\mathsf{BPTR}\ifthenelse{\equal{#1}{}}{}{[#1]}}\xspace}
\newcommand{\effective}{\ensuremath{\textit{eff}}\xspace}
\newcommand{\Dach}[1]{$\widehat{#1}$}
\newcommand{\gsize}[1][]{\ensuremath{\mathsf{GSIZE}\ifthenelse{\equal{#1}{}}{}{[#1]}}\xspace}
\newcommand{\glink}[1][]{\ensuremath{\mathsf{GLINK}\ifthenelse{\equal{#1}{}}{}{[#1]}}\xspace}
\newcommand{\prev}[1][]{\ensuremath{\mathsf{PREV}\ifthenelse{\equal{#1}{}}{}{[#1]}}\xspace}
\newcommand{\pc}[1][]{\ensuremath{\mathsf{PC}\ifthenelse{\equal{#1}{}}{}{[#1]}}\xspace}
\newcommand{\prevpointer}[0]{prev pointer\xspace}
\newcommand{\prevpointern}[0]{prev pointern\xspace}
% Farben
\newcommand{\green}[0]{32CB00}
\newcommand{\red}[0]{FD6864}
\newcommand{\yellow}[0]{FFCC67}
\newcommand{\blue}[0]{34CDF9}
\newcommand{\gray}[0]{C0C0C0}
\newcommand{\white}[0]{FFFFFF}
\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
\newcommand{\cmarkc}{{\color{green}\cmark}}
\newcommand{\xmarkc}{{\color{red}\xmark}}
% Makes every color black to test if a place is missing the common color
% \newcommand{\green}[0]{000000}
% \newcommand{\red}[0]{000000}
% \newcommand{\yellow}[0]{000000}
% \newcommand{\blue}[0]{000000}
% \newcommand{\gray}[0]{000000}
% \newcommand{\white}[0]{000000}
% float environment for minted
\SetupFloatingEnvironment{listing}{name=Algorithmus}
%
% ------------------------- Begin sqlplottools settings -----------------------------
%
\pgfplotsset{compat=1.12}
\usepgfplotslibrary{groupplots}
% space instead of thousand separator comma
\pgfkeys{/pgf/number format/.cd,1000 sep={\,}}
% another ylabel on the right:
\pgfplotsset{
ylabel right/.style={
after end axis/.append code={
\node [rotate=270, anchor=south, yshift=3pt] at (rel axis cs:1,0.5) {#1};
}
}
}
\pgfplotsset{
log x ticks with fixed point/.style={
xticklabel={
\pgfkeys{/pgf/fpu=true}
\pgfmathparse{exp(\tick)}%
\pgfmathprintnumber[fixed relative, precision=3]{\pgfmathresult}
\pgfkeys{/pgf/fpu=false}
}
},
log y ticks with fixed point/.style={
yticklabel={
\pgfkeys{/pgf/fpu=true}
\pgfmathparse{exp(\tick)}%
\pgfmathprintnumber[fixed relative, precision=3]{\pgfmathresult}
\pgfkeys{/pgf/fpu=false}
}
}
}
\pgfplotsset{
grid,
major grid style={thin,dotted,color=black!50},
minor grid style={thin,dotted,color=black!50},
legend cell align=left,
cycle list name={exotic},
every axis/.append style={
line width=0.5pt,
tick style={
line cap=round,
thin,
major tick length=4pt,
minor tick length=2pt,
},
},
legend style={
/tikz/every even column/.append style={column sep=3mm,black},
/tikz/every odd column/.append style={black},
},
% move title closer
title style={yshift=-2pt},
% less space on left and right
enlarge x limits=0.04,
every tick label/.append style={font=\small},
%every axis label/.append style={font=\small},
every axis y label/.append style={yshift=-1ex},
xlabel near ticks,
ylabel near ticks,
legend columns=1,
legend pos=north east,
}
\pgfplotsset{
landscapePlot/.style={
ybar,
bar width= 40.0pt,
xtick=data,
width=110mm,height=105mm,
nodes near coords,
nodes near coords align={vertical},
enlarge y limits={upper,value=0.4},
ymin=0,
enlarge x limits=0.5,
},
batchTimePlot/.style={
landscapePlot,
title={Runtime},
ylabel={SA construction time [s]},
every axis y label/.style={at={(0,0.5)},xshift=-25pt,rotate=90},
},
batchMemPlot/.style={
landscapePlot,
title={Memory Utilization},
ylabel={Extra Memory [MB]},
every axis y label/.style={at={(0,0.5)},xshift=-34pt,rotate=90},
},
}
%
% -------------------------- End sqlplottools settings ------------------------------
%
\newcommand{\sacabench}{SACABench\xspace}
\newcommand{\termfont}[1]{\texttt{#1}}
\newcommand{\ipsviero}{IPs$^4$o\xspace}
\newcommand{\bpr}{\emph{Bucket-Pointer Refinement}\xspace}
% Make \todo{} appear in warning list
\makeatletter
\pretocmd{\@todo}{\GenericWarning{}{Warning: TODO still in document!}}{}{}
\makeatother
% Keine einzelnen Zeilen beim Anfang eines Abschnitts (Schusterjungen)
\clubpenalty = 10000
% Keine einzelnen Zeilen am Ende eines Abschnitts (Hurenkinder)
\widowpenalty = 10000 \displaywidowpenalty = 10000