I'm trying to call the macro
\verbum
(defined via \NewDocumentCommand
) from the other macro \regVerbum
, but it seems that the mandatory argument taken by the \Splitlist
processor in \verbum
command has not been expanded.Here it is a minimal working example:
\documentclass{article} \usepackage{xparse} \newcommand{\addConjug}[1]{#1.\par} \NewDocumentCommand{\verbum}{>{\SplitList{;}}m} {\ProcessList{#1}{\addConjug}} \newcommand{\addVoice}[1]{#1;} \NewDocumentCommand{\regVerbum}{>{\SplitList{,}}m} {The input: \ProcessList{#1}{\addVoice}\par The output: \verbum{\ProcessList{#1}{\addVoice}}} \begin{document} \regVerbum{a,b,c,d,e,f,g} The input: a;b;c;d;e;f;g;\par The output: \verbum{a;b;c;d;e;f;g;} \end{document}
Could you please suggest a way to obtain by
\regVerbum{a,b,c,d,e,f,g}
what I obtain by \verbum{a;b;c;d;e;f;g;}
?Thanks!