home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / text / tex / 13406 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  1019 b 

  1. 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
  2. From: cet1@cus.cam.ac.uk (C.E. Thompson)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: HELP on LaTeX macro
  5. Keywords: count0 pageno
  6. Message-ID: <1992Nov21.190236.905@infodev.cam.ac.uk>
  7. Date: 21 Nov 92 19:02:36 GMT
  8. References: <1992Nov19.112431.7525@inesc.pt> <1992Nov20.195547.9694@mail.cornell.edu>
  9. Sender: news@infodev.cam.ac.uk (USENET news)
  10. Organization: U of Cambridge, England
  11. Lines: 18
  12. Nntp-Posting-Host: grus.cus.cam.ac.uk
  13.  
  14. In article <1992Nov20.195547.9694@mail.cornell.edu>, tsl1@cornell.edu
  15. (Tim Larkin) writes:
  16. |>
  17. |> Why not use the \loop command? See page 217 of the TeXBook. For your 
  18. |> example,
  19. |> 
  20. |> \def\manylines#1{%
  21. |>     \count0=#1%
  22. |>     \loop\ifnum\count0>0 \oneline\advance\count0 by -1\repeat
  23. |> }
  24.  
  25. There are certain disadvantages to using \count0, though :-)
  26.  
  27. Use \count255 or a \newcount-allocated counter.
  28.  
  29. Chris Thompson
  30. JANET:    cet1@uk.ac.cam.phx
  31. Internet: cet1@phx.cam.ac.uk
  32.