let's say i have this in a TeX document:
\def\variable{somevalue}
how can i use a switch or if statement, testing for this value?
\if \variable{somevalue}
does not work and neither does the \ifx version.
the only way i can get it to work is by doing this:
\def\variable{somevalue}
\def\somevalue{somevalue}
\ifx \variable\somevalue
which is a hack at best. does anyone have a better tip, short of the
ifthen package?
--
.''`. martin f. krafft <madduck@debian.org>
: :' : proud Debian developer, admin, and user
`. `'`
`- Debian - when you have better things to do than fixing a system
Attachment:
pgp8xvVxJYnF5.pgp
Description: PGP signature