From ca1b1c0488313edb35ac00badee2727e24e07f0b Mon Sep 17 00:00:00 2001
From: Naoki Pross <np@0hm.ch>
Date: Wed, 13 Oct 2021 14:49:19 +0200
Subject: More on QAM

---
 doc/thesis/tex/docmacros.sty | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

(limited to 'doc/thesis/tex/docmacros.sty')

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}}}
+
-- 
cgit v1.2.1

