home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / text / tex / 14882 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.4 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!yale.edu!yale!gumby!destroyer!cs.ubc.ca!unixg.ubc.ca!msr.triumf.ca!asnd
  2. From: asnd@msr.triumf.ca (Donald Arseneau)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: what use is a scaled point?
  5. Date: 12 Jan 1993 15:59 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Lines: 25
  8. Distribution: world
  9. Message-ID: <12JAN199315595227@msr.triumf.ca>
  10. References: <1993Jan12.125543.23429@newssrv.edvz.univie.ac.at>
  11. NNTP-Posting-Host: msr.triumf.ca
  12. News-Software: VAX/VMS VNEWS 1.41    
  13.  
  14. In article <1993Jan12.125543.23429@newssrv.edvz.univie.ac.at>, A8131DAL@vm.univie.ac.at (Peter Schmitt) writes...
  15. >>From: pflynn@ccvax.ucd.ie (Peter Flynn)
  16. >>\divide\lines by\baselineskip
  17. >>
  18. >>and you have the approximate number of lines in the box, because the
  19. >>calculations were done in sp's.
  20. >>
  21. >Sorry, but I don't see what this has to do with the fact that TeX
  22. >internally calculates in sp:
  23. >height+depth / height of line
  24. >will always give the number of lines (approximately, if lines are
  25. >not fixed spaced) - regardless of the length unit used.
  26.  
  27. Yes it gives a number (integer).  But it is in a length register.
  28. So what length is it??  If the number is 5, the length is 5sp.
  29.  
  30. Continuing, if you want to subsequently set \lines to have a minimum
  31. value of 2,
  32.   \ifnum\lines<2 \lines=2sp \fi
  33.  
  34. If you want to increment the line count,
  35.   \advance \lines 2sp
  36.  
  37. Donald
  38.