-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.tex
39 lines (31 loc) · 1.07 KB
/
macros.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
\usepackage{amsmath,amsthm,amssymb}
\usepackage{mathtools}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{xspace}
\usepackage{comment}
\usepackage{url} % for bib entries
\usepackage{fancyhdr}
%% no paragraph offsets
\usepackage{parskip}
\setlength{\parskip}{0.1cm}
\setlength{\parindent}{0mm}
\newcommand{\rd}[1]{\ref{def:#1}}
\newcommand{\todo}[1]{\textcolor{gray}{\bf{#1}}} % TODO note
\newcommand{\attr}[1]{\textcolor{gray}{\bf{#1}}} % attribution
% bold vector
\renewcommand{\vec}[1]{\mathbf{#1}}
% common definitions
\newcommand*{\op}[1]{\operatorname{#1}}
%\newcommand*{\diff}[1]{\operatorname{d#1}}
\newcommand*{\vr}[1]{\mathbb{R}^{#1}}
\newcommand\N{\mathcal{N}}
\newcommand\inv[1]{{#1}^{-1}}
\newcommand\abs[1]{\left|#1\right|}
\newcommand\norm[1]{\left|#1\right|}
\newcommand\e[1]{\mathrm{e}^{#1}}
\renewcommand\exp[1]{\mathbf{exp}\,\left\{#1\right\}}
\newcommand\like{\propto}
\newcommand{\homotopic}[1]{\ensuremath{\stackrel{\mbox{$#1$}}{\simeq}}}
\newcommand{\too}[1]{\ensuremath{\stackrel{\mbox{$#1$}}{\to}}}
\newcommand{\pair}[2]{\ensuremath{\langle #1, #2 \rangle}}