opencollab / jlatexmath

A Java API to render LaTeX
Other
513 stars 109 forks source link

TeXFormula throws ParseException error #94

Closed ghost closed 8 months ago

ghost commented 2 years ago

I am trying to parse the following LaTex on an Android app: \[\begin{align} & \text{Suppose a cube is cut open } \\ & \text{and folded out}\text{. }\!\!~\!\!\text{ Which of } \\ & \text{the following nets will not } \\ & \text{give a cube when folded up?} \\ \end{align}\]

But when parsing the string using TeXFormula formula = new TeXFormula(builder); the following exception is thrown:

org.scilab.forge.jlatexmath.ParseException: Problem with command [ at position 0:236

I think it has to do with the following sequence of symbols: ~\!.

Could someone please help me?

I have the following line in my TeXFormula.class: public static final java.lang.String VERSION = "1.0.3";

murkle commented 2 years ago

Seems OK to me - please try in the experimental branch

ghost commented 2 years ago

Thank you for your response.

One more question: How do I find the char at position 0:236 given in the error message?