<div dir="ltr">Thank you!  This is what I had in mind, though I'll use plain TeX to maximize the throughput.<div><br></div><div>Thanks!</div><div><br></div><div>-pd<br><br><div class="gmail_quote">On Mon, Oct 25, 2010 at 3:35 PM, Ross Moore <span dir="ltr"><<a href="mailto:ross.moore@mq.edu.au">ross.moore@mq.edu.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi James,<br>
<br>
Why write it into a long file?<br>
You can do the loop in TeX itself.<br>
<br>
<br>
\loop<br>
 ... Blah blah ...<br>
 \newpage<br>
\ifnum\value{page}<10000 \repeat<br>
<br>
<br>
I'm assuming LaTeX here, for \newpage and \value .<br>
This is probably more practical than a Plain TeX test, which would be even faster, after declaring a counter for use within the loop.<br>
<br>
<br>
Hope this helps,<br>
<br>
      Ross<br>
<br>
<br>
Sent from my iPad<br>
<div><div></div><div class="h5"><br>
On 26/10/2010, at 5:56 AM, James Quirk <<a href="mailto:jjq@galcit.caltech.edu">jjq@galcit.caltech.edu</a>> wrote:<br>
<br>
> Peter,<br>
><br>
>> Basically, yes.  I just want to see how fast TeX can compose a few tens of<br>
>> thousands of pages of text.  It could all be "Lorem ipsum ..." or whatever.<br>
><br>
> A few lines of Perl, Python, Ruby, or whatever, is all you need.<br>
> For instance:<br>
><br>
> #------------------start--------------------------------<br>
> my $n = 100000;<br>
> my $lorem = <<'TXT';<br>
> Lorem ipsum dolor sit amet, consectetur adipisicing elit,<br>
> sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br>
> Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris<br>
> nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor<br>
> in reprehenderit in voluptate velit esse cillum dolore eu fugiat<br>
> nulla pariatur. Excepteur sint occaecat cupidatat non proident,<br>
> sunt in culpa qui officia deserunt mollit anim id est laborum.<br>
><br>
> TXT<br>
><br>
> open LTX,">","lorem.tex";<br>
> print LTX <<'HEAD';<br>
> \documentclass{article}<br>
> \begin{document}<br>
> HEAD<br>
> for($i=0;$i<$n;$i++) {<br>
>   print LTX $lorem;<br>
> }<br>
> print LTX <<'TAIL';<br>
> \end{document}<br>
> TAIL<br>
> #------------------end--------------------------------<br>
><br>
> generates a document of 13044 pages.<br>
><br>
> James<br>
><br>
>><br>
>> Thanks,<br>
>> -pd<br>
>><br>
</div></div></blockquote></div><br></div></div>