#11775: Make pretty_print take multiple arguments
--------------------------------------+-------------------------------------
    Reporter:  ppurka                 |         Owner:  jason                 
        Type:  enhancement            |        Status:  needs_work            
    Priority:  major                  |     Milestone:  sage-4.7.3            
   Component:  misc                   |    Resolution:                        
    Keywords:  pretty print           |   Work_issues:  Fix notebook "typeset"
    Upstream:  N/A                    |      Reviewer:  Keshav Kini           
      Author:  Punarbasu Purkayastha  |        Merged:                        
Dependencies:                         |  
--------------------------------------+-------------------------------------

Comment(by jhpalmieri):

 Replying to [comment:20 ppurka]:
 > @jhpalmieri there is a way. You can simply do `html('$f(x) = x^2$')`.

 You can also put it in an `%html` block or in a `%latex` block.  These
 solutions only work in the notebook, though.  Anyway, it shouldn't be too
 hard to write a function which takes a string, passes it through `jsMath`
 or `LaTeX` depending on the context and on other arguments (like
 `viewer=pdf`), and produces nice looking output, both from the command-
 line and the notebook.  I think that this should be done by a function
 other than `view`, though: view should render a string verbatim, so it can
 handle names of Python classes, for example. Maybe the right approach is
 to create such a function and to rewrite `view`: the new function would
 render a string in `LaTeX`, and `view` would call the new function after
 preparing the string appropriately.

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