[texhax] A case-insensitive \ifthenelse?

Chris Bergstresser chris at subtlety.com
Fri Aug 25 02:45:08 CEST 2006


Hi all --

   Yet another issue I can't seem to solve.  I'd like to compare a
stored string to another string, but in a case-insensitive manner.
Obviously, the naive ...

\ifthenelse{\equal{\lowercase{\my at var}}{text}}{Yes}{No}

   ...doesn't work if \my at val evaluates to "TexT".  But the more
sophisticated ...

\ifthenelse{\equal{\expandafter\lowercase\expandafter{\my at var}}{text}}{Yes}{No}

   ...also doesn't work.  Is there a better way, or a way to fix it?

-- Chris


More information about the texhax mailing list