Kolaru/MathTeXEngine.jl

\textrm implementation?

Closed this issue · 1 comments

I can use \mathrm but is \textrm already available to be used in Makie? I get an error.

caused by: TeXParseError: unsupported command \textrm
at position 9 (string index 9)
 \textrm{NEE}  \ a [gC \ mm^{-2}yr^{-1}]
        ^
Stack before
[1] TeXExpr :expr

This would be a minimum working example.

f = Figure(resolution = (1400, 400))
ax_beech = Axis(f[2,1], xgridvisible = false, ygridvisible = false, xlabel = "Mortality [%] Beech", ylabel = L" \textrm{NEE}  \ a [gC \ mm^{-2}yr^{-1}]")

\mathrm works but I also want to use \textrm

Kolaru commented

Fixed on master.