Presentation is important. We already add `\,` to integrals before the `dx`

```py
In [7]: print latex(Integral(f(x), x))
\int f{\left (x \right )}\, dx
```

For these, you should check what mathjax does, because it can be different than standard LaTeX for these little spacing things.