-
Notifications
You must be signed in to change notification settings - Fork 1
/
customCommands.tex
executable file
·46 lines (42 loc) · 1.46 KB
/
customCommands.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
39
40
41
42
43
44
45
46
\renewcommand{\vec}{\mathbf}
\newcommand{\mat}{\mathbf}
\newcommand{\F}{\mathbf{F}}
\newcommand{\E}{\mathbf{E}}
\newcommand{\B}{\mathbf{B}}
\newcommand{\J}{\mathbf{J}}
\newcommand{\R}{\mathbf{R}}
\newcommand{\avec}{\mathbf{a}}
\newcommand{\rvec}{\mathbf{r}}
\newcommand{\vvec}{\mathbf{v}}
\newcommand{\xvec}{\mathbf{x}}
\newcommand{\diverg}{\nabla \cdot}
\newcommand{\curl}{\nabla \times}
\newcommand{\laplace}{\nabla^2}
\newcommand{\definition}{\emph}
\newcommand{\dpart}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\dd}[2]{\frac{\mathrm{d}#1}{\mathrm{d}#2}}
\newcommand{\dm}[1]{\mathrm{d}#1}
\newcommand{\unitvector}[1]{\hat {\vec{#1}}}
\newcommand{\liouville}{i\hat{\vec L}}
\newcommand{\liouviller}{i\hat{\vec L}_r}
\newcommand{\liouvillep}{i\hat{\vec L}_p}
\newcommand{\oper}[1]{ \hat{\vec{#1}} }
\newcommand{\classname}[1]{\texttt{#1}}
\newcommand{\ihat}{\hat{\textbf{\i}}}
\newcommand{\jhat}{\hat{\textbf{\j}}}
\newcommand{\khat}{\hat{\textbf{k}}}
\providecommand{\e}[1]{\ensuremath{\times 10^{#1}}}
% Quantum stuff
\newcommand{\infint}{\int_{-\infty}^{\infty}}
% Equations
\newcommand{\bea}{\begin{eqnarray*}}
\newcommand{\eea}{\end{eqnarray*}}
\newcommand{\beq}{\begin{equation}}
\newcommand{\eeq}{\end{equation}}
\def\signed #1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em
\hbox{}\nobreak\hfil(#1)%
\parfillskip=0pt \finalhyphendemerits=0 \endgraf}}
\newsavebox\mybox
\newenvironment{aquote}[1]
{\savebox\mybox{#1}\begin{quote}}
{\signed{\usebox\mybox}\end{quote}}