How can I remove the additional vertical space between two multline environments? In fact, I have a list of two-line-equations and I want the second line aligned to the right. So I write:
\begin{multline*}
x = 1 + 2 \\ + 3 +4
\end{multline*}
\begin{multline*}
y = a + b \\ + c + d
\end{multline*}
However, there is too much vertical space between the two equations. I tried different solutions using aligned, gathered, ... but I still can not get the second line aligned to the right. Some time ago I defined the macro
\newcommand{\SplitEq}[1][0cm]{\hfill\strut\\[#1]\strut\hfill}
which works as I would like it to work but just in inline math so that I have to add line breaks and vertical spaces manually:
\\[1ex] $ x = 1 + 2 \SplitEq + 3 +4 $ \\
$y = a + b \SplitEq + c + d $ \\[1ex]
Does anybody know any solution to this problem? I am interested in some "automatic" solutions, i.e. not requiring to specify e.g. \phantom{x=1+2}, if possible. Thank you very much for your help!


mathtoolshas amultlinedenvironment, so two of them could be included within a singlegather*environment. that might actually need a little extra space added between them. – barbara beeton Mar 08 '18 at 18:17