14 Jul
2021
14 Jul
'21
7:06 p.m.
Pablo Rodriguez schrieb am 14.07.2021 um 20:41:
Dear list,
I have the following sample:
\starttext \doloopoverlist{a,b,c,d} {\recursestring, number: \recurselevel\\} \stoptext
Which is the way to get the number when looping over a list?
There is no number, you're just iterating over a list. \definecounter [loopcounter] \starttext \resetcounter [loopcounter] \doloopoverlist {a,b,c,d} {\recursestring, number: \incrementedcounter [loopcounter]\par} \stoptext Wolfgang