sympy / sympy.github.com

SymPy's web page (sympy.org)
https://sympy.org/
188 stars 107 forks source link

Latex printing exponentiated symbols with superscripts fails #152

Closed mfranckie closed 1 year ago

mfranckie commented 3 years ago

When defining a symbol which contains a superscript in the name, such as a complex conjugated or adjoint conjugated variable, latex printing the exponent of it does not automatically surround it with parentheses. For example:

from sympy import Symbol ad = Symbol('a^\ast') ad*ad

a^\ast^{2}

I do not understand how to fix this, without defining the symbol to always have parentheses.

sylee957 commented 1 year ago

This is not an issue in the latest version I think