I have quite a strange tex style from the conference. Everything is fine, but the following code does not work here:
\begin{eqnarray}
a = \begin{cases} 1 \\
2
\end{cases}
\end{eqnarray}
does not seem to work here in conjunction with eqnarray
, which is also required.
Is it possible to mimic the behaviour of cases in this case
?
Best Answer
eqnarray
is not required in order forcases
to work. Moreover, it's deprecated in terms of its support/usage and should therefore not be used. Rather usealign
(see\eqnarray
vs\align
. You're most likely after:amsmath
providescases
as well as\text
andalign
, althoughalign
is technically not needed for such an elementary equation. Using anequation
environment (or unnumbered\[
...\]
) would suffice.You could also obtain the above output manually using