# How to use the gather environment to center align a different number of equations on each line?

I want to have 3 equations on one line, and 2 equations on the next line. I want them in the style of gather, i.e. they should be centre aligned in each line. This is what I want it to look like:

What is the right way to do this? (I have used two separate align environments to get this image. Clearly, the line spacing between them is too much)

• please provide a small document that makes the image, to save people having to type the all in to test answers. That said I would just centre the first three as a block, so use gather but put \qquad between each of the equations on the same line Apr 29, 2019 at 12:27

Something like this perhaps

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{gather}
\delta B_1,  \delta B_1 \neq \phi
A_1\subseteq A_2\subseteq, A_3\subseteq A_4
B_1\subseteq B_2\subseteq, B_3\subseteq B_4\\
\implies
A_1 \cap A_2, A_3,A_4,A_5=\phi
B_1 \cap AB_2, B_3,B_4,B_5=\phi
\end{gather}
\end{document}


or gather* if no numbers required.

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{align*}
\delta B_1,  \delta B_1 \neq \phi  &&
A_1\subseteq A_2\subseteq, A_3\subseteq A_4  && B_1\subseteq B_2\subseteq, B_3\subseteq B_4
\end{align*}
\begin{align*}
\implies A_1 \cap A_2, A_3,A_4,A_5=\phi &&  B_1 \cap AB_2, B_3,B_4,B_5=\phi
\end{align*}

\end{document}