erwanp / pytexit

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

Problem with unary opeation not #40

Closed emetor closed 2 years ago

emetor commented 2 years ago

'not x' gives '\negx' instead of '\neg x' I'm not sure if this is the best solution to debug this problem? At least it seems to work! This bug was introduced in the function visit_UnaryOp(self, n) when removing the space between {0} and {1}... so that 10**-3 yields $$10^{-3}$$ and not $$10^{- 3}$$