I have the following system of equations in Texmaker:
\begin{equation}
\begin{align}
\begin{split}
a(t_{n+1}) \cos \varphi_{n+1} = a(t_{n}) \cos \varphi_{n} + \sqrt{2E_{n}}(t_{n+1} - t_{n}) \cos( \alpha_{n}+ \theta{_n}),
\\
b(t_{n+1})\sin \varphi_{n+1} \left(1+ \delta \sin^{2} \varphi_{n+1} \right) = b(t_{n})\sin \varphi_{n} \left(1+ \delta \sin^{2} \varphi_{n} \right) + \sqrt{2E_{n}}(t_{n+1}-t_{n}) \sin (\alpha_{n} + \theta_{n}),
\\
\theta_{n} + \alpha_{n} + \theta^{*}_{n+1} - \alpha_{n+1} = 0,
\\
\sqrt{2E_{n+1}}\cos \theta_{n+1} = \sqrt{2E_{n}}\cos\theta^{*}_{n+1},
\\
\sqrt{2E_{n+1}}\sin\theta_{n+1} = \sqrt{2E_{n}}\sin\theta^{*}_{n+1}-2u(\varphi_{n+1}, t_{n+1}).
\end{split}
\end{align}
\label{system}
\end{equation}
When I compile, the following error message is given:"Package amsmath error: Erroneous nesting of equation structures; (amsmath) trying to recover with aligned
…." However, I can still produce a normal looking PDF file.
I'd be very grateful if someone could point out how to correct this error. I have the amsmath package installed.
Best Answer
You should not nest
align
inequation
. Thealign
environment is enough:This compiles (but looks terrible, imho).
With horizontal alignment it looks better I think: