Goal

Let the `TeXForm`

of `D`

and `Integrate`

more pretty.

`D[f[x], x] // HoldForm // TeXForm D[f[x], {x, n}] // HoldForm // TeXForm Integrate[f[x], {x, 0, Infinity}] // HoldForm // TeXForm Integrate[f[x, y], x, y] // HoldForm // TeXForm `

\begin{array}{*3{>{\displaystyle}l}} \text{Mathematica} & \LaTeX&\texttt{Problem}\ \displaystyle\frac{\partial f(x)}{\partial x} & \displaystyle\frac{\mathrm{d}}{\mathrm{d}x}f(x)&\texttt{don’t use \partial}\ \displaystyle\frac {\partial^nf (x)} {\partial x^n} & \displaystyle\frac{\mathrm{d}^n}{\mathrm{d}x^n}f(x)&\texttt{don’t put on numerator}\ \displaystyle\int_0^{\infty } f(x) \, dx& \displaystyle\int_0^{\infty } f(x) \,\mathrm{d}x&\texttt{use\mathrm{d}}\ \displaystyle\int \int f(x,y)dydx& \displaystyle\iint f(x,y)\,\mathrm{d}y\,\mathrm{d}x&\texttt{use\iint and why\,lost}\ \end{array}

I tried @jkuczm ‘s TeXUtilities package.

`Unprotect[Integrate,D]; Format[Integrate[fun__,x_],TeXForm]:=TeXDelimited["\int{",fun,"\,\mathrm{d} ",x,"\right)","DelimSeparator"->""]; Format[D[fun__,x_],TeXForm]:=TeXDelimited["\frac{\mathrm{d}}{\mathrm{d} ,"x ",},"fun,"DelimSeparator"->""]; Protect[Integrate,D]; `

Nothing happened, can’t figure out how to use that.