πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #11165

Re: what use is a scaled point?

#11165
From: Peter Schmitt
Date: Tue, 12 Jan 1993 12:51
20 lines
1078 bytes
>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
Technical Details
Message-ID: <1993Jan12.125543.23429@newssrv.edvz.univie.ac.at>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!vm.univie.ac.at!A8131DAL

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!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