It's easy to read the steps from Rubi, but kind of tired to copy it out of as $\LaTeX$. That's what now I do:
Int[x Sin[x], x]//Steps
For example,click one step, then paste it to .nb, then //TeXForm to get the TeX code. (kind of monkey job)
I've tried FullForm, get nothing, // Trace
gives back a lot of things, which seems a bit hard for me to pick out what I want. So I want a "automatical" way to do this.
SetAttributes[IntWithStepsOfTeXForm, {HoldFirst}];
then when I pass the integral to your function, it does not work. Here is an example.lst = {{Log[1 + x], x}}; result = IntWithStepsOfTeXForm[ Int[lst[[1, 1]], lst[[1, 2]]] ] ;
And now the result does not work. Screen shot !Mathematica graphics $\endgroup$IntWithStepsOfTeXForm[Int[#, x]] & /@ {Sin[x], Cos[x]/x^2, Sin[x]/x^2} // MaTeX
can work. $\endgroup$