I have a problem with the following code
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\operatorname{P}_{\widehat{Y}} \quad \operatorname{P}_{Y} \\
\end{align*}
\end{document}
The subscripts are different heights, meaning that the bottom of the hatted Y is lower than the bottom of the vanilla Y. I would like to have their bottoms at the same height.
My ignorant theory is that the subscripts are aligned in the middle of the character and that the hat on the Y counts as an additional horizontal space occupied by my Y.
Ideally, I would like to have a fix that enables me to define a command that incorporates the fix and leaves the vanilla behaviour of the other subscripts in my document untouched.
\adjustlimits
frommathtools
. See the documentation for details. (But I'm not sure if these are limits?)equation*
instead ofalign*
. Also, if you have two or more equations but without a point of alignment, usegather*
instead ofalign*
. The reason for the preference forequation
andequation*
is that these environments are able to adjust spacing if there is, say, a single word from the previous paragraph on one line right before it, whereasgather
andalign
are always full width.