Defining an environment shorthand in Latex using \newcommand

Posted by Dmitry Vaintrob on Stack Overflow See other posts from Stack Overflow or by Dmitry Vaintrob
Published on 2010-04-19T03:12:33Z Indexed on 2010/04/19 4:33 UTC
Read the original article Hit count: 291

Filed under:
|
|

I'd like to define a shorthand command for \begin{align*} and \end{align*}. When I write
\newcommand{\ba}{\begin{align*}}
it works fine. But when I write
\newcommand{\ea}{\end{align*}}
latex complains. It looks like it's interpreting it as part of the environment and is not happy with that. Anyone know how to fix this?

© Stack Overflow or respective owner

Related posts about latex

Related posts about environment