[Tex/LaTex] Subdepth subscripts not aligned

subscriptsvertical alignment

I was under the impression that the subdepth package would even out the depth of subscripts, but I just tried the following code in which the subscripts are not "aligned":

\documentclass{article}
\usepackage{amsfonts}                                                           
\usepackage[low-sup]{subdepth}

\begin{document}
  \[
    Z^{\frac12}_{\mathcal{A}} u_{\mathcal{A}}
  \]
\end{document}

Is subdepth not supposed to work with the mathcal font? The subscripts are aligned if I type, e.g., $M_n = M_n^T$.

Best Answer

Looking at the package, it sets the parameters to make the default positions of subscripts unchanged by "normal sized" superscripts, however TeX will always move the scripts to avoid clashes, so without doing a scan of the whole expression I don't think you can make them all align for arbitrarily large superscripts.

You can make your case align by putting in an invisible superscript

\documentclass{article}
\usepackage{amsfonts}                                                           
\usepackage[low-sup]{subdepth}

\begin{document}
  \[
    Z^{\frac12}_{\mathcal{A}} u^{\vphantom{\frac12}}_{\mathcal{A}}
  \]
\end{document}
Related Question