On 25/05/2020 22:36, Ben wrote:
In the process of working on handling spaces in latex, I had two
realizations. First, spaces in Latex math could mean "multiply two
variables" or it could just be a way of managing layout of the
expression. (I posted examples in
https://github.com/sympy/sympy/issues/19075).
My second realization was that it might be easier to remove the
aspects of the Latex string that are related to presentation.
Specifically in this case, replace a Latex string's "\ " with " " and
replace "\," with " " before passing the string to Sympy.
Hi Ben,
I don't want to discourage you in any way, and I may be naive, but I'd
have thought LaTex would always be ambiguous one way or another -
particularly if it is hand written. I'd have thought the best solution
in the long term would be if people wrote their equations in SymPy and
then generated LaTex with the latex() function.
David
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/9f6b7f52-ed5c-407f-5a05-03587ebfcf5c%40dbailey.co.uk.