Let's say I wrote a long document containing several math formulae and then I realized that I forgot to put the \, spaces before the differentials in, say, all the integrals. Is there a simple way to insert those fast?
Here is the MWE:
\documentclass{article}
\usepackage{amsmath, amsfonts}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
$\iint\limits_{S} |J|d\alpha d\beta$
\lipsum[2]
$\iint\limits_{S} |J|d\beta d\omega$
\lipsum[3]
\end{document}
\newcommand{\diff}{\mathop{}\!d}and use\diff\alpha. For the present, search and replace. – egreg Apr 16 '20 at 23:21\newcommand*\diff{\mathop{}\!\mathrm{d}}or anything that produces an uprightd. (Imagine you want to integrate over some distanced, an italic differentialdis just confusing and not (up)right.) – Apr 17 '20 at 01:26