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? Many thanks for your help, Pablo -- http://www.ousia.tk
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
On 7/14/21 9:06 PM, Wolfgang Schuster wrote:
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.
Many thanks for your reply, Wolfgang. I thought that iterations were numbered when loops took place. This is now clear to me now. Many thanks for your help, Pablo -- http://www.ousia.tk
participants (2)
-
Pablo Rodriguez
-
Wolfgang Schuster