<div dir="ltr"><br><br><div class="gmail_quote">On Mon, Oct 25, 2010 at 9: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></blockquote><div><br></div><div>Ok, I've tried this, but I get a "TeX capacity exceeded" error. See below. I've attached the file I used, which should produce 10000 pages of "Lorem ipsum ...". Any clues appreciated.</div>
<div><br></div><div>Thanks!</div><div>-pd</div><div><br></div><div><br></div><div><div>tex "\nonstopmode\input" "LoremIpsum.tex"</div><div>This is TeX, Version 3.1415926 (MiKTeX 2.8)</div><div><br></div>
<div>(c:\Users\pfd\Documents\TeX\LoremIpsum.tex</div><div>! TeX capacity exceeded, sorry [main memory size=3000000].</div><div>\body ...olestie convallis, leo neque suscipit lib</div><div> ero, vitae consectetur tor...</div>
<div><br></div><div>\next ->\body </div><div> \let \next \iterate \else \let \next \relax \fi \next </div><div>l.149 \ifnum\pageno<10000 \repeat</div><div> </div><div>No pages of output.</div>
<div>Transcript written on LoremIpsum.log.</div></div></div></div>