Command/dorepeatwithcommand

From Wiki
< Command
Revision as of 07:04, 17 December 2020 by JairoAdelRio (talk | contribs) (Defined the page and included basic yet useful examples.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\dorepeatwithcommand

Summary

The command \dorepeatwithcommand is used for repeating something a number of times with a command applied on it.

Settings

\dorepeatwithcommand[...]\command
[...]text number*text
\commandcsname

Description

Examples

Example 1

\def\saywoof#1{Say woof #1 times!\par}
\dorepeatwithcommand[6*{\recurselevel}]\saywoof

Example 2

\def\sayhello#1{Say hello to #1!\par}
\dorepeatwithcommand[6*{Hans}]\sayhello

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: