home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- Path: sparky!uunet!news.univie.ac.at!vm.univie.ac.at!A8131DAL
- From: A8131DAL@vm.univie.ac.at (Peter Schmitt)
- Subject: Re: what use is a scaled point?
- Message-ID: <1993Jan12.125543.23429@newssrv.edvz.univie.ac.at>
- Sender: news@newssrv.edvz.univie.ac.at (News System - Vienna University)
- Nntp-Posting-Host: helios.edvz.univie.ac.at
- Organization: University of Vienna
- Date: Tue, 12 Jan 1993 12:51:12 GMT
- Lines: 20
-
- >From: pflynn@ccvax.ucd.ie (Peter Flynn)
- >Date: 12 Jan 93 11:48:06 GMT
- >
- >You can also use a dimen to grab a linecount, such as in
- >\setbox0=\vbox{...some text...}
- >\newdimen\lines
- >\lines=\ht0 \advance\lines by\dp0
- >¢divide\lines by\baselineskip
- >
- >and you have the approximate number of lines in the box, because the
- >calculations were done in sp's.
- >
-
- Sorry, but I don't see what this has to do with the fact that TeX
- internally calculates in sp:
- height+depth / height of line
- will always give the number of lines (approximately, if lines are
- not fixed spaced) - regardless of the length unit used.
-
- Peter
-