# How to enter a LaTeX integral?

How can I enter a LaTeX integral into Mathematica? For example, I evaluated the expression

ToExpression["\int 2*x\[DifferentialD]x ", TeXForm]


but Mathematica told me that this is wrong.

-

TeXForm[Integrate[f[x], x]]

ToExpression["\int f(x) \, dx", TeXForm]

This can be done a little more directly with TeXForm @ HoldForm @ Integrate[2 x, x], which gives \int 2 x \, dx –  m_goldberg Oct 11 '13 at 0:04