You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @ram6ler,
first of all thank you for this great package!
I want to write a simple calculator where the input of the user gets parsed into latex in real time.
If the user didn't finish the equation yet, I would still be able to show the (until now) typed equation.
Is it possible to bypass the checking of valid expressions before parsing? (Only for parsing, not for interpreting :P)
Thank you so much in advance, and as I said: awesome package!
Keep up the good work!
Best Regards,
Louis :)
The text was updated successfully, but these errors were encountered:
Throvn
changed the title
Convert invalid expressions to LaTeX?
Still convert invalid expressions to LaTeX?
Nov 20, 2021
Hmm. That would be tough at this stage... Basically, the TeX expressions are generated by recursively going through the tree (similarly to the way expressions are evaluated) but that's only possible once the tree has been constructed...
What you might try is attempt to build the tree from the expression whenever there is an edit; if the expression is valid, update the TeX, otherwise keep the most recent TeX that worked or show that the expression is invalid (which is, for example, how the Pages TeX editor works).
Thank, you so much!
Since I only have to do really basic calculations, I wrote a little regex latex parser for myself and I'm quite happy with it.
I understand that it would make no sense on implementing this in this package :)
Thank you for the fast reply!! You have been of great help.
Hey @ram6ler,
first of all thank you for this great package!
I want to write a simple calculator where the input of the user gets parsed into latex in real time.
If the user didn't finish the equation yet, I would still be able to show the (until now) typed equation.
Is it possible to bypass the checking of valid expressions before parsing? (Only for parsing, not for interpreting :P)
Thank you so much in advance, and as I said: awesome package!
Keep up the good work!
Best Regards,
Louis :)
The text was updated successfully, but these errors were encountered: