In Theorems 1 and 2, there is extra space between the equation and the proof. In Theorem 3, there isn't. What is causing this in the case of Theorem 2 and how can I get the \proof
command not to insert the extra space (without resorting to negative vspace)? I wish to learn about the mechanics (I'm not looking for a package that colors my equations: I'm aware of those).
\documentclass{article}
\usepackage{amsthm,xcolor}
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}
blabla
{\color{red}
\begin{equation}
x
\end{equation}}%
\proof
hi
\end{theorem}
\begin{theorem}
blabla
\begin{equation} \color{red}
x
\end{equation}
\proof
hi
\end{theorem}
\begin{theorem}
blabla
\begin{equation} {\color{red}
x}
\end{equation}%
\proof
hi
\end{theorem}
\end{document}
\belowdisplayskip
to be the same asbelowdisplayshortskip
.