[texhax] Repeating an environment

Boris Veytsman borisv at lk.net
Tue Apr 28 21:01:29 CEST 2009

=B> Date: Tue, 28 Apr 2009 20:08:38 +0200
=B> From: =?ISO-8859-1?Q?Stefan_Bj=F6rk?= <stefan.bjork at gmail.com>

=B> How can I create an environment that repeats the contents in question
=B> a specified number of times? For example:

=B> \begin{repeat}{5}
=B>   A lot of text over several pages.
=B> \end{repeat}

=B> And this is repeated 5 times?

\newcommand{\textToRepeat}{A lot of text over several pages.\par This is
run number \i.\par}

Good luck


Kirk to Enterprise -- beam down yeoman Rand and a six-pack.

More information about the texhax mailing list