I have a set of equations inside a subequations environment. Update: I use a macro to generate long subsubscripts in \rm.
\newcommand{\foobar}{\rm foobar}
\begin{subequations}
\begin{alignat}{5}
t_{p_{\foobar}} &=& &\big\vert \big\{e \in E^\prime \vert& &\mathcal{P}_{\foobar}(e) &&\wedge& &\mathcal{H}_{\foobar}(e) \big\} \big\vert\\
f_{p_{\foobar}} &=& &\big\vert \big\{e \in E^\prime \vert& &\mathcal{P}_{\foobar}(e) &&\wedge& \lnot&\mathcal{H}_{\foobar}(e) \big\} \big\vert\\
f_{n_{\foobar}} &=& &\big\vert \big\{e \in E^\prime \vert& \lnot &\mathcal{P}_{\foobar}(e) &&\wedge& &\mathcal{H}_{\foobar}(e) \big\} \big\vert\\
t_{n_{\foobar}} &=& &\big\vert \big\{e \in E^\prime \vert& \lnot &\mathcal{P}_{\foobar}(e) &&\wedge& \lnot&\mathcal{H}_{\foobar}(e) \big\} \big\vert
\end{alignat}
\end{subequations}
These equations have a lot of unnecessary space between columns. Using gather along with alignedat, they are aligned the way I want them - without any additional horizontal space. However, this leads to the equations being assigned only a single equation number. When I use alignat instead, latex adds additional space between columns - which I don't want. How can I achieve correct alignment and correct numbering?
\rmin formulas; the correct way is\newcommand{\foobar}{\mathrm{foobar}}that doesn't even require braces like in\mathcal{P}_\foobar, although braces don't harm. – egreg May 19 '11 at 16:22