augustt198 / latex2sympy

Parse LaTeX math expressions
MIT License
388 stars 163 forks source link

Problem when parsing \frac etc. without braces #46

Open Volker-Weissmann opened 6 years ago

Volker-Weissmann commented 6 years ago

\frac a b is valid Latex, but process_sympy("\\frac a b") crashes with the exception:

Exception: missing '{' at 'a'
\frac a b

Same goes for \sqrt a.