diff options
author | Naoki Pross <np@0hm.ch> | 2021-10-02 19:46:36 +0200 |
---|---|---|
committer | Naoki Pross <np@0hm.ch> | 2021-10-02 19:46:36 +0200 |
commit | ee2f2515612f7d3355a5f277e88ce6c5501afcc8 (patch) | |
tree | e05f6abdebeaa3d51bc742f815c2f6bd2654e4d9 /tex/docmacros.sty | |
parent | Update README.md (diff) | |
download | DigSig1-ee2f2515612f7d3355a5f277e88ce6c5501afcc8.tar.gz DigSig1-ee2f2515612f7d3355a5f277e88ce6c5501afcc8.zip |
Review notes from lecture 1
Diffstat (limited to '')
-rw-r--r-- | tex/docmacros.sty | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tex/docmacros.sty b/tex/docmacros.sty new file mode 100644 index 0000000..41c7673 --- /dev/null +++ b/tex/docmacros.sty @@ -0,0 +1,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\}} |