home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / text / tex / 13378 < prev    next >
Encoding:
Text File  |  1992-11-20  |  899 b   |  34 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!newsstand.cit.cornell.edu!news
  3. From: Tim Larkin <tsl1@cornell.edu>
  4. Subject: Re: HELP on LaTeX macro
  5. Message-ID: <1992Nov20.195547.9694@mail.cornell.edu>
  6. X-Xxdate: Fri, 20 Nov 92 20: 00:07 GMT
  7. Sender: news@mail.cornell.edu
  8. Nntp-Posting-Host: 128.253.27.134
  9. Nntp-Posting-User: tsl1@cornell.edu
  10. Organization: Cornell University
  11. X-Useragent: Nuntius v1.1.1d7
  12. References: <1992Nov19.112431.7525@inesc.pt>
  13. Date: Fri, 20 Nov 1992 19:55:47 GMT
  14. Lines: 18
  15.  
  16. In article <1992Nov19.112431.7525@inesc.pt> Nuno Joao Mamede,
  17. njm@thor.inesc.pt writes:
  18. >How can I define such a loop in LaTeX (TeX)?
  19.  
  20. Why not use the \loop command? See page 217 of the TeXBook. For your 
  21. example,
  22.  
  23. \def\manylines#1{%
  24.     \count0=#1%
  25.     \loop\ifnum\count0>0 \oneline\advance\count0 by -1\repeat
  26. }
  27.  
  28. Tim Larkin
  29. Federal Nutrition Laboratory
  30. Tower Road
  31. Ithaca, New York
  32. tsl1@cornell.edu
  33. 607-255-7008
  34.