Difference between revisions of "Command/dorecurse"
< Command
Jump to navigation
Jump to search
(Create dorecurse page) |
m (Comment out line endings, they break stuff) |
||
Line 7: | Line 7: | ||
<table cellspacing="4" cellpadding="2" class="cmd"> | <table cellspacing="4" cellpadding="2" class="cmd"> | ||
<tr> | <tr> | ||
− | <td colspan="2" class="cmd">\dorecurse | + | <td colspan="2" class="cmd">\dorecurse<!-- |
− | + | --><span class="first" >{''n''}</span><!-- | |
− | + | --><span class="second" >{''commands''}</span><!-- | |
− | + | --></td> | |
</tr> | </tr> | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> |
Revision as of 13:38, 25 May 2012
\dorecurse
Syntax
\dorecurse{n}{commands} | |
{n} | The number of times to repeat the commands |
{commands} | Commands or text to repeat |
Description
Repeat a command a number of times.
Example
\dorecurse{3}{Meow...\ }
See also
- \input is also often used to produce dummy text
- Programming_in_LuaTeX#Loops_without_worrying_about_expansion LuaTeX for heavier-duty looping and iterating.
Help from ConTeXt-Mailinglist/Forum
All issues with: