Ralf, I'm finally getting ready to add/standardize LaTeX names for special functions. I wanted to start with elliptic integrals but see that latex_name or _print_latex_ are already defined for all of them. The LaTeX formatting shows at the command line but does not get rendered in notebooks or SageMathCell. Since elliptic integrals are all BuiltinFunction, what would be blocking the rendering of LaTeX?
On Wednesday, June 15, 2016 at 1:53:02 AM UTC-7, Ralf Stephan wrote: > > From reading source code, it appears that adding a keyword argument >>>>> latex_name to the function initialization is equivalent to defining a >>>>> _print_latex_ attribute for the function. There is also the option to >>>>> define a _latex_ attribute in addition to _print_latex_. >>>>> >>>> > Defining a _latex_() method of a Function class will only change the > output > if that function class itself is requested, e.g. > > sage: latex(cos) > mycos > > However, function *calls go through the symbolic/function.pyx machinery, > i.e., you > can use either latex_name in the __init__ or a _print_latex_() method, > but not both. > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.