#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 jhpalmieri):

 I'm happy with the changes except for the following things: first, there
 are some typos and some ways I would reword things, and I've put up a
 patch to go on top of "trac_9370-module-elt-repr-suggestions-cs.patch" to
 make those changes.

 Second, the change in the `print_options` method makes the code simpler,
 but it also modifies the behavior, and I'm not sure I like the change.  If
 we want to keep the change, then we need to modify the documentation.  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, but if they
 don't, I think they should default to being the same.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9370#comment:15>
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.

Reply via email to