Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to improve the latex() translation?

sage 8.3 beta 6.

sage: var('t')
sage: anti=integrate(exp(t)*log(1+t),t)
sage: anti
e^(-1)*exp_integral_e(1, -t - 1) + e^t*log(t + 1)

sage: latex(anti)
e^{\left(-1\right)} exp_integral_e\left(1, -t - 1\right) + e^{t} \log\left(t + 1\right)

The latex above is not good. It renders as

image description

Which is not good. May be sage needs to use a \DeclareMathOperator on exp_integral_e