Post by Peter Flynn
I have an old thesis package which uses lots of \DeclareOption commands
to preset the names and bibliographic style parameters for each of
several dozen departments/disciplines and names of degrees. This allows (eg)
I am looking into changing this to something like
but I am unclear amid the complexity of the keyval, xkeyval, clefval,
simplekv, conv-xkv, keycommand, and keyval2e packages which one is most
suited to the task.
Or should I just leave it as it is?
I personally don't like it to overload the optional argument both of
\documentclass and \usepackage with to many options.
I would always try to setup the class/package so that most settings
can be done after the loading with e.g.
This gives imho more flexibility to set options in meaningful
keyval settings in the class options are bit picky regarding spaces
and braces due to the internal code processing the options so don't
do to complicated stuff. (With the next latex release the situation
for packages will hopefully improve (see
And I would use expl3/l3keys, but this is a personal preference.