diff options
Diffstat (limited to 'provider/templates')
-rw-r--r-- | provider/templates/preamble.tex | 18 | ||||
-rw-r--r-- | provider/templates/preview.tex (renamed from provider/templates/math.tex) | 4 |
2 files changed, 19 insertions, 3 deletions
diff --git a/provider/templates/preamble.tex b/provider/templates/preamble.tex new file mode 100644 index 0000000..129eba8 --- /dev/null +++ b/provider/templates/preamble.tex | |||
@@ -0,0 +1,18 @@ | |||
1 | \usepackage[utf8]{inputenc} | ||
2 | |||
3 | \usepackage{amssymb} | ||
4 | \usepackage{amsmath} | ||
5 | \usepackage{mathrsfs} | ||
6 | |||
7 | \usepackage{tikz} | ||
8 | |||
9 | \usetikzlibrary{cd} | ||
10 | |||
11 | \newcommand*{\ca}[1]{\ensuremath{\mathbf{#1}}} | ||
12 | \newcommand*{\idarr}[1]{\ensuremath{\mathrm{id}_{#1}}} | ||
13 | |||
14 | \newcommand{\id}{\ensuremath{\mathrm{id}}} | ||
15 | \renewcommand{\implies}{\rightarrow} | ||
16 | |||
17 | \newcommand{\N}{\ensuremath{\mathbb{N}}} | ||
18 | \newcommand{\arr}[3]{\ensuremath{\begin{tikzcd}[ampersand replacement=\&]{#1} \rar{#2} \& {#3}\end{tikzcd}}} | ||
diff --git a/provider/templates/math.tex b/provider/templates/preview.tex index 23774bf..da3c585 100644 --- a/provider/templates/math.tex +++ b/provider/templates/preview.tex | |||
@@ -1,9 +1,7 @@ | |||
1 | \documentclass[14pt,preview,border=1pt,class=extarticle]{standalone} | 1 | \documentclass[14pt,preview,border=1pt,class=extarticle]{standalone} |
2 | \include{preamble} | 2 | $partial("templates/preamble.tex")$ |
3 | \begin{document} | 3 | \begin{document} |
4 | \begin{preview} | 4 | \begin{preview} |
5 | \( | ||
6 | $body$ | 5 | $body$ |
7 | \) | ||
8 | \end{preview} | 6 | \end{preview} |
9 | \end{document} | 7 | \end{document} |