adrianromero adrianromero - 6 months ago 72
Java Question

Parsing latex with jlatexmath

I am using to parse latex math formulas in java. When trying to parse a simple complex number:

TeXFormula tex = new TeXFormula("32 + 45~i");

I get the following exception:

org.scilab.forge.jlatexmath.ParseException: Unknown character : '~' (or 126)

The character '~' is supposed to be an unbreakable space as explained in this documentation.

The reason of using '~' is because I want to render the latex formula returned by a different library: and it includes the '~' character in some formulas.

Does jlatexmath support '~' or do I have to use a different spacing command?


The ~ is now allowed in JLaTeXMath:

Feel free to report bugs.