-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacros.tex
More file actions
33 lines (27 loc) · 814 Bytes
/
macros.tex
File metadata and controls
33 lines (27 loc) · 814 Bytes
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
\newcommand{\norm}[1]{\| #1\|}
\newcommand{\VS}{\textit{\textbf{V}}}
\newcommand{\Scalars}{\textit{\textbf{S}}}
\newcommand{\bra}[1]{\langle #1 |}
\newcommand{\ket}[1]{| #1 \rangle }
\newcommand{\braket}[2]{\langle #1|#2\rangle}
\newcommand{\bbraket}[3]{ \langle #1 | #2 | #3 \rangle }
\newcommand{\Tr}{\textrm{Tr}}
\renewcommand{\Re}{\textrm{Re}}
\renewcommand{\Im}{\textrm{Im}}
% Pure math
\newcommand{\reals}{\mathbb{R}}
\newcommand{\complexes}{\mathbb{C}}
% Book formatting
\newcommand{\newword}[1]{\textbf{#1}}
\newcommand{\physicalsystemexample}{\clubsuit}
% Figures. Example usage:
% \quickfig{\columnwidth}{my_image}{This is the caption}{fig:my_fig}
\newcommand{\quickfig}[4]{
\begin{figure}
\begin{centering}
\includegraphics[width=#1]{#2}
\par\end{centering}
\caption{#3}
\label{#4}
\end{figure}
}