[texhax] class options with spaces

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


Lars Madsen wrote:
> 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
>>
> 
> have you tried  use={blah blah}?

Was my first thought, but:

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.42 \LoadClass
               {scrartcl}
?

I don’t understand why I get this error …

Arno

-------------- 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/7eb6cc10/attachment.bin>


More information about the texhax mailing list