about summary refs log tree commit diff stats
path: root/common/latex/preamble/core/math.tex
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-03 11:17:29 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-03 11:17:29 +0200
commit1b0d1d4b8f373d9c05996055fb85ea8a2bb949a7 (patch)
tree93781d3a88a498ec27ea1e3f550e899476f11496 /common/latex/preamble/core/math.tex
parentfix(templates/latex/{academia,letter}): Share files and update to lpm v2.0 (diff)
downloadflake-templates-1b0d1d4b8f373d9c05996055fb85ea8a2bb949a7.tar.gz
flake-templates-1b0d1d4b8f373d9c05996055fb85ea8a2bb949a7.zip
refactor(templates/latex): Split the preamble up into multiple files
Diffstat (limited to 'common/latex/preamble/core/math.tex')
-rw-r--r--common/latex/preamble/core/math.tex25
1 files changed, 25 insertions, 0 deletions
diff --git a/common/latex/preamble/core/math.tex b/common/latex/preamble/core/math.tex
new file mode 100644
index 0000000..35144df
--- /dev/null
+++ b/common/latex/preamble/core/math.tex
@@ -0,0 +1,25 @@
+\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}}}
+\NewDocumentCommand\O{}{\ensuremath{\emptyset}} % replaces the Ø
+
+% readable limits
+\let\svlim\lim{}
+\renewcommand\lim{\svlim\limits}
+
+% aliases
+\let\implies\Rightarrow{}
+\let\impliedby\Leftarrow{}
+
+\let\epsilon{\varepsilon} % I like the textual epsilon more