[Tex/LaTex] Squeeze superscripts and subscripts around bracketed expressions in display math

bracketssubscriptssuperscripts

Consider a bracketed term in display math, like this.

LaTeX output

Is there any way to squeeze the space between the super/sub-scripts and the bracketed term? e.g.

Desired output

where I've modified the image to create the desired effect. Apologies if this is a duplicate. I trawled through results from a few different searches and didn't find the same question asked anywhere.


MWE:

\documentclass{article}
\begin{document}
\begin{equation}
\left(\frac{\frac{dx}{dy}}{\frac{dz}{dt}}\right)^{0.01}_i
\end{equation}
\end{document}

Best Answer

You may adjust the indices half manually e.g. like this:

\documentclass{article}
\begin{document}

\newcommand{\subsup}[3]{{#1}_{\mkern-4mu #2}^{\mkern-4mu #3}}

\begin{equation}
\left(\frac{\frac{dx}{dy}}{\frac{dz}{dt}}\right)_i^{0.01} \quad
\subsup{\left(\frac{\frac{dx}{dy}}{\frac{dz}{dt}}\right)} {i}{0.01}
\end{equation}
\end{document}