-
Notifications
You must be signed in to change notification settings - Fork 3
/
brackets.sty
executable file
·104 lines (96 loc) · 4.33 KB
/
brackets.sty
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
\ProvidesPackage{brackets}
\RequirePackage{amsfonts,amsmath,booktabs,tikz}
\newcommand{\brak}[1]{\ensuremath{\left( #1 \right)}}
\newcommand{\tupl}[1]{\ensuremath{\left\langle #1 \right\rangle}}
\newcommand{\fbrk}[1]{\ensuremath{\left[ #1 \right]}}
\newcommand{\accl}[1]{\ensuremath{\left\{ #1 \right\}}}
\newcommand{\acclguard}[1]{\ensuremath{\left\{\begin{array}{ll} #1 \end{array}\right.}}
\newcommand{\acclarray}[2][c]{\accl{\begin{array}{#1} #2 \end{array}}}
\newcommand{\accol}[1]{\ensuremath{\left\{#1\right\}}}
\newcommand{\tuple}[1]{\ensuremath{\left\langle #1\right\rangle}}
\newcommand{\abs}[1]{\ensuremath{\left|#1\right|}}
\newcommand{\ceil}[1]{\ensuremath{\left\lceil #1 \right\rceil}}
\newcommand{\floor}[1]{\ensuremath{\left\lfloor #1 \right\rfloor}}
\newcommand{\fun}[2]{\ensuremath{#1\brak{#2}}}
\newcommand{\funa}[2]{\ensuremath{#1\accl{#2}}}
\newcommand{\funf}[2]{\ensuremath{#1\fbrk{#2}}}
\newcommand{\funm}[2]{\fun{\mbox{#1}}{#2}}
\newcommand{\funmf}[2]{\funf{\mbox{#1}}{#2}}
\newcommand{\funma}[2]{\funa{\mbox{#1}}{#2}}
\newcommand{\powset}[1]{\fun{\calP}{#1}}
\newcommand{\funsig}[3]{\ensuremath{#1:#2\rightarrow #3}}
\newcommand{\condset}[2]{\accl{#1\ |\ #2}}
\newcommand{\lambdacal}[2]{\ensuremath{\brak{\lambda\ #1\ {\boldsymbol .}\ #2}}}
\newcommand{\enctikz}[2]{\tikz[baseline]{\node(#1){$#2$};}}
\newcommand{\enctikzd}[2]{\tikz[baseline]{\node[draw,circle](#1){$#2$};}}
\newcommand{\lambdacaltikz}[3]{\enctikz{ba#1}{(}\enctikz{l#1}{\lambda}\ \enctikz{la#1}{#2}\ \enctikz{d#1}{\boldsymbol .}\ #3\enctikz{bb#1}{)}}
\newcommand{\AAA}{\ensuremath{\mathbb{A}}}
\newcommand{\BBB}{\ensuremath{\mathbb{B}}}
\newcommand{\CCC}{\ensuremath{\mathbb{C}}}
\newcommand{\DDD}{\ensuremath{\mathbb{D}}}
\newcommand{\EEE}{\ensuremath{\mathbb{E}}}
\newcommand{\FFF}{\ensuremath{\mathbb{F}}}
\newcommand{\GGG}{\ensuremath{\mathbb{G}}}
\newcommand{\HHH}{\ensuremath{\mathbb{H}}}
\newcommand{\III}{\ensuremath{\mathbb{I}}}
\newcommand{\JJJ}{\ensuremath{\mathbb{J}}}
\newcommand{\KKK}{\ensuremath{\mathbb{K}}}
\newcommand{\LLL}{\ensuremath{\mathbb{L}}}
\newcommand{\MMM}{\ensuremath{\mathbb{M}}}
\newcommand{\NNN}{\ensuremath{\mathbb{N}}}
\newcommand{\OOO}{\ensuremath{\mathbb{O}}}
\newcommand{\PPP}{\ensuremath{\mathbb{P}}}
\newcommand{\QQQ}{\ensuremath{\mathbb{Q}}}
\newcommand{\RRR}{\ensuremath{\mathbb{R}}}
\newcommand{\SSS}{\ensuremath{\mathbb{S}}}
\newcommand{\TTT}{\ensuremath{\mathbb{T}}}
\newcommand{\UUU}{\ensuremath{\mathbb{U}}}
\newcommand{\VVV}{\ensuremath{\mathbb{V}}}
\newcommand{\WWW}{\ensuremath{\mathbb{W}}}
\newcommand{\XXX}{\ensuremath{\mathbb{X}}}
\newcommand{\YYY}{\ensuremath{\mathbb{Y}}}
\newcommand{\ZZZ}{\ensuremath{\mathbb{Z}}}
\newcommand{\bigoh}[1]{\fun{\calO}{#1}}
\newcommand{\xtrue}{\ensuremath{\mbox{\bf true}}}
\newcommand{\xfalse}{\ensuremath{\mbox{\bf false}}}
\newcommand{\xif}{\ensuremath{\mbox{\bf if }}}
\newcommand{\xwhere}{\ensuremath{\mbox{\bf{ where }}}}
\newcommand{\xotherwise}{\ensuremath{\mbox{\bf otherwise}}}
\newcommand{\calA}{\ensuremath{\mathcal{A}}}
\newcommand{\calB}{\ensuremath{\mathcal{B}}}
\newcommand{\calC}{\ensuremath{\mathcal{C}}}
\newcommand{\calD}{\ensuremath{\mathcal{D}}}
\newcommand{\calE}{\ensuremath{\mathcal{E}}}
\newcommand{\calF}{\ensuremath{\mathcal{F}}}
\newcommand{\calG}{\ensuremath{\mathcal{G}}}
\newcommand{\calH}{\ensuremath{\mathcal{H}}}
\newcommand{\calI}{\ensuremath{\mathcal{I}}}
\newcommand{\calJ}{\ensuremath{\mathcal{J}}}
\newcommand{\calK}{\ensuremath{\mathcal{K}}}
\newcommand{\calL}{\ensuremath{\mathcal{L}}}
\newcommand{\calM}{\ensuremath{\mathcal{M}}}
\newcommand{\calN}{\ensuremath{\mathcal{N}}}
\newcommand{\calO}{\ensuremath{\mathcal{O}}}
\newcommand{\calP}{\ensuremath{\mathcal{P}}}
\newcommand{\calQ}{\ensuremath{\mathcal{Q}}}
\newcommand{\calR}{\ensuremath{\mathcal{R}}}
\newcommand{\calS}{\ensuremath{\mathcal{S}}}
\newcommand{\calT}{\ensuremath{\mathcal{T}}}
\newcommand{\calU}{\ensuremath{\mathcal{U}}}
\newcommand{\calV}{\ensuremath{\mathcal{V}}}
\newcommand{\calW}{\ensuremath{\mathcal{W}}}
\newcommand{\calX}{\ensuremath{\mathcal{X}}}
\newcommand{\calY}{\ensuremath{\mathcal{Y}}}
\newcommand{\calZ}{\ensuremath{\mathcal{Z}}}
\newcommand{\BoolSet}{\BBB}
\newcommand{\RealSet}{\RRR}
\newcommand{\FracSet}{\QQQ}
\newcommand{\NatSet}{\NNN}
\newcommand{\IntSet}{\ZZZ}
\newcommand{\argmin}{\ensuremath{\mbox{argmin}}}
\newcommand{\defaulttable}[3]{
\begin{tabular}{#1}
\toprule
#2\\\midrule
#3\\\bottomrule
\end{tabular}}