Am 13.08.10 00:20, schrieb Philipp Gesang:
Hi,
is there a way to check whether an option was specified through \usemodule?
Couldn't find anything like that in core-fil.mkiv.
I'd imagined some branching as with the system macros:
······ Wishful thinking ·······················································
\doifmoduleparameter{modulename}{key} % in the module code
{\somecommand[\moduleparameter{modulename}{key}]}
\usemodule % user code
[modulename]
[key=val]
····· /Wishful thinking ·······················································
Thanks for any suggestions,
You can set a empty value for the kay in your module and check if the
user has set a value with \usemodule:
\setupmodule[key=]
\doifsomething{\currentmoduleparameter{key}}{\setupsomething[key=\currentmoduleparameter{key}]}
For a better answer i have to know for what purpose you need this
information.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________