Difference between revisions of "Command/recurselevel"

From Wiki
Jump to navigation Jump to search
m (Create entire page)
 
m (Counting up, not down.)
Line 19: Line 19:
 
== Example ==
 
== Example ==
 
<context source=yes>
 
<context source=yes>
Counting down slow:
+
Counting up slow:
 
\dorecurse{10}
 
\dorecurse{10}
 
     {\recurselevel...\ }
 
     {\recurselevel...\ }

Revision as of 09:04, 14 June 2012

\recurselevel

Syntax

\recurselevel

Description

The iteration count in a \dorecurse or \dostepwiserecurse loop.

Example

Counting up slow:
\dorecurse{10}
    {\recurselevel...\ }

Counting down fast:
\dostepwiserecurse{10}{1}{-2}
    {\recurselevel...\ }
Counting stopped.

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: