[NTG-context] how to get a commalist out of {}-brackets

2007-08-30 Thread Peter Schorsch
Hi,

I need to forward an embedded commalist to an subfunction. The problem: how
can I get rid of the {}-brackets to access the embedded commalist?

The functions looks like:

\def\function#1[#2]
{\getparameters[label][a=,b=,embedded=,#2]
 subfunction[\labelembedded]
...}

\def\subfunction#1[#2]
{\getparamters[label][a,c,#1]
 \labela% will answer with emptyness
 #2 % returns {a=,c=} ... but I need for the getparamteres a=,c=
...}

to call the function:

\function[a=etwas,b=ddd,embedded={a=nochWas,c=hope}]

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] how to get a commalist out of {}-brackets

2007-08-30 Thread Aditya Mahajan
On Thu, 30 Aug 2007, Peter Schorsch wrote:

 Hi,

 I need to forward an embedded commalist to an subfunction. The problem: how
 can I get rid of the {}-brackets to access the embedded commalist?

 The functions looks like:

 \def\function#1[#2]
 {\getparameters[label][a=,b=,embedded=,#2]
 subfunction[\labelembedded]

\expanded{\subfunction[\labelembedded]}

 ...}

 \def\subfunction#1[#2]
 {\getparamters[label][a,c,#1]
 \labela% will answer with emptyness
 #2 % returns {a=,c=} ... but I need for the getparamteres a=,c=
 ...}

 to call the function:

 \function[a=etwas,b=ddd,embedded={a=nochWas,c=hope}]

Aditya
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___