LaTeX Aligning Equations in LaTeX: Troubleshooting

AI Thread Summary
To align multiple equations in LaTeX, the user seeks to center the first two equations while splitting a long third equation into two parts. The initial attempt using the `gather` environment fails because `multline` cannot be nested within it. An alternative suggestion is to use the `eqnarray` environment, which allows for alignment but does not achieve the desired layout of having parts of the equation on opposite sides. The user is looking for a solution that mimics the effect of `multline`, with the first part on the left and the second part on the right.
computer2012
Messages
2
Reaction score
0
Hi,

I want to align several equations in latex.

I want the first and second equations to be in the middle.

The last equation is too long and I want to split it into 2 parts.

I tried

\begin{gather}
Eq1\\
Eq2\\
\begin{multline}
Eq3a\\
Eq3b
\end{multline}
\end{gather}

However, the code cannot be compiled due to multline cannot be used inside other environment. How can I solve the problem?

Thanks for your help very much.
 
Physics news on Phys.org
Have you tried eqnarray?

Code:
\begin{eqnarray}
a & = & b + c \\
c & = & d + e \\
f & = & a + b + \nonumber \\
  &    &  d + e + f
\end{eqnarray}

<br /> \begin{eqnarray}<br /> a &amp; = &amp; b + c \\<br /> c &amp; = &amp; d + e \\<br /> f &amp; = &amp; a + b + \nonumber \\<br /> &amp; &amp; d + e + f<br /> \end{eqnarray}<br />
 
I want the effect of multline, that is, Eq 3a is on the extreme left hand side and Eq 3b is on the extreme right hand side? How can I do that? Thanks.
 

Similar threads

Back
Top