Pablo Rodriguez schrieb am 24.02.2021 um 19:23:
Dear list,

I have the following sample:

   \starttext
     \startTEXpage[offset=1em]
       \startoverlay
         \dostepwiserecurse{25}{95}{5}
           {{\recurselevel\ }}
       \stopoverlay
     \stopTEXpage
   \stoptext

Which is the right way to loop an overlay?

\starttext

\startluacode
context.startoverlay()
for i=25,95,5 do
    context("{%d}",i)
end
context.stopoverlay()
\stopluacode

\blank

\startcollecting
\collect{\startoverlay}
\dostepwiserecurse{25}{95}{5}{\collectexpanded{{\recurselevel}}}
\collect{\stopoverlay}
\stopcollecting

\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to