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