[texhax] package option with arguments

Arno Trautmann Arno.Trautmann at gmx.de
Mon Aug 3 15:45:26 CEST 2009


I’m trying to set up a package that has one optional argument. This
option can have several values that can be combined, like


Later I want to check if the argument has a certain string in it, in
this case e.g. if ”greek“ is given. I tried it with \in@ but had no
success. This is my code:


\ifin@ \AtBeginDocument{greek is in}\fi

I use xkeyval for option processing.
\excludeoptions contains the expected string, but I did not manage to
get a true \ifin@, no matter how I used \expandafter or similar things.

Is this a total wrong way to do the task? Is there a tool that does it
less low-leve? I am totally clueless at the moment :(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://tug.org/pipermail/texhax/attachments/20090803/1871bd45/attachment.bin>

More information about the texhax mailing list