-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.tex
38 lines (34 loc) · 1.04 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
% Math fonts
\newcommand{\bb}[1]{\mathbb{#1}}
\renewcommand{\bf}[1]{\mathbf{#1}}
\renewcommand{\cal}[1]{\mathcal{#1}}
% Special elements
\newcommand{\R}{\mathbb{R}}
\newcommand{\Ent}{\mathcal{E}}
\newcommand{\Rel}{\mathcal{R}}
\newcommand{\KG}{\mathcal{KG}}
\newcommand{\Clusters}{\mathcal{C}}
\newcommand{\Types}{\mathcal{T}}
\newcommand{\Tpred}{\hat{T}}
% Entities and relations
\newcommand{\dbo}[1]{\texttt{dbo:#1}}
\newcommand{\dbr}[1]{\texttt{dbr:#1}}
\newcommand{\rdf}[1]{\texttt{rdf:#1}}
\newcommand{\rel}[3]{#1 \overset{#2}{\longrightarrow} #3}
% Complex conjugate
\newcommand{\compconj}[1]{%
\overline{#1}%
}
% Operators
\DeclareMathOperator{\diag}{diag}
\DeclareMathOperator{\gauche}{gauche}
\DeclareMathOperator{\droite}{droite}
\DeclareMathOperator{\succs}{succ}
\DeclareMathOperator{\precs}{prec}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator{\cov}{cov}
\DeclareMathOperator{\spe}{spe}
\DeclareMathOperator{\xscore}{xor}
\DeclareMathOperator{\pre}{prec}
\DeclareMathOperator{\rec}{rec}