-
Notifications
You must be signed in to change notification settings - Fork 6
/
commands.tex
124 lines (100 loc) · 4.44 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
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setlist[]{noitemsep, topsep=5pt}
\newcommand{\asc}{\uparrow}
\newcommand{\desc}{\downarrow}
\newcommand{\yedscale}{0.43}
\newcommand{\note}[1]{\noindent \textbf{Note.} #1}
\newcommand{\DataGen}{DataGen\xspace}
\newcommand{\ldbcfinbench}{LDBC FinBench\xspace}
\newcommand{\ldbcsnb}{LDBC SNB~\cite{DBLP:journals/corr/abs-2001-02299,ldbc_snb_docs}\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{\tComment}{\type{Comment}\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}
\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{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}