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

  1. Path: sparky!uunet!mcsun!ieunet!ccvax.ucd.ie!pflynn
  2. From: pflynn@ccvax.ucd.ie (Peter Flynn)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: what use is a scaled point?
  5. Message-ID: <1993Jan12.114806.50112@ccvax.ucd.ie>
  6. Date: 12 Jan 93 11:48:06 GMT
  7. References: <9988996@MVB.SAIC.COM>
  8. Organization: University College Dublin
  9. Lines: 24
  10.  
  11. In article <9988996@MVB.SAIC.COM>, DL24794%UAFSYSB.BITNET@SHSU.edu (Daniel H. Luecking) writes:
  12. >> In article <1993Jan5.143540.15048@wraxall.inmos.co.uk>,
  13. >> des@inmos.co.uk (David Shepherd) writes:
  14. >> > 1sp *is* useful sometimes when you need something to be different from
  15. >> > 0pt but not visibly so! i.e. giving a font a slant of 1sp makes
  16. >> > LaTeX think that it is an italic font when using \em - this can
  17. >> > sometimes be useful.
  18. >>
  19. >> How so?  LaTeX doesn't really care what the actual font is that \em
  20. >> uses.  `Giving a font a slant' requires running off a special version
  21. >> of the font using Metafont.  If you don't want that font to actually
  22. >> look different, why not just \let\em\relax ?
  23.  
  24. You can also use a dimen to grab a linecount, such as in
  25. \setbox0=\vbox{...some text...}
  26. \newdimen\lines
  27. \lines=\ht0 \advance\lines by\dp0
  28. \divide\lines by\baselineskip
  29.  
  30. and you have the approximate number of lines in the box, because the
  31. calculations were done in sp's.
  32.  
  33. ///Peter
  34.