home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / text / tex / 14798 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!bogus.sura.net!darwin.sura.net!cs.utk.edu!cs.utk.edu!eijkhout
  2. From: eijkhout@cupid.cs.utk.edu (Victor Eijkhout)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: Anchoring Boxes
  5. Date: 10 Jan 93 15:50:21
  6. Organization: /pearl/homes/eijkhout/.organization
  7. Lines: 27
  8. Message-ID: <EIJKHOUT.93Jan10155021@cupid.cs.utk.edu>
  9. References: <1993Jan8.175722.13313@ERA.COM>
  10. NNTP-Posting-Host: cupid.cs.utk.edu
  11. In-reply-to: feit@ERA.COM's message of Fri, 8 Jan 1993 17:57:22 GMT
  12.  
  13. In article <1993Jan8.175722.13313@ERA.COM> feit@ERA.COM (Mark Feit) writes:
  14.  
  15.     K3 AB  Don Wilson....................................(410) 936-1212
  16.         440 Q Street  Hamsville, MD  21012
  17.    NK3 P   Steve Donneley...................Omitted at Member's Request
  18.         1296 Repeater Road  Seekyou DE,  14131
  19.  
  20.    Any suggestions/pointers/flames/etc?
  21.  
  22. Oh boy. I've once done this for someone, but I can't find the
  23. macro. And I dont' want to spend half an hour reconstructing
  24. it. Anyway: the trick is (or at least one trick is) to
  25. recursively analyse the \vtop that you make for the address,
  26.     "\def\address#1{\box\addressbox\vtop{#1\par\apart}}
  27.     "\def\apart{\unskip\unpenalty\setbox\linebox\lastbox{\apart}}"
  28. measure the length of the first line
  29.     "\box0\hbox{\unhbox\linebox}\global\linelength\wd0"
  30. and then \wd\addressbox\linelength".
  31.  
  32. Something along those lines. (Get more ideas from 5.9.6 of
  33. TeX by Topic, or Tugboat 11(1) 51--53.)
  34.  
  35. --
  36. Victor Eijkhout ................................ `There are also a few bugs,
  37. Department of Computer Science .......... though not as many as I've come to
  38. University of Tennessee ............... expect in new [MS]Windows products.'
  39. Knoxville TN 37919 ................................ (from a software review)
  40.