Article View: comp.text.tex
Article #45Re: memory and loops - HELP
From: Donald Arseneau
Date: Wed, 28 Oct 1992 09:54
Date: Wed, 28 Oct 1992 09:54
24 lines
1566 bytes
1566 bytes
In article <Oct.27.22.46.52.1992.2962@math.rutgers.edu>, kuplinsk@math.rutgers.edu (Julio Kuplinsky) writes...
>
>++ If I write two nested loops (as below), even bigTeX !!! (E. Mattes)
> chokes and complains about capacity exceeded. So the problem seems
> to lie with the loops, and not with picTeX being large, but who knows?
>
..
>\loop
> \loop
> \put{.} at {\x} {\y}
> \advance\x by \gridstep
> \ifnum\x > \xlimit \continuefalse\fi
> \ifcontinue %% NOTE: I have to use this stupid construct because
> \repeat %% TeX won't allow \ifnum\x <= \xlimit. Am I mssng smthng?
The \loop macro defines \body to be the contents of the loop. Nested
loops must be at a different level of nesting so the outer \body is not
overwritten by the inner. So put \begingroup before the inner \loop
and \endgroup after the inner \repeat.
Stupid construct: sad but true. \iterate has \else in its definition so you
can't write \ifnum\x>\xlimit\else.
Donald
Technical Details
Message-ID:
<28OCT199202543400@reg.triumf.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!news.u.washington.edu!uw-beaver!cs.ubc.ca!unixg.ubc.ca!reg.triumf.ca!asndReferences:
<Oct.27.22.46.52.1992.2962@math.rutgers.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!news.u.washington.edu!uw-beaver!cs.ubc.ca!unixg.ubc.ca!reg.triumf.ca!asnd From: asnd@reg.triumf.ca (Donald Arseneau) Newsgroups: comp.text.tex Subject: Re: memory and loops - HELP Message-ID: <28OCT199202543400@reg.triumf.ca> Date: 28 Oct 92 09:54:00 GMT Article-I.D.: reg.28OCT199202543400 References: <Oct.27.22.46.52.1992.2962@math.rutgers.edu> Distribution: world Organization: TRIUMF: Tri-University Meson Facility Lines: 24 NNTP-Posting-Host: reg.triumf.ca News-Software: VAX/VMS VNEWS 1.41