Hi, On Fri, Jun 5, 2009 at 7:09 PM, Mike Hansen<mhan...@gmail.com> wrote:
> The _latex_ from Expressions calls GiNaC which as code for assembling > latex code from the expression tree. The thing that corresponds to > SymbolicFunctionEvaluation is roughly sage.symbolic.function.SFunction > and PrimitiveFunction. The things of interest are print_latex_func > and _print_latex_. Thanks Mike, it was very helpful. I have now mostly ported the old patch (#5711) to new symbolics. Consequently, typesetting for "integrate", "diff", "limit", "laplace", "inverse_laplace", symbolic functions (Greek letters) are working great in sage-4.0.1. However, there are couple of issues that I need to sort out. (1) In "py_latex_function_pystring" function (sage.symbolics.pynac), what does the argument "fname_paren" signify? Why does typesetting depend on it? (2) keyword "latex_name": If I understand correctly, the new "SFunction" class can be given keyboard argument "latex_name=LaTeX". Somehow, it doesn't seem to work from notebook. It would be really cool if we could define a symbolic function as ---- riemann(x) = function('riemann', x, latex_name="\\mathcal{R}") ---- (3) Is there an equivalent class for "SymbolicVariable" in new symbolics? If yes, then certain customization can be done. For example, f(x) can be typeset as "f(x)" whereas f(x^2) can be typeset as "f\left(x^2\right)". (4) Should we switch to old maxima format for "diff"? Cheers, Golam --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---