aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/tex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--doc/thesis/tex/docmacros.sty18
-rw-r--r--doc/thesis/tex/preamble.tex2
2 files changed, 19 insertions, 1 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}
diff --git a/doc/thesis/tex/preamble.tex b/doc/thesis/tex/preamble.tex
index 0d42fe5..8177fa1 100644
--- a/doc/thesis/tex/preamble.tex
+++ b/doc/thesis/tex/preamble.tex
@@ -11,7 +11,7 @@
\let\clearpage\relax
\let\cleardoublepage\relax
- \automark[section]{chapter}
+ % \automark[section]{chapter}
\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}
\renewcommand{\sectionmark}[1]{\markright{\textsc{\thesection}\enspace\spacedlowsmallcaps{#1}}}