« Home

Math Support [guide-0004]

tr use Katex in two forms: @m{...} and @mm{...}. One for inline and one for block, e.g. @m{a \in \R} produces aRa \in \R ; @mm{ \int_{a}^{b} x^2 \,dx } produces

abx2dx \int_{a}^{b} x^2 \,dx

Except Katex, tr also supports backend LaTeX solution, you can put tikz program in @tikzcd{...} block to draw quiver, for example

figure tex1820

Or @texfig{...} for more flexible input (anything allowed in LaTeX document block). For example

@texfig{
...
}

If you want to use packages, write as below (the change is introduced since texfig now must manually assigns LaTeX header part)

@texfig[#:header @"
\usepackage{tikz}
\usetikzlibrary{spath3, intersections, backgrounds}
"]{
...
}