I have a long equation in LaTeX, which I need to break up into more lines. I've done this, although its not quite what I was looking for. Here is a MWE showing my problem:
\documentclass[10pt]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath, amsthm, amssymb}
\usepackage[ansinew]{inputenc}
\begin{document}
\begin{equation}
\begin{aligned}
\alpha &= 1 &&+ 2 \\
& &&- 3 + 4 \\
&= 4 \\
&=5-1,
\end{aligned}
\end{equation}
\end{document}
So there is a long equation broken into 2 lines, followed by 2 short lines. Here is what I desire:
-
There should be an equation label for each equality sign, so 3 in total. At the moment there is only one
-
The "+2" and "-3+4"-parts are aligned right, which distorts the whole equation. I'm not quite sure why it is doing that, I haven't told it explicitly to do so.
Is there a way to correct these errors?
EDIT: Original output looks like
Best Answer
Instead of
aligned
, I would suggest analign
environment;\notag
can be used to suppress the tag for selected lines; the alignment for the second line can be produced with the help of a\phantom
: