I couldnt see a solution to this in this thread so heres a related question
The following produces the exact output Id like to produce (to assign to the _repr_ property of a class) %latex N(\mu,\sigma^2) How can I set things up to do this in a (_repr_) function (as a sage statement/function call)? Does a function exist so I call it to produce such an output? I was hoping something like this would work from sage.misc.latex import pretty_print pretty_print_default(True) pretty_print('N('+'\mu'+','+'\sigma^2'+')') but all it displays is N(\mu,\sigma^2) (hope I didnt miss something too obvious - thanks) -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org