I am trying to switch from eqnarray to align environment; since I use everywhere a macro
Code: Select all
\def\bea{\begin{eqnarray}}
\end\eea{\end{eqnarray}}
Code: Select all
\documentclass[11pt]{article}
\usepackage{amsmath}
\def\bea{\begin{align}}
\def\eea{\end{align}}
\begin{document}
\bea
a & =f\\
f & = weeq\\
\eea
\end{document}
But when I compile I get the error:
I cannot understand why or how to fix it.! LaTeX Error: \begin{align} on input line 6 ended by \end{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.10 \end{document}
Any help is very welcome, Thanks!