I am trying to define a new align
-like environment that, in the spirit of this answer, displays only one single equation number for the entire multi-line equation. As for nesting the align
and split
environments I consulted this question but I can't get it to work:
\documentclass{article}
\usepackage{amsmath}
\newenvironment{alignOne}{\align\split}{\endsplit\endalign}
\begin{document}
\begin{alignOne}
a &= b \\
&=c \\
&=d \\
&=e
\end{alignOne}
\end{document}
The error message is
Missing } inserted. [ \end{alignOne}]
and a similar error message shows up when I replace \split
with \begin{split}
and \endsplit
with \end{split}
.
How do I get this to work? What is the general way to nest environments in \newenvironment
definitions?