[texhax] class options with spaces

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Aug 5 20:03:45 CEST 2009

Arno Trautmann wrote:
> Hi,
> 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.
> Arno
Only if you load one of the kernel patches before \documentclass. Both
kvoptions and xkeyval have patches for the problem.
Joseph Wright

More information about the texhax mailing list