Another not clean solution: typeset strings with
\begin{verbatim}
string
\end{verbatim}
and then put "\\begin{verbatim}" in the jsmath_avoid list. This
results in inconsistent behavior: jsMath output appears in blue, while
LaTeX output appears in black.
Another option: use the \verb option for jsMath, but break the string
at newlines and typeset each line individually, inserting line breaks
explicitly in the html produced by the JSMath class in sage/misc/
latex.py.
--
John
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)