Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit fe2a0f0

Browse files
committed
16007: handle latexification of converted special maxima variable names
1 parent 884bc68 commit fe2a0f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sage/misc/latex.py

+5
Original file line numberDiff line numberDiff line change
@@ -2679,6 +2679,11 @@ def latex_variable_name(x, is_fname=False):
26792679
else:
26802680
prefix = x[:underscore]
26812681
suffix = x[underscore+1:]
2682+
if prefix == '':
2683+
from sage.calculus.calculus import symtable
2684+
for sym in symtable.values():
2685+
if sym[0] == '_' and sym[1:] == suffix:
2686+
return latex_variable_name(suffix)
26822687
if suffix and len(suffix) > 0:
26832688
# handle the suffix specially because it very well might be numeric
26842689
# I use strip to avoid using regex's -- It makes it a bit faster (and the code is more comprehensible to non-regex'ed people)

0 commit comments

Comments
 (0)