Torsten Bronger writes:
 > Thank you for this link.  I wasn't aware of it, and not of this
 > \relax necessity.  So is it better that I generate
 > \begin{eqnarray}\relax instead of just \begin{eqnarray}?

no that would be wrong, \relax generates a mathord and this is precisely
why you can't define commands in TeX to go

 \relax\iffmode...

as this messes up spacing. anyhow i'm not sure why you would want to have a
\relax there (and eqnarry is inferior for doing serious math compared to the
amsmath environments)

frank