I would like to write a package offering a number of commands. The package should accept options, and some of these options should be available as command options. Usage should be as follows:
...\usepackage[optA=val1,optB=val2]{mypackage}\begin{document}\mycommand[optB=val3]...
It seems as if the xkeyval
package can do that, but I am not sure how this should be done exactly.