Hello ConTeXist.
Is there in ConTeXt any dirty trick, which can put more than 9 parameters into macro?

I mean for example \define[25]\macrowithtwentyfiveparams{ .... }

I use rarely any trick from Peter Olsak (see below) and I'd like something like that used in ConTeXt.

Jaroslav Hajtmar

Here is minimal example of trick of Petr Olsak:

\def\readparameters{\tempnum=0\let\next=\readone \next}
\def\readone #1,{\advance\tempnum by 1 \def\param{#1}%
        %\the\tempnum - \param\par%
    \ifx\param\terminator \let\next=\relax
    \else\expandafter\gdef\csname param\the\tempnum\endcsname{#1}%

 \readparameters #1 %
 \csname param1\endcsname, % write first parameter
 \csname param3\endcsname, % write third parameter
 \csname param5\endcsname, % write fifth parameter


%\readparameters a,b,c,d,e,f,g,h,i,j,k,m,n,o,*, %



If your question is of interest to others as well, please add an entry to the 

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