aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/tex/docmacros.sty
diff options
context:
space:
mode:
authorNaoki Pross <np@0hm.ch>2021-10-07 13:10:37 +0200
committerNaoki Pross <np@0hm.ch>2021-10-07 13:10:37 +0200
commiteb8dfc8e9c4e8480a4ff74e5a515c6d52fef7aea (patch)
treea8d2295dd8f69f1445d3afb43a3cbfb529d0336d /doc/thesis/tex/docmacros.sty
parentReview sec 3 of project plan (diff)
downloadFading-eb8dfc8e9c4e8480a4ff74e5a515c6d52fef7aea.tar.gz
Fading-eb8dfc8e9c4e8480a4ff74e5a515c6d52fef7aea.zip
Disable thesis template
Diffstat (limited to 'doc/thesis/tex/docmacros.sty')
-rw-r--r--doc/thesis/tex/docmacros.sty18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/thesis/tex/docmacros.sty b/doc/thesis/tex/docmacros.sty
new file mode 100644
index 0000000..2dacdf4
--- /dev/null
+++ b/doc/thesis/tex/docmacros.sty
@@ -0,0 +1,18 @@
+\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\}}
+
+% Functions
+\DeclareMathOperator{\sinc}{sinc}