Rouben Rostamian | 13 Mar 21:07
Favicon

Using pdfkeys to parse documentclass options

Is it possible to use pgfkeys to parse documentclass options?

Specifically, I have written a documentclass, myclass.cls,
which admits a list of key=value options, as in:

    \documentclass[key1=opt1, key2=opt2]{myclass}

Currently I am using the xkeyval package to parse the options,
as in:

    \DeclareOptionX{key1}{whatever}
    \DeclareOptionX{key2}{whatever}
    \ProcessOptionsX

I would rather use pgfkeys, if possible.  I tried:

    \pgfkeys{/myclass/key1/.code=whatever}
    \pgfkeys{/myclass/key2/.code=whatever}
    \pgfkeys{/myclass/.cd, ???}

But I don't know what to put for ???.

--

-- 
Rouben Rostamian

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

Gmane