* how to get a commalist out of {}-brackets
@ 2007-08-30 19:27 Peter Schorsch
2007-08-30 19:55 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Peter Schorsch @ 2007-08-30 19:27 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to get a commalist out of {}-brackets
2007-08-30 19:27 how to get a commalist out of {}-brackets Peter Schorsch
@ 2007-08-30 19:55 ` Aditya Mahajan
2007-08-31 18:26 ` Peter Schorsch
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2007-08-30 19:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to get a commalist out of {}-brackets
2007-08-30 19:55 ` Aditya Mahajan
@ 2007-08-31 18:26 ` Peter Schorsch
0 siblings, 0 replies; 3+ messages in thread
From: Peter Schorsch @ 2007-08-31 18:26 UTC (permalink / raw)
To: ntg-context
Aditya Mahajan wrote:
>
> \expanded{\subfunction[\labelembedded]}
>
Thanks, that was the solution :-)
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-31 18:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-30 19:27 how to get a commalist out of {}-brackets Peter Schorsch
2007-08-30 19:55 ` Aditya Mahajan
2007-08-31 18:26 ` Peter Schorsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).