home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / text / tex / 14862 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.0 KB  |  32 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!news.univie.ac.at!vm.univie.ac.at!A8131DAL
  3. From: A8131DAL@vm.univie.ac.at (Peter Schmitt)
  4. Subject: Re: what use is a scaled point?
  5. Message-ID: <1993Jan12.125543.23429@newssrv.edvz.univie.ac.at>
  6. Sender: news@newssrv.edvz.univie.ac.at (News System - Vienna University)
  7. Nntp-Posting-Host: helios.edvz.univie.ac.at
  8. Organization: University of Vienna
  9. Date: Tue, 12 Jan 1993 12:51:12 GMT
  10. Lines: 20
  11.  
  12. >From: pflynn@ccvax.ucd.ie (Peter Flynn)
  13. >Date: 12 Jan 93 11:48:06 GMT
  14. >
  15. >You can also use a dimen to grab a linecount, such as in
  16. >\setbox0=\vbox{...some text...}
  17. >\newdimen\lines
  18. >\lines=\ht0 \advance\lines by\dp0
  19. >¢divide\lines by\baselineskip
  20. >
  21. >and you have the approximate number of lines in the box, because the
  22. >calculations were done in sp's.
  23. >
  24.  
  25. Sorry, but I don't see what this has to do with the fact that TeX
  26. internally calculates in sp:
  27. height+depth / height of line
  28. will always give the number of lines (approximately, if lines are
  29. not fixed spaced) - regardless of the length unit used.
  30.  
  31. Peter
  32.