I want to write a very long equation (3-4 lines) in LaTeX. For this equation I want to use align
environment. What I don't like is how Emacs formats the LaTeX code: it adds a lot of unnecessary space, something like
\begin{align*}
\|a+b+c\|^4 & = \left(\|a\|^2 + \|b\|^2 + \|c\|^2 + 2 \langle a, b
\rangle + 2\langle b,c \rangle + 2 \langle a, c\rangle
\right)^2\\ &= \left(\|a\|^2 + \|b\|^2 + \|c\|^2 +
2\langle a, b\rangle +2\langle
b,c\rangle +2\langle a, c\rangle\right)^2
\end{align*}
And it becomes even worse if I edit it. Obviously, it is very inconvenient to edit such a mess in the future. How to force align
not to use any automatic formatting and behave like multline
, for example?
\begin{multline*}
\|a+b+c\|^4 = \left(\|a\|^2 + \|b\|^2 + \|c\|^2 +2 \langle a, b
\rangle + 2\langle b, c \rangle +2 \langle a,c\rangle\right)^2\\
= \left(\|a\|^2 + \|b\|^2 + \|c\|^2 +2 \langle a, b \rangle +
2\langle b, c \rangle +2 \langle a,c\rangle\right)^2
\end{multline*}
I use Emacs 26.3 and AuCTeX 12.2.0.