-
Notifications
You must be signed in to change notification settings - Fork 0
/
shorts.tex
53 lines (52 loc) · 2.17 KB
/
shorts.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
47
48
49
50
51
52
53
\let\vaccent=\v % rename builtin command \v{} to \vaccent{}
\renewcommand{\v}[1]{\mathbf{#1}} % for vectors
\newcommand{\gv}[1]{\ensuremath{\mbox{\boldmath$ #1 $}}}
% for vectors of Greek letters
\newcommand{\uv}[1]{\ensuremath{\mathbf{\hat{#1}}}} % for unit vector
\newcommand{\abs}[1]{\left| #1 \right|} % for absolute value
\newcommand{\avg}[1]{\left< #1 \right>} % for average
\let\underdot=\d % rename builtin command \d{} to \underdot{}
\renewcommand{\d}[2]{\frac{d #1}{d #2}} % for derivatives
\newcommand{\dd}[2]{\frac{d^2 #1}{d #2^2}} % for double derivatives
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\pdone}[2]{\partial #1 / \partial #2}
% for partial derivatives
\newcommand{\pdd}[2]{\frac{\partial^2 #1}{\partial #2^2}}
% for double partial derivatives
\newcommand{\pdc}[3]{\left( \frac{\partial #1}{\partial #2}
\right)_{#3}} % for thermodynamic partial derivatives
\newcommand{\ket}[1]{\left| #1 \right>} % for Dirac bras
\newcommand{\bra}[1]{\left< #1 \right|} % for Dirac kets
\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right|
\left. #2 \vphantom{#1} \right>} % for Dirac brackets
\newcommand{\matrixel}[3]{\left< #1 \vphantom{#2#3} \right|
#2 \left| #3 \vphantom{#1#2} \right>} % for Dirac matrix elements
\newcommand{\grad}[1]{\nabla #1} % for gradient
\let\divsymb=\div % rename builtin command \div to \divsymb
%\renewcommand{\div}[1]{\nabla \cdot #1} % for divergence
%\newcommand{\curl}[1]{\nabla \times #1} % for curl
\let\baraccent=\= % rename builtin command \= to \baraccent
\renewcommand{\=}[1]{\stackrel{#1}{=}} % for putting numbers above =
\renewcommand{\phi}{\varphi}
\def\No{\textnumero}
\def\v{\mathbf{v}}
\def\u{\mathbf{u}}
\def\x{\mathbf{x}}
\def\n{\mathbf{n}}
\def\V{\mathbf{V}}
\def\U{\mathbf{U}}
\def\F{\mathbf{F}}
\def\n{\mathbf{n}}
\def\c{\mathbf{c}}
\def\p{\mathbf{p}}
\def\d{\partial}
\def\om{\ensuremath{\mbox{\boldmath$\omega$}}}
\def\Om{\ensuremath{\mbox{\boldmath$\Omega$}}}
\def\rot{\mathop{}\!\operatorname{rot}}
\def\div{\mathop{}\!\operatorname{div}}
%\def\grad{\mathop{}\!\operatorname{grad}}
\def\grad{\nabla}
%\def\Laplace{\mathop{}\!\mathbin\bigtriangleup}
\def\Laplace{\mathop{}\!\Delta}
\def\Re{\operatorname{Re}}
%\def\i{\uv{i}}