-
Notifications
You must be signed in to change notification settings - Fork 1
/
notes-commands.sty
105 lines (96 loc) · 4.16 KB
/
notes-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
\ProvidesPackage{notes-commands}
\usepackage[utf8]{inputenc}
\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{tensor}
\usepackage{mathtools}
\usepackage{tikz}
\usepackage{physics}
\usepackage{xcolor}
\usepackage{float}
\usepackage{hyperref}
\usepackage{fullpage}
\usepackage{enumerate}
\usepackage{bm}
\usepackage[breakable]{tcolorbox}
\tcbuselibrary{theorems}
\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}}
\renewcommand{\=}[1]{\stackrel{#1}{=}} % for putting numbers above
\renewcommand{\emptyset}{\varnothing}
%\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{\ehat}{\hat{\v{e}}}
\newcommand{\LL}{\mathcal{L}}
\newcommand{\HH}{\mathcal{H}}
\providecommand{\wave}[1]{\v{\tilde{#1}}}
\providecommand{\fr}{\frac}
\providecommand{\RR}{\mathbb{R}}
\providecommand{\NN}{\mathbb{N}}
\providecommand{\ZZ}{\mathbb{Z}}
\providecommand{\QQ}{\mathbb{Q}}
\providecommand{\CC}{\mathbb{C}}
\providecommand{\MM}{\mathbb{M}}
\providecommand{\KK}{\mathbb{K}}
\providecommand{\II}{\mathbb{I}}
\providecommand{\DD}{\mathbb{D}}
\providecommand{\seq}{\subseteq}
\providecommand{\e}{\epsilon}
\newcommand\m[1]{\begin{bmatrix}#1\end{bmatrix}}
%
\newtheorem{prop}{Proposition}
\newtheorem{thm}{Theorem}[section]
\newtheorem{axiom}{Axiom}[section]
\newtheorem{p}{Problem}[section]
\newtheorem{problem}{}
\usepackage{cancel}
\newtheorem{lem}{Lemma}[section]
\theoremstyle{definition}
\newtheorem{dfn}{Definition}
%\renewcommand*{\qedsymbol}{$\blacksquare$}
\renewcommand\theenumi{\alph{enumi}}
\renewcommand\labelenumi{(\theenumi)}
\newenvironment{s}
{\begin{proof}[Solution.]}
{\end{proof}}
\newenvironment{disproof}
{\begin{proof}[Disproof.]}
{\end{proof}}
\usepackage{subfiles}