Customizing latex output of derivative expressions

asked 2018-12-09 00:50:51 +0200

StevenClontz gravatar image

I'd like to change the output of

sage: latex(f.diff()-3*f)
-3 \, f\left(x\right) + \frac{\partial}{\partial x}f\left(x\right)

to be closer to

sage: latex(f.diff()-3*f)
f' - 3 f

Is there any way to adjust the presentation of derivatives, and the order in which they appear?

edit retag flag offensive close merge delete