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