Command/doloop

From Wiki
< Command
Revision as of 09:46, 14 June 2012 by Esteis (talk | contribs) (Create entire page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\doloop

Syntax

{commands}
\doloop
{commands} Commands or text to repeat

Description

Repeat until \exitloop is encountered.

Example

\setuppapersize[A10, landscape][A8, landscape]
\setuppaper[nx=2, ny=2]
\setuppagenumbering[location=footer]
\setuparranging[XY]
\showframe[edge]

\starttext
\dorecurse{4}{
    hello\crlf
    \doloop{
        \ifnum \pagenumber=\recurselevel  
            \exitloop 
        \fi
        bla
    }
    \page[yes]
}
\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: