tr use Katex in two forms: @m{...} and @mm{...}. One for inline and one for block, e.g. @m{a \in \R} produces
; @mm{ \int_{a}^{b} x^2 \,dx } produces
Except Katex, tr also supports backend LaTeX solution, you can put tikz program in @tikzcd{...} block to draw quiver, for example
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}
"]{
...
}
We support @typst{...} which use Typst as backend, check Typst backend for more information.