diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-02-02 19:14:43 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-02-02 19:14:43 +0100 |
| commit | 6af9f6bb534f121d9acce6f49cf7acd18973ccde (patch) | |
| tree | c710eec22b2644c81b76a5f9dd921b99bf9c690c /provider/templates | |
| parent | d03f2fb42f560728e84e4301d9d7b41827587ef2 (diff) | |
| download | dirty-haskell.org-6af9f6bb534f121d9acce6f49cf7acd18973ccde.tar dirty-haskell.org-6af9f6bb534f121d9acce6f49cf7acd18973ccde.tar.gz dirty-haskell.org-6af9f6bb534f121d9acce6f49cf7acd18973ccde.tar.bz2 dirty-haskell.org-6af9f6bb534f121d9acce6f49cf7acd18973ccde.tar.xz dirty-haskell.org-6af9f6bb534f121d9acce6f49cf7acd18973ccde.zip | |
Extended tex & math support
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} |
