I've been using split
environment from amsmath
. A problem that I've run into is that if an &
for alignment is placed next to a binary operator, the spacing on that side of the operator is reduced from what it should be.
Here is a minimal example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
f(x) = m x^2 + b
\end{equation}
\begin{equation}
\begin{split}
f(x) = & m x^2 \\
& + b
\end{split}
\end{equation}
\end{document}
Any idea how to avoid this issue without having to fiddle around with manual spaces each time?
&=
or={}&