[Tex/LaTex] Starred equivalent in newenvironment

environmentsstarred-version

Let's say I want to use the align-environment in a newenvironment like this:

\newenvironment{mequation}{\align}{\endalign}

This works fine. However, what if I want to use the starred version of align*?

\newenvironment{mequation}{\align*}{\endalign*}

Doesn't seem to work.. Any ideas?

Best Answer

* cannot be used for the name of a control sequence. You must use the \csname...\endcsname pair here :

\newenvironment{mequation}{\csname align*\endcsname}{\csname endalign*\endcsname}
Related Question