I'm trying to make Latex usable by introducing a few time options, but I'm having trouble defining new commands that interrupt the environment, completely at random.
It works:
\newcommand{\bcv}{\ensuremath{\begin{smallmatrix}}}
\newcommand{\ecv}{\ensuremath{\end{smallmatrix}}}
\newcommand{\be}{\begin{enumerate}}
\newcommand{\ee}{\end{enumerate}}
This does not work:
\newcommand{\bal}{\begin{align*}}
\newcommand{\eal}{\end{align*}}
\newcommand{\verbass}[1]{\begin{verbatim} #1 \end {verbatim}}
In particular, I think the \ end value is simply ignored?
When I try to use \verbass{Halp}, I get an error message:!File ended while scanning use of \@xverbatim.
Obviously, I can use \ begin {foo} ... \ end {foo} in all places as needed, but it should actually work!
source
share