#9370: customize printing of elements in CombinatorialFreeModules
-------------------------------+--------------------------------------------
Reporter: jhpalmieri | Owner: sage-combinat
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7
Component: combinatorics | Keywords:
Author: John Palmieri | Upstream: N/A
Reviewer: Christian Stump | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Comment(by nthiery):
Hi Christian, John,
First, thanks so much for improving CombinatorialFreeModule's!
Replying to [comment:15 jhpalmieri]:
> The change is this: with my original patch, if you set `prefix` but not
`latex_prefix`, then `latex_prefix` would become `prefix` rather than the
default value of "B". With your patch, we have this behavior:
> {{{
> sage: A = HeckeAlgebraSymmetricGroupT(QQ, 3)
> sage: A.an_element()
> T[1, 2, 3] + 2*T[1, 3, 2] + 3*T[2, 1, 3]
> sage: latex(A.an_element())
> B_{[1, 2, 3]} + 2B_{[1, 3, 2]} + 3B_{[2, 1, 3]}
> }}}
> Ideally, everyone would set latex_prefix when they set prefix,
I would not even try to enforce setting latex_prefix. Whenever the
prefix does not contains specific math code, it would be an
unnecessary burden to have to set both latex_prefix and prefix.
> but if they don't, I think they should default to being the same.
+1
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9370#comment:16>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.