erwanp / pytexit

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

extra parenthesis #13

Closed kamelNaroun closed 3 years ago

kamelNaroun commented 4 years ago

Hello, I don't know if that issue is connected to the new version of Python3.8 but when I try py2tex('2+3'), I have an output with extra parenthesis.

`$ python Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

from pytexit import py2tex py2tex('2+3') $$\left(2\right)+\left(3\right)$$ '$$\left(2\right)+\left(3\right)$$'`

kamelNaroun commented 4 years ago

I have read in the ast module documentation that the ast.Num class is deprecated and I have understood that it is replaced by ast.Constant class.

erwanp commented 4 years ago

Thank you for reporting this ! Do you have an idea on how to fix that ?

kamelNaroun commented 4 years ago

No for the moment. I may think of that later.

phidi04 commented 3 years ago

Can't reproduce this, seems to be fixed by now.

from pytexit import py2tex py2tex('2+3') $$2+3$$ '$$2+3$$'

erwanp commented 3 years ago

Probably with #16.

Thanks for checking, closing !