how to improve the latex() translation?

asked 2018-06-21 07:27:30 -0500

Nasser gravatar image

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

edit retag flag offensive close merge delete