[Tex/LaTex] What to do with this hyperref note on amsmath

amsmathequationshyperref

http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/ has this note copied below:

amsmath
————-
The environments equation and eqnarray are not supported too well.
For example, there might be spacing problems (eqnarray isn't recommended
anyway, see CTAN:info/l2tabu/, the situation for equation is unclear,
because nobody is interested in investigating). Consider using the
environments that package amsmath provide, e.g. gather for equation.
The environment equation can even redefined to use gather:

\usepackage{amsmath}
\let\equation\gather
\let\endequation\endgather`

However, gather and equation environment have the spacing difference as in the answer by Will in align vs equation. Thus my question:

In a document using both hyperref and amsmath, what is the best replacement for equation?

Best Answer

You can see a spacing problem with the following example. The two equations have different spacing with hyperref, but the same spacing (as they should) without it:

\documentclass[fleqn]{article}

\usepackage{amsmath}
\usepackage{hyperref}

\begin{document}

This is a test to check the spacing of the equation environment. Too much?
\begin{equation}
a=b
\end{equation}
This is a test to check the spacing of the equation environment.

This is a test to check the spacing of the equation environment. Too much?%
\begin{equation}
a=b
\end{equation}
This is a test to check the spacing of the equation environment.

\end{document} 

But this problem is imo not enough to stop using the equation environment. The other math environments produce too much space if the sentence before the displayed math is short:

\documentclass{article}

\usepackage{amsmath}

\begin{document}

This is a test to check the spacing of the equation environment. Too much? Foo.
\begin{equation}
a=b
\end{equation}
This is a test to check the spacing of the equation environment.

This is a test to check the spacing of the align environment. Too much? Foo.
\begin{align}
a=b
\end{align}
This is a test to check the spacing of the align environment.

\end{document} 

which is a much more common problem.

Related Question