Up to now, I use the align
environment. As I want to give each equation a specific reference number, I want to use the equation
environment. So I tried this, which works for align
:
\begin{equation}
x &=2 \\
&=1+1
\end{equation}
But this throws errors. Why doesn't it work?
Of course, I've searched for similar questions but there was no question out there, that handles specific this issue. (It was always very complex code; no minimal example)
equation
cannot be split accross lines by design. That is why we havealign
and others, for examplesplit
. Why do you want to go toequation
?align
number each line of equations! you should make effort to skip this nubering, so I do not understand your question\nonumber
at the end of lines you don't want numbered. There may also be a way to usealign*
and tell LaTeX to make an exception for the lines you want numbered.equation
you could use thesplit
environment, which aligns the = signs but results in only one number. see thatamsmath
documentation:texdoc amsmath
.