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

Mojca Miklavec mojca.miklavec.lists at gmail.com
Mon Aug 21 17:23:48 CEST 2006


I tried to print out primes (well, I tried to do something else, but I
needed a more illustrative example), but it seems that my approach was
too naive:

	\def\printPrime##1{##1 is prime.\crlf}


I expected something like
   2 is prime.
   3 is prime.
   5 is prime.
But I got
   2,3,5 is prime.

Any suggestions or hints about how to change the macro to produce the
desired result (using the same input)?

Thank you a lot,

More information about the ntg-context mailing list