# Different alignments in same environment?

How do I get different alignments in the same align environment? Here some (pseudo)-code to illustrate my idea:

\begin{align}
a = &2\\
&+ 3 + 4 \notag\\
&= now I would like the equation sign to be aligned with the first equation sign at line 1
\end{align}


Is there any of you LaTeX wizards who can help me?

You have a few choices:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{align}
\begin{split}
a &= 2+2+2+2+2 \\
\end{split}
\\
&= x+y+z
\end{align}

\begin{align}
a &= \begin{aligned}[t]
& 2+2+2+2+2 \\
& +3+4
\end{aligned}
\\
&= x+y+z
\end{align}

\end{document}


• I prefer the first code :-) – Sebastiano Jan 17 at 22:09

For my tastes I will do your code with this MWE where there is a perfect vertical alignment between 2 and + as by screenshot and between two equal signs.

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}

\begin{document}
\begin{align}
a &= 2\\
&\phantom{{}=}+ 3 + 4 \notag\\
&= \dotsb
\end{align}
\end{document}