-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.sty
137 lines (121 loc) · 5.37 KB
/
commands.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
\ProvidesPackage{commands}
\usepackage{amsmath} % AMS Math Package
\usepackage{amsthm} % Theorem Formatting
\usepackage{amssymb} % Math symbols such as \mathbb
\usepackage{graphicx} % Allows for eps images
\usepackage[dvips,letterpaper,margin=1in,bottom=0.7in]{geometry}
\usepackage{commath}
\usepackage{bm}
\usepackage{tensor}
\usepackage{mathtools}
\usepackage{esint}
\usepackage{pgfplots}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{patterns,hobby}
\usepackage{xcolor}
\usepackage{float}
\usepackage{hyperref}
\usepackage{fullpage}
\usepackage{enumerate}
\usepackage[breakable]{tcolorbox}
\tcbuselibrary{theorems}
\usepackage{siunitx}
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\let\vaccent=\v % rename builtin command \v{} to \vaccent{}
\renewcommand{\v}[1]{\ensuremath{\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{\avg}[1]{\left< #1 \right>} % for average
\newcommand{\pdc}[3]{\left( \frac{\partial #1}{\partial #2}
\right)_{#3}} % for thermodynamic partial derivatives
\let\baraccent=\= % rename builtin command \= to \baraccent
\newcommand{\divides}{\phantom{i} \arrowvert \phantom{i}}
\newcommand{\ndiv}{\nmid}
\newcommand{\bicon}{\Leftrightarrow}
\newcommand{\imply}{\Rightarrow}
\newcommand{\sol}{\\ \\ \emph{Solution.}}
\newcommand{\soln}{\emph{Solution.}}
\newcommand{\pset}[1]{\mathcal{P}({#1})}
\newcommand{\rel}{\mathrel{R}}
\newcommand{\nrel}{\not \mathrel{R}}
\newcommand{\Arg}[1]{\mathrm{Arg}\left({#1}\right)}
\newcommand{\limi}[1]{\lim_{#1 \rightarrow \infty}}
\newcommand{\limni}[1]{\lim_{#1 \rightarrow -\infty}}
\newcommand{\rie}{\mathcal{R}}
\newcommand{\intinf}{\int_{-\infty}^{\infty}}
\newcommand{\infint}{\int_{-\infty}^{\infty}}
\renewcommand{\=}[1]{\stackrel{#1}{=}} % for putting numbers above
\renewcommand{\emptyset}{\varnothing}
\renewcommand{\H}{\mathcal{H}}
%\dif is differential symbol
%\od[n-th deriv]{f}{x}, n-th deriv can be left out for 1
%\pd does same thing as above, for partial derivatives
%adding t (ex. \tpd) will make it text style, d (ex. \dpd) will make it display style
%\md will do mixed derivatives. ex. \md{f}{5}{x}{2}{y}{3}
%\eval[optional argument]{first argument} is a command for the notation of an expression denoted by the first argument evaluated at a particular condi- tion. The value for the optional argument ranges from 0 to 4 with higher values resulting in larger delimiters. The default value for the optional argument is -1 which results in automatic sizing for the delimiters. For example, \eval{f(\epsilon)}_{\epsilon=0}
%\enVert}[optional argument]{first argument}is a command which enclose the argument in double vert-bar delimiters.
%\fullfunction{first argument}....{fifth argument}isacommandwhich nicely formats a function. The first argument denotes the function name, the second the domain and the third the image of the function. The forth is the parameter which is mapped to the expression denoted by argument five. E.g.:\fullfunction{f}{\mathbb R}{\mathbb R}{x}{\sqrt{x}}
\newcommand{\xhat}{\hat{\v{x}}}
\newcommand{\yhat}{\hat{\v{y}}}
\newcommand{\zhat}{\hat{\v{z}}}
\newcommand{\rhat}{\hat{\v{r}}}
\newcommand{\shat}{\hat{\v{s}}}
\newcommand{\phihat}{\hat{\bm{\phi}}}
\newcommand{\thetahat}{\hat{\bm{\theta}}}
\newcommand{\m}[1]{\begin{pmatrix}#1\end{pmatrix}}
\newcommand{\paulix}{\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}}
\newcommand{\pauliy}{\begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}}
\newcommand{\pauliz}{\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}}
\newcommand{\imatrix}{\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}}
\newcommand{\zmatrix}{\begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}}
\providecommand{\fr}{\frac}
\providecommand{\RR}{\mathbb{R}}
\providecommand{\NN}{\mathbb{N}}
\providecommand{\ZZ}{\mathbb{Z}}
\providecommand{\QQ}{\mathbb{Q}}
\providecommand{\CC}{\mathbb{C}}
\providecommand{\II}{\mathbb{I}}
\providecommand{\seq}{\subseteq}
\providecommand{\e}{\epsilon}
\providecommand{\p}{\partial}
\providecommand{\dag}{\dagger}
\newcommand{\heading}[2]{
\begin{tcolorbox}
\begin{center}
\begin{Large}
\textbf{#1 Homework #2} \\
\vspace{5pt}
\end{Large}
\begin{large}
Rio Weil, Student \# 47189394 \\
\vspace{5pt}
\emph{\today}
\end{large}
\end{center}
\end{tcolorbox}
}
\DeclareMathOperator{\arccosh}{arccosh}
\DeclareMathOperator{\arcsinh}{arcsinh}
\DeclareMathOperator{\arctanh}{arctanh}
\DeclareMathOperator{\arcsech}{arcsech}
\DeclareMathOperator{\arccsch}{arccsch}
\DeclareMathOperator{\arccoth}{arccoth}
\newcommand{\Tr}{\mathrm{Tr}}
\newcommand{\dyad}[2]{\lvert #1 \rangle \langle #2 \rvert}
\newcommand{\ket}[1]{\lvert #1 \rangle}
\newcommand{\bra}[1]{\langle #1 \rvert}
\newcommand{\braket}[2]{\langle #1 \lvert #2 \rangle}
\renewcommand{\abs}[1]{\lvert #1 \rvert}
\newcommand{\dc}{\substack{DC \\ \longleftrightarrow \\ \phantom{o}}}
\newtcolorbox{defbox}[1]{colback=red!5!, colframe=red!75!black,fonttitle=\bfseries, title=Definition#1}
\newtcolorbox{thmbox}[1]{colback=blue!5, colframe=blue!55!black, fonttitle=\bfseries, title=Theorem#1}
\newtcolorbox{axiombox}[1]{colback=green!5, colframe=green!35!black, fonttitle=\bfseries, title=Axiom#1}
\usepackage[sc]{mathpazo}
\hypersetup{colorlinks = true}
\let\oldphi\phi
\let\phi\varphi
\let\varphi\oldphi
\let\oldnabla\nabla
\renewcommand{\nabla}{\gv{\oldnabla}}