Hi,
Some time ago Wolfgang S. gave a solution to a similar problem: maybe this can help you.
%%%% begin
\def\somemacro#1%
{\def\dosomemacro##1{Execute ##1, }%
\processcommalist[#1]\dosomemacro}
\starttext
\somemacro{A,B,C}
\somemacro{E,F}
\stoptext
%%%% end
Best regards: OK
On 23 May 2014, at 11:54, Matthias Weber
Dear All,
I would like to define a command that expands
\vector{2,4} % or vector[2,4] if that’s easier
to
\startpmatrix \NC 2 \NR \NC 4 \NR \stoppmatrix
and more generally
\vector{2,4,1,7}
to
\startpmatrix \NC 2 \NR \NC 4 \NR \NC 1 \NR \NC 7 \NR \stoppmatrix
Any hints how to achieve this?
Thanks,
Matthias ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________