#14509: Fix LaTeX of free algebras (and repr_lincomb)
----------------------------------+--------------------------
Reporter: kcrisman | Owner: was
Type: defect | Status: new
Priority: minor | Milestone: sage-5.11
Component: user interface | Resolution:
Keywords: latex | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Dependencies:
Stopgaps: |
----------------------------------+--------------------------
Comment (by ppurka):
{{{#!diff
diff --git a/sage/misc/latex.py b/sage/misc/latex.py
--- a/sage/misc/latex.py
+++ b/sage/misc/latex.py
@@ -2503,7 +2503,7 @@
'\\alpha'
"""
if a in common_varnames:
- return "\\" + a
+ return "\\" + a + "{}"
elif len(a) == 1:
return a
elif is_fname is True:
}}}
This fixes the latex, but the raw latex doesn't look good any more.
{{{
sage: K.< alpha,b > = FreeAlgebra(SR)
sage: latex(alpha*b)
\alpha{}b
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/14509#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.