-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.sty
executable file
·65 lines (58 loc) · 1.67 KB
/
macros.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
\newcommand{\act}[1]{%
\relax\ifmmode
\mathord{\mathcode`\-="702D \sf #1\mathcode`\-="2200}%
\else
% $\mathord{\mathcode`\-="702D\sf #1\mathcode`\-="2200}$%
% {\sfshape #1}%
{\sf #1}%
\fi
}
\newcommand{\tup}[1]{%
\relax\ifmmode
% \mathord{\mathcode`\-="702D\bf #1\mathcode`\-="2200}%
\langle #1 \rangle%
\else
% $\mathord{\mathcode`\-="702D\bf #1\mathcode`\-="2200}$%
$\langle$ #1 $\rangle$%
\fi
}
\newcommand{\seq}[1]{%
\relax\ifmmode
% \mathord{\mathcode`\-="702D\bf #1\mathcode`\-="2200}%
\langle \! \langle #1 \rangle \! \rangle%
\else
% $\mathord{\mathcode`\-="702D\bf #1\mathcode`\-="2200}$%
$\langle \! \langle$ #1 $\rangle \! \rangle$%
\fi
}
\newcommand{\lit}[1]{%
\relax\ifmmode
\mathord{\mathcode`\-="702D\sf #1\mathcode`\-="2200}%
\else
% $\mathord{\mathcode`\-="702D\sf #1\mathcode`\-="2200}$%
% {\itshape #1}%
{\it #1}%
\fi
}
\newcommand{\ms}[1]{%
\relax\ifmmode
\mathord{\mathcode`\-="702D\it #1\mathcode`\-="2200}%
\else
% $\mathord{\mathcode`\-="702D\it #1\mathcode`\-="2200}$%
% {\itshape #1}%
{\it #1}%
\fi
}
\newcommand{\two}[4]{
\parbox{\columnwidth}{\vspace{1pt}\vfill
\parbox[l]{#1\columnwidth}{#3}%
\parbox[r]{#2\columnwidth}{#4}%
}}
%\newcommand{\ff}{\scriptsize}
%\newcommand{\B}{\vspace*{-\smallskipamount}}
%\newcommand{\BB}{\vspace*{-\medskipamount}}
%\newcommand{\BBB}{\vspace*{-\bigskipamount}}
%\newcommand{\F}{\vspace*{\smallskipamount}}
\newcommand{\FF}{\vspace*{\medskipamount}}
%\newcommand{\FFF}{\vspace*{\bigskipamount}}
\newcommand{\T}{\hspace*{1em}}