My proofs often look like this:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{align}
&\text{First Statement}\\
&\implies \text{Second Statement}\\
&\stackrel{\text{Explanation}}{\implies}\text{Third Statement}\\
&\stackrel{\mathclap{\text{Explanation}}}{\implies} \text{Fourth Statement}
\end{align}
\end{document}
And the issue is that the alignment takes into account the entire stackrel, while I want it to algin with the implication arrow.
I tried \stackrel{Explanation}{&\implies} but that throws an error.
\mathclap works, if the explanation is not too long and doesn't touch the statement after the implication arrow.
Do you have any suggestions how to solve this problem?




\phantomwon't work. for the first statement, use the\phantomwith the whole content of the\stackrelwith the longest text. for the second, use the\phantomfor just the top element of the\stackrel. some adjustment will be necessary if two "printed" explanations" have different widths. i can't test this now since i don't have tex installed on my laptop. – barbara beeton Dec 30 '18 at 00:25aligned-oversetis the best answer – Felix B. Mar 16 '23 at 13:31