-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacros.tex
37 lines (24 loc) · 1.18 KB
/
macros.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
\newtheorem{theorem}{Theorem}
\newcommand{\diff}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\diffr}[1]{\diff{#1}{r}}
\newcommand{\diffth}[1]{\diff{#1}{\theta}}
\newcommand{\diffz}[1]{\diff{#1}{z}}
\newcommand{\vth}{V_{\theta}}
\newcommand{\twochoices}[2]{\left\{ \begin{array}{lcc}
\displaystyle #1 \\ \vspace{-10pt} \\
\displaystyle #2 \end{array} \right. } %}
\newcommand{\threechoices}[3]{\left\{ \begin{array}{lcc}
#1 \\ #2 \\ #3 \end{array} \right. } %}
\newcommand{\fourchoices}[4]{\left\{ \begin{array}{lcc}
#1 \\ #2 \\ #3 \\ #4 \end{array} \right. } %}
\newcommand{\twovec}[2]{\left(\begin{array}{c} #1 \\ #2 \end{array}\right)}
\newcommand{\threevec}[3]{\left(\begin{array}{c} #1 \\ #2 \\ #3 \end{array}\right)}
\newcommand{\twomatrix}[4]{\left(\begin{array}{cc} #1 & #2 \\ #3 & #4 \end{array}\right)}
\newcommand{\keyterm}[1]{\textbf{\textit{#1}}}
\newcommand{\citedterm}[1]{\textit{#1}}
\newcommand{\hll}[2]{{\sethlcolor{#1}\hl{#2}}}
% \newcommand{\todo}[1]{[]}
\newcommand{\todo}[1]{\hll{yellow}{\textbf{#1}}}
\newcommand{\defineterm}[2]{\textbf{#1} --- {#2}}
\newcommand{\revision}[1]{\textcolor{red}{#1}}
% \newcommand{\revision}[1]{#1}