I would like to be able to use multicolumn
inside an align environment, much like we can do in a tabular
environment
MWE:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
a &= e^{a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p} \\
e^{a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p} &= a
\end{align}
\end{document}
In this case I would like to be able to put the &
inside the exponent on the lhs of the second line, i.e. e^{a+b+c+d+e+ & f+g+h+i+j+k+l+m+n+o+p}
but of course this is not allowed. I tried using multicolumn
but this gave errors as well.
Of course I could align both equations to the left, but where I need it the situation is much more involving. Until now, I would put the ampersand in the second equation fully to the left, and manually adjust using negative spaces… But I wonder if there exists a better solution.
The most ideal situation would be something that allows me to put the &
wherever I want, even inside brackets, but I would be happy with a multicolumn solution as well.
EDIT
What I try to achieve is something like
eqnarray
? edit I just saw this, so better use the aligned-commands (and I'll revise my documents).gather
and loose the&
'seqnarray
is deprecated in favour of environments more flexible such as theamsmath
or another packages for maths.