Kolaru / MathTeXEngine.jl

A latex math mode engine in pure Julia.
MIT License
97 stars 19 forks source link

\textrm implementation? #84

Closed melioristic closed 8 months ago

melioristic commented 1 year ago

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 8 months ago

Fixed on master.