I would like to do the following:
\mycmd{foo={a,b,c},baz={1,2,3}}
where {a,b,c}
and {1,2,3}
are arrays/sequences of data.
The MWE is this:
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{expl3}
\usepackage{xparse}
\ExplSyntaxOn
\begin{document}
\keys_define:nn { mycmd }
{
\foo .tl_set:N = \l_mycmd_foo_tl,
\baz .tl_set:N = \l_mycmd_baz_tl
}
\NewDocumentCommand\mycmd{m}{
\keys_set:nn { mycmd } { #1 }
% iterate through `\l_mycmd_foo_tl` comma-separated list
% iterate through `\l_mycmd_bar_tl` comma-separated list
}
\mycmd{foo={a,b,c},baz={1,2,3}}
\end{document}
foo
norbaz
are key names\typeout
the value that's fine. In my case each iteration impl would be something custom.