Changes

Jump to navigation Jump to search
Defined the page and included basic yet useful examples.
<cd:commandgroup name="dorepeatwithcommand" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\dorepeatwithcommand</tt> is used for repeating something a number of times with a command applied on it.
</cd:shortdesc>
<cd:variants>
<cd:command category="system" file="syst-aux.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-system.xml" level="system" name="dorepeatwithcommand" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:text"></cd:constant>
<cd:constant method="factor" prefix="cd:number" type="cd:text"></cd:constant>
</cd:keywords>
<cd:csname ordinal="2"></cd:csname>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\def\saywoof#1{Say woof #1 times!\par}
\dorepeatwithcommand[6*{\recurselevel}]\saywoof
</context></cd:example><cd:example title=""><context source="yes">
\def\sayhello#1{Say hello to #1!\par}
\dorepeatwithcommand[6*{Hans}]\sayhello
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="syst-aux.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:System"></cd:wikipage></cd:seealso>
</cd:commandgroup>

Navigation menu