On 6/4/2013 6:07 PM, Wolfgang Schuster wrote:
Hi Hans,

why has the meaning of the command key changed in MkIV?

Probably because it went unnoticed (I'm not using it myself). You can patch this:

                            if j == 1 then
                                context(command)
                            end



In MkII you can define a command which has as many argument as entries in the 
list.

% engine=pdftex

\usemodule[database]

\starttext

\define[3]\TestCommand{\ruledhbox{#1:#2:#3}}

\defineseparatedlist[test][command=\TestCommand]

\starttest
1,2,3
\stoptest

\stoptext


In MkIV the argument of the command key is applied to each entry in the list
and you can’t grab all entries with a single command.

\usemodule[database]

\starttext

\define[1]\TestCommand{\ruledhbox{#1}}

\defineseparatedlist[test][command=\TestCommand]

\starttest
1,2,3
4,5,6
\stoptest

\stoptext

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________



--

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to