home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!agate!doc.ic.ac.uk!uknet!pavo.csi.cam.ac.uk!camcus!cet1
- From: cet1@cus.cam.ac.uk (C.E. Thompson)
- Newsgroups: comp.text.tex
- Subject: Re: HELP on LaTeX macro
- Keywords: count0 pageno
- Message-ID: <1992Nov21.190236.905@infodev.cam.ac.uk>
- Date: 21 Nov 92 19:02:36 GMT
- References: <1992Nov19.112431.7525@inesc.pt> <1992Nov20.195547.9694@mail.cornell.edu>
- Sender: news@infodev.cam.ac.uk (USENET news)
- Organization: U of Cambridge, England
- Lines: 18
- Nntp-Posting-Host: grus.cus.cam.ac.uk
-
- In article <1992Nov20.195547.9694@mail.cornell.edu>, tsl1@cornell.edu
- (Tim Larkin) writes:
- |>
- |> Why not use the \loop command? See page 217 of the TeXBook. For your
- |> example,
- |>
- |> \def\manylines#1{%
- |> \count0=#1%
- |> \loop\ifnum\count0>0 \oneline\advance\count0 by -1\repeat
- |> }
-
- There are certain disadvantages to using \count0, though :-)
-
- Use \count255 or a \newcount-allocated counter.
-
- Chris Thompson
- JANET: cet1@uk.ac.cam.phx
- Internet: cet1@phx.cam.ac.uk
-