tr use 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 , tr also supports backend solution, you can put tikz program in @tikzcd{...} block to draw quiver, for example
Or @texfig{...} for more flexible input (anything allowed in 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 as backend, check Typst backend for more information.