1 | initial version |
You'd have to probably change the code slightly. Of course, in the long run this sort of thing should be fully localizable, but for now it's not done so easily.
sage: sage.functions.trig.Function_tan??
<snip>
GinacFunction.__init__(self, "tan", latex_name=r"\tan")
So if you changed that to latex_name=r"\tg"
you might be in business! You'd have to build your changes, of course.
I'll try to see if one can do this in a running session; one might have to reinitialize it, but the init signature is different for Function_tan
than for GinacFunction
.
2 | No.2 Revision |
You'd have to probably change the code slightly. Of course, in the long run this sort of thing should be fully localizable, but for now it's not done so easily.
sage: sage.functions.trig.Function_tan??
<snip>
GinacFunction.__init__(self, "tan", latex_name=r"\tan")
So if you changed that to latex_name=r"\tg"
you might be in business! That would work for the name as well to some extent, though one might have to be careful with making sure one actually got it back to Ginac - the code for sage.symbolic.function.Function
should have much info.
You'd have to build your changes, of course.
I'll try to see if one can do this in a running session; one might have to reinitialize it, but the init signature is different for Function_tan
than for GinacFunction
.
3 | No.3 Revision |
You'd have to probably change the code slightly. Of course, in the long run this sort of thing should be fully localizable, but for now it's not done so easily.
sage: sage.functions.trig.Function_tan??
<snip>
GinacFunction.__init__(self, "tan", latex_name=r"\tan")
So if you changed that to latex_name=r"\tg"
you might be in business! That would work for the name as well to some extent, though one might have to be careful with making sure one actually got it back to Ginac - the code for sage.symbolic.function.Function
should have much info.
You'd have to build your changes, of course.
I'll try to see if one can do this in a running session; one might have to reinitialize it, but the init signature is different for Function_tan
than for GinacFunction
.
Edit:
No matter how many ways I try to do things like
sage: tan.__setattr__('_latex_name',r"\tg")
sage: tan._latex_name
'\\tg'
sage: latex(tan)
\tan
it doesn't seem to quite work. I just can't get it it initialize this.