[NTG-context] How to \processcommalist inside another commalist?

Mojca Miklavec mojca.miklavec.lists at gmail.com
Wed Aug 23 22:43:08 CEST 2006


On 8/21/06, Taco Hoekwater wrote:
> nico wrote:
> > \def\arePrimeN[#1]{%
> > \bgroup
> > \getparameters[Prime][p=,#1]
> > \expandafter\processcommalist\expandafter[\Primep]\printPrime
> > \egroup}
>
> And an equivalent is
>
>    \processcommacommand[\Primep]\printPrime

On 8/21/06, Taco Hoekwater wrote:
> Mojca Miklavec wrote:
> >
> > At the beginning the main reason against it was that I didn't know how
> > to distinguish which kind of parameters are being used in the second
> > pair of brackets, but I guess that I can safely use \ifnumberelse as a
> > test on the first item to distinguish between the two.
>
> You could look up \doifassignmentelse in the sources.

Thank you, the two commands (including Hans's additional hints) solved
"all" my questions (for now.)

Mojca


More information about the ntg-context mailing list