#12156: Pretty print LatexExpr directly
----------------------------------+-----------------------------------------
   Reporter:  jdemeyer            |          Owner:  jason         
       Type:  defect              |         Status:  needs_review  
   Priority:  major               |      Milestone:  sage-4.8      
  Component:  misc                |       Keywords:                
Work_issues:                      |       Upstream:  N/A           
   Reviewer:  Andrey Novoseltsev  |         Author:  Jeroen Demeyer
     Merged:                      |   Dependencies:                
----------------------------------+-----------------------------------------

Comment(by novoselt):

 Replying to [comment:10 jdemeyer]:
 > The problem is that maybe sometimes you ''don't'' want a space.  How
 about adding a "{}" instead which acts like a seperator but otherwise
 doesn't do much.

 In what situations does the space matter in math mode? It seems to me that
 if both were valid expressions before, then they can be separated by a
 space without any harm... As I understand `{}` will do the same, but it
 will make the code much uglier, `x{}y` is not as cool as `x y`. And I
 think that readability of the LaTeX output is a valid concern since I
 quite regularly take some Sage generated code and then do some manual
 tweaking. For example - take a long polynomial and then typeset it in an
 align-environment in a paper. In editors that auto-wrap lines on spaces it
 is also preferable to have just a space separator.

 If there are situations when space does not work, which I think are quite
 rare since I cannot think of any, one always has an option of converting
 things to strings, doing anything there and then assembling them back. On
 a related note, it would be nice to have automatic vertical assembling of
 such expressions as well, but it is definitely beyond this ticket.

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