#5711: [with patch, needs review] Enhanced Typesetting of Symbolic Functions
-------------------------+--------------------------------------------------
 Reporter:  gmhossain    |       Owner:  cwitty                                 
       
     Type:  enhancement  |      Status:  new                                    
       
 Priority:  major        |   Milestone:  sage-3.4.2                             
       
Component:  misc         |    Keywords:  Enhance Typesetting, LaTeX, Symbolic 
Functions
-------------------------+--------------------------------------------------
 Here is a patch that enhances current typesetting capability
 of symbolic functions within sage.

 This issue has been under a long discussion in the thread

 http://groups.google.com/group/sage-
 devel/browse_thread/thread/a51f269f057d8223/536b4ef2493bb20c

 Main enhancements are:

 (1) Symbolics functions with name in Greek letters (with possible
 suffixes), are typeset nicely in LaTeX.

 Ex:  psi(x)  =>  \psi(x)

 (2) Functions such as "diff", "integrate", "limit", "conjugate",
 "laplace", "inverse_lapse" are now typeset within Sage itself.

 Ex:  psi(x).conjugate()  =>    {\psi}^*(x)

 (3) Default (fall-back) typesetting for unknown functions (as
 in Maxima).

 Ex:  myfn(x)   =>  {\it myfn}(x)

 (4) Allows users to define their own/custom LaTeX expression
 for any symbolic functions via a new method "set_latex()" for
 the class SymbolicFunctionEvaluation.

 Ex:

 {{{
 var('t');
 hubble(t) = function('hubble',t)
 hubble(t).set_latex('\\mathcal{H}')

 #To reset custom LaTeX expression
 hubble(t).set_latex()
 }}}

 (5)  If the arguments of a symbolic function are all symbolic
 variables then typesetting will avoid using \left(, \right).

 Ex:  Phi(x,y) => \Phi(x, y)  (if x,y are symbolic vars)


 Note: You need to apply a small patch

 http://trac.sagemath.org/sage_trac/ticket/5678

 before you apply the attached patch. This patch is
 created using sage-3.4.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5711>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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