[texhax] class options with spaces

Arno Trautmann Arno.Trautmann at gmx.de
Wed Aug 5 19:05:19 CEST 2009


I need the possibility to define class options that take an argument
with spaces, such as

\documentclass[use=section one]{myclass}

I try this using xkeyval:

\DeclareOptionX{use}{\def\use at content{#1}}

but the content of \use at content will be ”sectionone“. Is it possible to
save the spaces? I didn’t find anything in the xkeyval doc and
everything I tried (grouping in input etc.) was not successfull.


-------------- 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/20090805/647958cc/attachment.bin>

More information about the texhax mailing list