To improve legibility, I'd sometimes like to reinstate display-style spacing in sub- or superscripts. However, adding \displaystyle
also changes the font size and switches \tfrac
to \frac
, as can be seen from the following example
\documentclass{scrartcl}
\usepackage{mathtools}
\begin{document}
\begin{align}
&e^{-S[\phi] + J \cdot \phi - \frac{1}{2} \phi \cdot R_k \cdot \phi - J \cdot \varphi_k + \frac{1}{2} \varphi_k \cdot R_k \cdot \varphi_k}\\
&e^{\displaystyle-S[\phi] + J \cdot \phi - \frac{1}{2} \phi \cdot R_k \cdot \phi - J \cdot \varphi_k + \frac{1}{2} \varphi_k \cdot R_k \cdot \varphi_k}
\end{align}
\end{document}
How can I increase spacing around operators like +
, -
, \cdot
without affecting any other part of the output?
\mathbin
spacing goes away in smaller (\scriptstyle
) math sizes that are found in sub/super-scripts. You can manually add it back in the manner of\,+\,
, etc., though I presume there is an automatic way to do this as well (though I don't know it). However, egreg will tell you not to do it: tex.stackexchange.com/questions/219278/…. See also tex.stackexchange.com/questions/214147/…\displaystyle
is a bit excessive in a superscript, you could use\textstyle
but it would still increase the font size