erwanp / pytexit

Convert a Python expression to a LaTeX formula
https://pytexit.readthedocs.io/
Other
114 stars 31 forks source link

Support for "÷" symbol, two options #64

Closed WesDH closed 1 year ago

WesDH commented 1 year ago

In first commit, "÷" is converted to "/" in the unicode table so that it can be correctly parsed. Also added a test case in test_functions.py to confirm.

Fixed minor typo in docstring for visit_name()

Second commit, "÷" is converted to a magic number in the unicode table so that it can be correctly parsed. It is then returned as "\div" using some custom logic on traversal. Also added a test case in test_functions.py to confirm.

erwanp commented 1 year ago

I assume you have a good reason not to have kept the first commit implementation.

Merging!