[Tex/LaTex] Too much space between full paragraph and subequations env

amsmathspacing

I have a document using subequations and the parskip package. If the paragraph before a subequations environment is completely filled up to the last line, then additional vertical whitespace is introduced between this paragraph and the following subequations. I guess this is a bug, but I'm not sure, nor do I have enough TeX knowledge to try and fix it. How can I fix this whitespace issue?

Below is a MWE which shows the behaviour, at least on LaTeX2e <2003/12/01> with pdfeTeX 3.141592-1.21a-2.2 (unfortunately on this machine only an old tetex distribution is installed).

\documentclass[a4paper,11pt]{article}

\usepackage{parskip}
\usepackage{amsmath}

\begin{document}

The subequations environment provides a convenient way to number a foos
\begin{subequations}\label{foo}
  \begin{align}
    x^2 + y^2 &= z^2\\
    a &= b + c
  \end{align}
\end{subequations}

\end{document}

Best Answer

The problem is that the space after foos does not disappear at the line break, because of the \begin{subequations} that follows (I don't know exactly why).

Use \begin{subequations} between paragraphs, or say

\usepackage{etoolbox}
\preto\subequations{\ifhmode\unskip\fi}

In daleif's example the problem is the same: a space remains and makes a new line in the paragraph. However a \label there is only for \pageref usage, so it must be attached to a word, otherwise the reference can be off by one.

Related Question