aboutsummaryrefslogtreecommitdiffstats
path: root/tex/docmacros.sty
blob: 41c76738e640f36066f3c569d20f4c377ca4e19f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tex/docmacros}[2021/09/27 v0.1 Document Macros]

\RequirePackage{amsmath}
\RequirePackage{amsthm}

% Probability
\DeclareMathOperator{\expectation}{E}
\newcommand{\E}[1]{\expectation \left\{#1\right\}}

\DeclareMathOperator{\variance}{Var}
\newcommand{\Var}[1]{\variance \left\{#1\right\}}

\DeclareMathOperator{\probability}{Pr}
\renewcommand{\Pr}[1]{\probability \left\{#1\right\}}