You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I don't think that the combining character is compatible with every LaTeX as you expected, beyond basic cases,
and I don't think that this is any issue with SymPy, because it happens before SymPy. v_0\u20D7 is interpreted as 3 glyphs, v, _, 0\u20D7.
Obviously, there are more advanced tricks with unicode that may work around this, and you may combine with unicode subscripts, such as Symbol('v\u20D7\u2080') for workaround, however, that may not be desirable because you may face much more confusing compatibility issues with LaTeX later.
I may suggest to wrap symbol names inside LaTeX control sequences like \overrightarrow, such as Symbol('\overrightarrow{v_0}') and it should display correctly as $\overrightarrow{v_0}$
I also generally suggest to avoid tricks with unicode, and try to find LaTeX control sequences that does same work. I rarely use unicode combining characters, or unicode subscripts or superscripts, because they are not sufficient for many math formula.
I am using Sympy v1.9
As one can see, splicing a subscripted symbol into another symbol to add a vector on top simply puts the arrow above the subscripted zero.
The text was updated successfully, but these errors were encountered: