pytexit icon indicating copy to clipboard operation
pytexit copied to clipboard

Negative Sign Before Parentheses

Open davemlz opened this issue 3 years ago • 1 comments

Hi!

First, this package is super great! Thank you!

I found something weird, if I do py2tex("a - (b - (c - d))"), I get '$$a-b-c-d$$'. Then both equations are not the same anymore. Maybe doing the whole distributive approach could be hard here, but maybe keeping the parantheses would be easier :)

Thank you!

Best,

Dave

davemlz avatar May 19 '22 12:05 davemlz

Hey, I my pull request should fix this issue in a way. Not keeping parentheses but rather adding ones where there are subtractions.

abuyukyi101198 avatar Jul 29 '22 13:07 abuyukyi101198