summaryrefslogtreecommitdiffstats
path: root/dissociator_syntax.tex
blob: 29efe019c0c8d5d3e2336640045172b5dabbc697 (plain)
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
% \newcommand\splitrule[2]{\parbox[t]{4.25in}{\parbox{2.75in}{#1}\parbox{1.25in}{#2}}}

\newcommand\mathbox[2]{
	\parbox{#1}{
		\begin{equation*}#2
		\end{equation*}}}

\newcommand\splitshort[2]{
	\parbox[t]{4in}{
		\parbox{2.25in}{#1}
		\parbox{1.7in}{#2}}}

\newcommand\gensplitmath[2]{
	\parbox[t]{4in}{
		\mathbox{2in}{#1}
		\mathbox{2in}{#2}}}

\newcommand\gentrisplitmath[3]{
	\parbox[t]{4.25in}{
		\centering
		\mathbox{1.25in}{#1}
		\mathbox{1.25in}{#2}
		\mathbox{1.25in}{#3}}}

% \newcommand\gentrisplit[3]{\parbox[t]{4.5in}{\parbox{1.5in}{#1}\parbox{1.5in}{#2}\parbox{1.5in}{#3}}}
\newcommand\jumpbox[1]{
  \tikz[baseline=(n.base)]{
	  \node(n)[inner sep=1pt]{$#1$};
	  \draw[line cap=round]
	    (n.south west)
	    --(n.north west)
	    --(n.north east)
	    --(n.south east);}}

\newcommand\tacklebox[1]{
  \tikz[baseline=(n.base)]{
    \node(n)[inner sep=1pt]{$#1$};
    \draw[line cap=round]
      ($ (0, 0.25em) + (n.north) $)
      -- ($ (0.2em, -0.1em) + (n.south east) $)
      .. controls ($ (-0.35em,0.1em) + (n.south) $)
      .. cycle;}}

\newcommand\steppy[1]{
  \tikz[baseline=(n.base)]{
    \node(n)[inner sep=1pt]{$#1$};
    \draw[line cap=round]
      (n.south west) parabola 
      bend ($ (0.4em,0.3em)+(n.north west) $)
      ($ (0.1em,0)+(n.north) $);}}

\newcommand\eyeO[1]{\ensuremath{#1\mathord{\wedge}}}
\newcommand\eyeC[1]{\ensuremath{#1\mathord{\vee}}}

\newcommand\blows[2]{\ensuremath{#1\equiv#2}}
\newcommand\pushes[2]{\ensuremath{#1\sqsupset#2}}

\newcommand\jumpsover[2]{\ensuremath{#1\:\jumpbox{\:#2\:}}}
\newcommand\shadows[2]{\ensuremath{#1^\infty#2}}
\newcommand\tackles[2]{\ensuremath{#1\tacklebox{\,#2}}}
\newcommand\stepson[2]{\ensuremath{#1\:\steppy{\:#2}}}
\newcommand\flee[1]{\ensuremath{#1\raisebox{-1pt}{\intprod}}}
\newcommand\probly[1]{\ensuremath{(#1)}}

\newcommand\onehalf{\ensuremath{\sfrac{1}{2}}}
\newcommand\onequarter{\ensuremath{\sfrac{1}{4}}}
\newcommand\threequarters{\ensuremath{\sfrac{3}{4}}}

\newcommand\crouch[1]{\ensuremath{#1\threequarters}}
\newcommand\scoot[1]{\ensuremath{#1\onehalf}}
\newcommand\crawl[1]{\ensuremath{#1\onequarter}}
\newcommand\squat[1]{\ensuremath{\scoot{#1}}}

\newcommand\aboveU[1]{\ensuremath{#1\mathord{>}}}
\newcommand\belowU[1]{\ensuremath{#1\mathord{<}}}

% shortcuts
\newcommand\BEQ[1]{\begin{equation*}#1\end{equation*}}
\newcommand\BG[1]{\begin{gathered}#1\end{gathered}}

% change line spacing in amsmath align envs
\setlength\jot{0.5pt}