# [Tugindia] Aligning equations

Sanjay Tripathi cooljay2708 at gmail.com
Tue Nov 29 03:56:35 CET 2005

On 11/28/05, Sreejith Pulloor <sreejithpk at gmail.com> wrote:
>
> TUG,
>
> I would like to align 4 equations nicely. the problem is first
> equation is very long and run over 2 lines and other equations are
> short.
> So i used the split option to split the first equation and but am
> unable to align them properly.
>
> \begin{equation*}
> \begin{split}
> A(u,v) & = \sum\limits_E\int_\Omega (\nabla u) \cdot (\nabla v) -
> \sum\limits_{\Gamma_{\text{int}}} \int_\Gamma \langle \nabla u \rangle
> n \cdot [v] + \epsilon \sum \int_\Gamma \langle \nabla v \rangle n
> \cdot [u]\\
>   & - \sum \int_{{\Gamma}_{D}} \nabla u~n \cdot v + \epsilon \sum
> \int_{\Gamma_{D}} \nabla v~n \cdot u\\
> \end{split}
> \end{equation*}
> \begin{align*}
> B(u,q) & = - \sum \int_\Omega q \nabla \cdot u + \sum \int_\Gamma
> \langle q \rangle [u] \cdot n\\
> B(v,p) & = - \sum \int_\Omega p \nabla \cdot v + \sum \int_\Omega
> \langle p \rangle [v] \cdot n\\
> J(u,v) & = \sum \frac{\sigma_e}{|{e}|}\int_\Gamma [u] \cdot [v]
> \end{align*}

Rather coding as above, you can try this:

\begin{eqnarray*}
A(u,v) & = & \sum\limits_E\int_\Omega (\nabla u) \cdot (\nabla v) -
\sum\limits_{\Gamma_{\text{int}}} \int_\Gamma\langle
\nabla u \rangle n \cdot [v] + \epsilon \sum \int_\Gamma \langle \nabla v
\rangle n\cdot [u]\\
&& - \sum \int_{{\Gamma}_{D}} \nabla u~n \cdot v + \epsilon
\sum\int_{\Gamma_{D}} \nabla v~n \cdot u\\
B(u,q) & = & - \sum \int_\Omega q \nabla \cdot u + \sum \int_\Gamma
\langle q \rangle [u] \cdot n\\
B(v,p) & = & - \sum \int_\Omega p \nabla \cdot v + \sum \int_\Omega
\langle p \rangle [v] \cdot n\\
J(u,v) & = &\sum \frac{\sigma_e}{|{e}|}\int_\Gamma [u] \cdot [v]
\end{eqnarray*}

By this way u can get the desired output.

Happy texing...

...Jay

what I would like to have the equations to align something like below:
>
> A(u,v)     = ........................
>                 .........................
>                 .........................
> B(u,q)     = .........................
> B(v,p)     = .........................
> J(u,v)     = .........................
>
>
> Sreejith
>
> _______________________________________________
> Home:        http://www.tug.org.in/
> TeX FAQ:     http://www.tex.ac.uk/faq
> unsubscribe: http://tug.org/mailman/listinfo/tugindia
>

--
Cheers!!!

...Jay