-
Notifications
You must be signed in to change notification settings - Fork 14
/
commands.tex
214 lines (178 loc) · 7.84 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
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setlist[]{noitemsep, topsep=5pt}
\newcommand{\asc}{\uparrow}
\newcommand{\desc}{\downarrow}
\newcommand{\yedscale}{0.52}
\newcommand{\patternscale}{0.43}
\newcommand{\note}[1]{\noindent \textbf{Note.} #1}
\newcommand{\datagen}{Datagen\xspace}
\newcommand{\ldbcsnb}{LDBC SNB\xspace}
\newcommand{\snb}{SNB\xspace}
\newcommand{\snbbi}{SNB BI\xspace}
\newcommand{\yes}{$\bigotimes$\xspace}
\newcommand{\maybe}{$\bigoslash$\xspace}
\newcommand{\no}{$\bigcircle$\xspace}
\sloppy
\setcounter{secnumdepth}{3}
\renewcommand{\chapterautorefname}{Chapter}
\renewcommand{\sectionautorefname}{Section}
\renewcommand{\subsectionautorefname}{Section}
\renewcommand{\subsubsectionautorefname}{Section}
\newcommand{\interval}[2]{\ensuremath{\textcolor{green}{\big[ #1}, \ \textcolor{red}{#2 \big)} }}
\newcommand{\type}[1]{\textsf{#1}}
%\newcommand{\constant}[1]{\mathbb{#1}} % no mathbf/mathcal due to MnSymbol & mathfrak looks terrible
\newcommand{\constant}[1]{\textbf{#1}}
\newcommand{\variable}[1]{\mathit{#1}}
\newcommand{\instance}[1]{\mathsf{#1}}
\newcommand{\created}{\ast}
\newcommand{\deleted}{\dagger}
% italic numbers look bad -- no \variable for the underscored bit
% \newcommand{\varbound}[3]{{#3}\variable{#1}_{#2}}
% \newcommand{\varc}[2]{\varbound{#1}{#2}{\created}}
% \newcommand{\vard}[2]{\varbound{#1}{#2}{\deleted}}
\newcommand{\varbound}[2]{{#2}\variable{#1}}
\newcommand{\varc}[1]{\varbound{#1}{\created}}
\newcommand{\vard}[1]{\varbound{#1}{\deleted}}
\newcommand{\varn}[1]{\variable{n}_\mathrm{#1}}
\newcommand{\varcn}[1]{\varbound{\varn{#1}}{\created}}
\newcommand{\vardn}[1]{\varbound{\varn{#1}}{\deleted}}
\newcommand{\instbound}[3]{{#3}\instance{#1}_\instance{#2}}
\newcommand{\instc}[2]{\instbound{#1}{#2}{\created}}
\newcommand{\instd}[2]{\instbound{#1}{#2}{\deleted}}
\newcommand{\xSS}{\constant{SS}\xspace}
%\newcommand{\xNS}{\constant{NS}\xspace} % unused
\newcommand{\xSE}{\constant{SE}\xspace}
\newcommand{\xNC}{\constant{NC}\xspace}
\newcommand{\xBL}{\constant{BL}\xspace}
\newcommand{\eComment}{\variable{comm}\xspace}
\newcommand{\eFlashmobEvent}{\variable{fme}\xspace}
\newcommand{\eForum}{\variable{forum}\xspace}
\newcommand{\eHasMember}{\variable{hm}\xspace}
\newcommand{\eHasModerator}{\variable{hmd}\xspace}
\newcommand{\eKnows}{\variable{knows}\xspace}
\newcommand{\eLikes}{\variable{likes}\xspace}
\newcommand{\eMessage}{\variable{m}\xspace}
\newcommand{\ePerson}{\variable{p}\xspace}
\newcommand{\ePost}{\variable{post}\xspace}
\newcommand{\tCity}{\type{City}\xspace}
\newcommand{\tCities}{\type{Cities}\xspace}
\newcommand{\tCountry}{\type{Country}\xspace}
\newcommand{\tCountries}{\type{Countries}\xspace}
\newcommand{\tComment}{\type{Comment}\xspace}
\newcommand{\tCompany}{\type{Company}\xspace}
\newcommand{\tComments}{\type{Comments}\xspace}
\newcommand{\tContainerOf}{\type{containerOf}\xspace}
\newcommand{\tFlashmobEvent}{\type{FlashmobEvent}\xspace}
\newcommand{\tForum}{\type{Forum}\xspace}
\newcommand{\tForums}{\type{Forums}\xspace}
\newcommand{\tHasCreator}{\type{hasCreator}\xspace}
\newcommand{\tHasMember}{\type{hasMember}\xspace}
\newcommand{\tHasModerator}{\type{hasModerator}\xspace}
\newcommand{\tHasTag}{\type{hasTag}\xspace}
\newcommand{\tKnows}{\type{knows}\xspace}
\newcommand{\tLikes}{\type{likes}\xspace}
\newcommand{\tMessage}{\type{Message}\xspace}
\newcommand{\tMessages}{\type{Messages}\xspace}
\newcommand{\tPerson}{\type{Person}\xspace}
\newcommand{\tPersons}{\type{Persons}\xspace}
\newcommand{\tPost}{\type{Post}\xspace}
\newcommand{\tPosts}{\type{Posts}\xspace}
\newcommand{\tTag}{\type{Tag}\xspace}
\newcommand{\tTags}{\type{Tags}\xspace}
\newcommand{\tPhoto}{\type{Photo}\xspace}
\newcommand{\tPhotos}{\type{Photos}\xspace}
\newcommand{\tReplyOf}{\type{replyOf}\xspace}
\newcommand{\tStudyAt}{\type{studyAt}\xspace}
\newcommand{\tUniversity}{\type{University}\xspace}
\def\shadedBox(#1,#2,#3){
\fill[pattern=north west lines,pattern color=grey] (#1,#2) -- (#1,#2 - #3) -- (#1 + 0.3,#2 - #3) -- (#1 + 0.3,#2);
\draw [grey,thin,dashed] (#1,#2) -- (#1,#2 - #3);
\draw [grey,thin,dashed] (#1 + 0.3,#2) -- (#1 + 0.3,#2 - #3);
\draw [grey,line width=0.6mm] (#1,#2 - #3) -- node[midway,below,grey] {$\Delta$} (#1 + 0.3,#2 - #3);
}
% LDBC schema colours
\definecolor{Person}{HTML}{fdb462}
\definecolor{Message}{HTML}{bebada}
\definecolor{Forum}{HTML}{b3de69}
\definecolor{Comment}{HTML}{80b1d3}
\definecolor{Post}{HTML}{fb8072}
\definecolor{Company}{HTML}{ccebc5}
\definecolor{University}{HTML}{ffed6f}
\definecolor{City}{HTML}{8dd3c7}
\definecolor{Tag}{HTML}{fccde5}
\definecolor{Country}{HTML}{ffffb3}
% interval colours
\definecolor{ldbcpale}{HTML}{86cd7d}
\definecolor{ldbc}{HTML}{439539}
\definecolor{grey}{rgb}{0.52, 0.52, 0.51}
\definecolor{red}{rgb}{0.7, 0.11, 0.11}
\definecolor{blue}{rgb}{0.0, 0.0, 0.55}
\definecolor{green}{rgb}{0.0, 0.42, 0.24}
\definecolor{mydarkyellow}{HTML}{ffc329}
\definecolor{mylightyellow}{HTML}{fee090}
\definecolor{mydarkblue}{HTML}{80d6ed}
\definecolor{mylightblue}{HTML}{e0f3f8}
\newcommand{\variant}[1]{\textit{#1}\xspace}
\newcommand{\variantA}{\variant{a}}
\newcommand{\variantB}{\variant{b}}
\newcommand{\tpc}{TPC\xspace}
\newcommand{\tpcC}{\mbox{TPC-C}\xspace}
\newcommand{\tpcH}{\mbox{TPC-H}\xspace}
\newcommand{\tpcDS}{\mbox{TPC-DS}\xspace}
\newtoggle{StandaloneWorkloadSpecification}
\togglefalse{StandaloneWorkloadSpecification}
\newcommand{\param}[1]{\texttt{\$#1}{}}
\newcommand{\interactivevone}{Interactive~v1\xspace}
\newcommand{\interactivevtwo}{Interactive~v2\xspace}
\newcommand{\snbinteractive}{SNB Interactive\xspace}
\newcommand{\snbinteractivevone}{SNB Interactive~v1\xspace}
\newcommand{\snbinteractivevtwo}{SNB Interactive~v2\xspace}
\newcommand{\snbOperation}[1]{{\ttfamily \fontseries{m}\selectfont #1}\xspace}
\newcommand{\INS}[1][]{\snbOperation{INS#1}}
\newcommand{\DEL}[1][]{\snbOperation{DEL#1}}
\newcommand{\CR}[1][]{\snbOperation{IC #1}}
\newcommand{\SR}[1][]{\snbOperation{IS #1}}
\newcommand{\Comment}{\type{Comment}\xspace}
\newcommand{\Comments}{\type{Comments}\xspace}
\newcommand{\ContainerOf}{\type{containerOf}\xspace}
\newcommand{\Forum}{\type{Forum}\xspace}
\newcommand{\Forums}{\type{Forums}\xspace}
\newcommand{\Friend}{\type{Friend}\xspace}
\newcommand{\Message}{\type{Message}\xspace}
\newcommand{\Messages}{\type{Messages}\xspace}
\newcommand{\Person}{\type{Person}\xspace}
\newcommand{\PersonEmail}{\type{Person.email}\xspace}
\newcommand{\Persons}{\type{Persons}\xspace}
\newcommand{\Post}{\type{Post}\xspace}
\newcommand{\Posts}{\type{Posts}\xspace}
\newcommand{\Tag}{\type{Tag}\xspace}
\newcommand{\Tags}{\type{Tags}\xspace}
\newcommand{\Photo}{\type{Photo}\xspace}
\newcommand{\Photos}{\type{Photos}\xspace}
\newcommand{\ReplyOf}{\type{replyOf}\xspace}
\newcommand{\Places}{\type{Places}\xspace}
\newcommand{\Organizations}{\type{Organizations}\xspace}
\newcommand{\University}{\type{University}\xspace}
\newcommand{\Company}{\type{Company}\xspace}
\newcommand{\Universities}{\type{Universities}\xspace}
\newcommand{\Companies}{\type{Companies}\xspace}
\newcommand{\City}{\type{City}\xspace}
\newcommand{\Cities}{\type{Cities}\xspace}
\newcommand{\Country}{\type{Country}\xspace}
\newcommand{\Countries}{\type{Countries}\xspace}
\newcommand{\Continent}{\type{Continent}\xspace}
\newcommand{\Continents}{\type{Continents}\xspace}
\newcommand{\hasCreator}{\type{hasCreator}\xspace}
\newcommand{\hasMember}{\type{hasMember}\xspace}
\newcommand{\hasModerator}{\type{hasModerator}\xspace}
\newcommand{\hasTag}{\type{hasTag}\xspace}
\newcommand{\knows}{\type{knows}\xspace}
\newcommand{\studyAt}{\type{studyAt}\xspace}
\newcommand{\likes}{\type{likes}\xspace}
\newcommand{\rootPost}{\type{rootPost}\xspace}
\newcommand{\snbperson}{\texttt{person}\xspace}
\newcommand{\snbfriend}{\texttt{friend}\xspace}
\newcommand{\snbcomment}{\texttt{comment}\xspace}
\newcommand{\snbpost}{\texttt{post}\xspace}
\newcommand{\snbmessage}{\texttt{message}\xspace}