about summary refs log tree commit diff stats
path: root/common/latex/preamble/core/math.tex
blob: 170f57a1daeddd907f20be9cc71cfdf5c1c815e1 (plain) (blame)
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
\usepackage{amsmath}  % extensive math commands
\usepackage{amsfonts} % more fonts for math (fracture, boldfaced and so on)
\usepackage{mathtools} % extension to amsmath, with more sensible defaults (eq numbers only when referenced)
\usepackage{amssymb} % more symbols, mostly redundant because already loaded by something else
\usepackage{mathrsfs} % support for the RSFS fonts (through \mathscr command)
\usepackage{cancel} % allows to cancel a part in math mode, for example to shorten a term
\usepackage{bm} % bold mode in math, but better than \boldsymbol command from ams. \bm

% number sets
\NewDocumentCommand\N{}{\ensuremath{\mathbb{N}}}
\NewDocumentCommand\R{}{\ensuremath{\mathbb{R}}}
\NewDocumentCommand\Z{}{\ensuremath{\mathbb{Z}}}
\NewDocumentCommand\Q{}{\ensuremath{\mathbb{Q}}}
\NewDocumentCommand\C{}{\ensuremath{\mathbb{C}}}
\let\originalO\O
\RenewDocumentCommand\O{}{\ensuremath{\emptyset}} % replaces the Ø

% readable limits
\let\originalLim\lim
\RenewDocumentCommand\lim{}{\originalLim\limits}

% aliases
\let\implies\Rightarrow
\let\impliedby\Leftarrow

\let\originalEpsilon\epsilon
\RenewDocumentCommand\epsilon{}{\varepsilon} % I like the textual epsilon more