In Pynac: REGISTER_FUNCTION(beta, eval_func(beta_eval). evalf_func(beta_evalf). derivative_func(beta_deriv). series_func(beta_series). latex_name("{\\rm B}"). set_symmetry(sy_symm(0, 1)));
I just see this can be improved, as well as a few others. How should it read, I guess at least \\operatorname instead of \\rm? It could also be removed in favor of something you want to add in Python-Sage. On Monday, June 27, 2016 at 6:05:13 AM UTC+2, Paul Masson wrote: > > Hey Ralf, I'm trying to understand this behavior: > > sage: latex(beta(x,x)) > {\rm B}\left(x, x\right) > > > Since there are currently no LaTeX definitions of any sort for the beta > function, where is the capital "B" coming from? It's a minor question but > it's bugging me. Thanks. > > 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.