🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #11164

Re: what use is a scaled point?

#11164
From: Peter Flynn
Date: Tue, 12 Jan 1993 11:48
24 lines
1349 bytes
In article <9988996@MVB.SAIC.COM>, DL24794%UAFSYSB.BITNET@SHSU.edu (Daniel H. Luecking) writes:
> 
>> In article <1993Jan5.143540.15048@wraxall.inmos.co.uk>,
>> des@inmos.co.uk (David Shepherd) writes:
>> > 1sp *is* useful sometimes when you need something to be different from
>> > 0pt but not visibly so! i.e. giving a font a slant of 1sp makes
>> > LaTeX think that it is an italic font when using \em - this can
>> > sometimes be useful.
>>
>> How so?  LaTeX doesn't really care what the actual font is that \em
>> uses.  `Giving a font a slant' requires running off a special version
>> of the font using Metafont.  If you don't want that font to actually
>> look different, why not just \let\em\relax ?

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.

///Peter
Technical Details
Message-ID: <1993Jan12.114806.50112@ccvax.ucd.ie>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!ieunet!ccvax.ucd.ie!pflynn
References: <9988996@MVB.SAIC.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!ieunet!ccvax.ucd.ie!pflynn
From: pflynn@ccvax.ucd.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: what use is a scaled point?
Message-ID: <1993Jan12.114806.50112@ccvax.ucd.ie>
Date: 12 Jan 93 11:48:06 GMT
References: <9988996@MVB.SAIC.COM>
Organization: University College Dublin
Lines: 24