Christophe, thank you for your reply. Indeed, one can perform string substitution on output.
Volker, thank you, also. The example, however, performs the same task as the one that was posted: renames the variable. The intent is to leave the name of the variable as it is and to (as the title of the message say) customise its appearance. The first example can be misleading. Here is a second one that does not work: sage: x = PolynomialRing(QQ, 'beta^i', sparse=True).gen() sage: latex(x) ValueError: variable names must be alphanumeric, but one is 'beta^i' which is not. By the way sage: x = PolynomialRing(QQ, 'alpha', sparse=True).gen() sage: latex(x) does not produce the expected symbol when in <Typeset> mode in the notebook, but I suspect that it's because of the font. When <Typeset> is off the output is, indeed, \alpha PS The intent is not to resolve a specific problem. I'm not looking into converting a specific variable to a specific output. Instead, I simply want to know if the capability is build in Sage. Thank you! Nick -- 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-support URL: http://www.sagemath.org
