Why does a choice
key not save it’s value to a macro as a cmd
key and as the corresponding xkeyval
\define@choicekey
do?
In the following example I have to define my@key
manually by using the callback.
\documentclass{article}
\usepackage{keyreader}
\krddefinekeys*{CL}[my]{%
choice/keya/one/
one,two,three/\def\mykeya{#1};
choice/keyb/aa/
aa,bb,cc,dd;
}
\begin{document}
\mykeya% works
and
%\mykeyb% doesn't work
\end{document}
With xkeyval
it is possible to define a bin
i.e. a macro that saves the value:
\define@choicekey*{CL}{keyc}[\mybin]{alpha,beta,gamma,epsilon}[alpha]{}
an later \mybin
holds the value of keyc