[texhax] (no subject)
Chris Rowley
C.A.Rowley at open.ac.uk
Wed Jun 11 17:14:17 CEST 2003
Philip TAYLOR [PC336/H-XP] wrote --
> --------
> \ifcase \count 0 \def \C{&0}
> \or \def \C{&1}
> \or \def \C{&2}
> \or \def \C{&3}
> \else \def \C{&4}
> \fi
> \end
> _______________________________________________
> texhax mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/texhax
>
Similarly, LaTeX does this:
\ifcase\@eqcnt \def\reserved at a{& & &}\or \def\reserved at a{& &}%
\or \def\reserved at a{&}\else
\let\reserved at a\@empty
\@latex at error{Too many columns in eqnarray environment}\@ehc\fi
\reserved at a
I (and, I hope, Phil:-) could explain why this works but
\ifcase \@eqncnt & & & \or etc
does not ... but that needs a whole mailing list all to itself:-).
chris
More information about the texhax
mailing list