How can I resolve an xkeyvalue from a definition? The code
\documentclass{article}
\usepackage{xkeyval}
\define@key{mykeys}{foo}[foo-default]{\def\x{Key 'foo' does nothing}}
\define@key{mykeys}{bar}[bar-default]{}
\def\KEYS{foo,bar=key}
\begin{document}
\setkeys{mykeys}{\KEYS}
\end{document}
fails because foo,bar=key is not recognized as two keys, but only as one key. In other words, xkeyval does not recognize the comma between the keys foo and bar=key. How can I make xkeyval identify the comma correctly?
foocan't be set without a user value. So I inserted defaults forfooandbar. – Ahmed Musa Mar 11 at 1:16