I would like to have a minor modification of some standard AMS-environment and realize it as a new one. The problem is that not all the environments allow this procedure. Say, even the mere duplication
\newenvironment{myEnv}{\begin{gather}}{\end{gather}}
does not work. TeX-system produces the error like
! LaTeX Error: \begin{gather} on input line 126 ended by \end{myEnv}.
However, replacing above gather -> equation or some other (good) environmens works Ok. I've faced the problem in MiKTeX 2.3 and 2.9. Is this a bug or a feature? Ideally, I would like to construct modifications like
\newenvironment{myGather}{\begin{gather} ... my tuning ...}{\end{gather}}
Investigation inside the amsmath.sty did not help me. Who can? Should I fix a built-in gather-environment in this situation?
\newenvironment{myEnv}{\gather}{\endgather}– egreg Feb 05 '16 at 15:26