aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/tex/docmacros.sty
diff options
context:
space:
mode:
authorNaoki Pross <np@0hm.ch>2021-10-13 14:49:19 +0200
committerNaoki Pross <np@0hm.ch>2021-10-13 14:49:19 +0200
commitca1b1c0488313edb35ac00badee2727e24e07f0b (patch)
tree7b1db4379e979d0ef25e4159bf699abfee9f52bd /doc/thesis/tex/docmacros.sty
parentFix workflow (diff)
downloadFading-ca1b1c0488313edb35ac00badee2727e24e07f0b.tar.gz
Fading-ca1b1c0488313edb35ac00badee2727e24e07f0b.zip
More on QAM
Diffstat (limited to '')
-rw-r--r--doc/thesis/tex/docmacros.sty15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/thesis/tex/docmacros.sty b/doc/thesis/tex/docmacros.sty
index cc25068..433fe19 100644
--- a/doc/thesis/tex/docmacros.sty
+++ b/doc/thesis/tex/docmacros.sty
@@ -2,6 +2,7 @@
\ProvidesPackage{tex/docmacros}[2021/09/27 v0.1 Document Macros]
\RequirePackage{amsmath}
+\RequirePackage{bm}
% Probability
\DeclareMathOperator{\expectation}{E}
@@ -16,6 +17,20 @@
% Functions
\DeclareMathOperator{\sinc}{sinc}
+% Complex numbers
+\renewcommand{\Re}[1]{\mathrm{Re} \left\{#1\right\}}
+\renewcommand{\Im}[1]{\mathrm{Im} \left\{#1\right\}}
+
% Linear operators
\DeclareMathOperator{\fourier}{\mathcal{F}}
\DeclareMathOperator{\hilbert}{\mathcal{H}}
+
+% Vectors and matrices
+\renewcommand{\vec}[1]{\mathbf{\bm{#1}}}
+\newcommand{\uvec}[1]{\vec{\hat{#1}}}
+
+\newcommand{\dotp}{\boldsymbol\cdot}
+\newcommand{\crossp}{\boldsymbol\times}
+
+\newcommand{\mx}[1]{\bm{\mathrm{#1}}}
+