Kolaru / MathTeXEngine.jl

A latex math mode engine in pure Julia.
MIT License
96 stars 20 forks source link

Add support for n-th roots, e.g. `\sqrt[3]{2}`? #34

Open fingolfin opened 3 years ago

fingolfin commented 3 years ago

This doesn't seem to be supported right now?

julia> texparse(raw"\sqrt[3]{2}")
ERROR: TeXParseError: end of string reached with unfinished argument_gatherer
at position 10 (string index 10)
\sqrt[3]{2}
         ^
Stack before
...
Kolaru commented 3 years ago

It is indeed not supported.

It is on my list, but since it requires the support for optional argument in commands, I will need to add some rules to the parser and it is always a bit tricky.