commit 062d7c2a83b0d1b3b88d76138c0fc96ee77a5a60
parent c2a23c45a9097538508d27c96dfb90d8fe786141
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 4 May 2019 13:04:06 -0400
Update LaTeX macros
Diffstat:
1 file changed, 57 insertions(+), 27 deletions(-)
diff --git a/static/math_macros.sty b/static/math_macros.sty
@@ -16,32 +16,59 @@
\newcommand{\conj}[1]{\overline{#1}}
% Shorthands for mean.
-\newcommand{\ma}{\mean{a}}
-\newcommand{\mb}{\mean{b}}
-\newcommand{\mc}{\mean{c}}
-\newcommand{\md}{\mean{d}}
-\newcommand{\me}{\mean{e}}
-\newcommand{\mf}{\mean{f}}
-\newcommand{\mg}{\mean{g}}
-\newcommand{\mh}{\mean{h}}
-\newcommand{\mi}{\mean{i}}
-\newcommand{\mj}{\mean{j}}
-\newcommand{\mk}{\mean{k}}
-\newcommand{\ml}{\mean{l}}
-\newcommand{\mm}{\mean{m}}
-\newcommand{\mn}{\mean{n}}
-\newcommand{\mo}{\mean{o}}
-% \newcommand{\mp}{\mean{p}}
-\newcommand{\mq}{\mean{q}}
-\newcommand{\mr}{\mean{r}}
-\newcommand{\ms}{\mean{s}}
-\newcommand{\mt}{\mean{t}}
-% \newcommand{\mu}{\mean{u}}
-\newcommand{\mv}{\mean{v}}
-\newcommand{\mw}{\mean{w}}
-\newcommand{\mx}{\mean{x}}
-\newcommand{\my}{\mean{y}}
-\newcommand{\mz}{\mean{z}}
+\newcommand{\ba}{\mean{a}}
+\newcommand{\bb}{\mean{b}}
+\newcommand{\bc}{\mean{c}}
+\newcommand{\bd}{\mean{d}}
+\newcommand{\be}{\mean{e}}
+% \newcommand{\bf}{\mean{f}}
+\newcommand{\bg}{\mean{g}}
+\newcommand{\bh}{\mean{h}}
+\newcommand{\bi}{\mean{i}}
+\newcommand{\bj}{\mean{j}}
+\newcommand{\bk}{\mean{k}}
+\newcommand{\bl}{\mean{l}}
+% \newcommand{\bm}{\mean{m}}
+\newcommand{\bn}{\mean{n}}
+\newcommand{\bo}{\mean{o}}
+\newcommand{\bp}{\mean{p}}
+\newcommand{\bq}{\mean{q}}
+\newcommand{\br}{\mean{r}}
+\newcommand{\bs}{\mean{s}}
+\newcommand{\bt}{\mean{t}}
+\newcommand{\bu}{\mean{u}}
+\newcommand{\bv}{\mean{v}}
+\newcommand{\bw}{\mean{w}}
+\newcommand{\bx}{\mean{x}}
+\newcommand{\by}{\mean{y}}
+\newcommand{\bz}{\mean{z}}
+
+\newcommand{\bA}{\mean{A}}
+\newcommand{\bB}{\mean{B}}
+\newcommand{\bC}{\mean{C}}
+\newcommand{\bD}{\mean{D}}
+\newcommand{\bE}{\mean{E}}
+\newcommand{\bF}{\mean{F}}
+\newcommand{\bG}{\mean{G}}
+\newcommand{\bH}{\mean{H}}
+\newcommand{\bI}{\mean{I}}
+\newcommand{\bJ}{\mean{J}}
+\newcommand{\bK}{\mean{K}}
+\newcommand{\bL}{\mean{L}}
+\newcommand{\bM}{\mean{M}}
+\newcommand{\bN}{\mean{N}}
+\newcommand{\bO}{\mean{O}}
+\newcommand{\bP}{\mean{P}}
+\newcommand{\bQ}{\mean{Q}}
+\newcommand{\bR}{\mean{R}}
+\newcommand{\bS}{\mean{S}}
+\newcommand{\bT}{\mean{T}}
+\newcommand{\bU}{\mean{U}}
+\newcommand{\bV}{\mean{V}}
+\newcommand{\bW}{\mean{W}}
+\newcommand{\bX}{\mean{X}}
+\newcommand{\bY}{\mean{Y}}
+\newcommand{\bZ}{\mean{Z}}
\newcommand{\dd}{\mathop{}\,\mathrm{d}}
\newcommand{\der}[2][]{\frac{\mathrm{d}#1}{\mathrm{d}#2}}
@@ -56,16 +83,19 @@
\newcommand{\ldto}{\overset{d}\longrightarrow}
\newcommand{\asto}{\overset{\text{a.s.}}\longrightarrow}
-\newcommand{\sgn}{\operatorname{sgn}}
+\newcommand{\sign}{\operatorname{sign}}
\newcommand{\im}{\operatorname{Im}}
\newcommand{\re}{\operatorname{Re}}
\newcommand{\rank}{\operatorname{rank}}
+\newcommand{\trace}{\operatorname{trace}}
\newcommand{\diag}{\operatorname{diag}}
\newcommand{\col}{\operatorname{col}}
\newcommand{\row}{\operatorname{row}}
\newcommand{\arcsinh}{\operatorname{arcsinh}}
\newcommand{\arccosh}{\operatorname{arccosh}}
\newcommand{\arctanh}{\operatorname{arctanh}}
+\newcommand{\argmax}{\mathop{\arg\max}}
+\newcommand{\argmin}{\mathop{\arg\min}}
\newcommand{\As}{\text{ as }}
% \newcommand{\And}{\text{ and }}