I have the following remark environment:
\newenvironment{rem}[1][]{%
\vspace{8pt}\small%
\begin{list}{}{%
\setlength{\leftmargin}{\parindent}%
\setlength{\rightmargin}{\parindent}}%
\item[]%
}{%
\end{list}\vspace{8pt}}%
When used just after an equation, the separating vertical space shall be a bit to large. Is there a way to test if the previous line is an equation?