Why does this code give an error? I suspect it's some quirk of environments that there's a simple solution for, but I have not been able to find a solution online. Probably I just don't know what search terms to use.
Code
Note that my real definition of eq has more in it; this is a minimal reproduction. Also note that replacing align with equation makes the code compile, but, of course, it then does not allow for using &.
\documentclass{article}
\usepackage{amsmath}
\newenvironment{eq}
{\begin{align}}
{\end{align}}
\begin{document}
\begin{eq}
x + 1 = 2
\end{eq}
\end{document}
Error
! LaTeX Error: \begin{align} on input line 11 ended by \end{eq}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.13 \end{eq}
I've also tried using
\documentclass{article}
\usepackage{amsmath}
\newenvironment{eq}
{\begin{equation}\begin{aligned}}
{\end{aligned}\end{equation}\ignorespacesafterend}
\begin{document}
Begin
\begin{eq}
x + 1 = 2
\end{eq}
End1 \
End2
\end{document}
but I'm wondering why plain align doesn't work.