🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #2375

Finding width of on-going \halign

#2375
From: Mark McCaughrean
Date: Tue, 18 Aug 1992 02:08
21 lines
1555 bytes
     In the middle of an \halign, I want to use \noalign to set a
paragraph of text (say). I want this paragraph to have the same
width as the table I'm setting using \halign. How do I get TeX
to tell me what the width of the table is, i.e. the width of the
vertical box I'm currently in the middle of? (I don't want to use
\multispan, by the way: I want the exact width of the table, and 
I don't want to have to know how many columns to span).

     I figured I could make a \setbox with an \hrule inside it,
hoping the \hrule would be the width of the table, and that then
I could use \wd to get the width of the box. I can't get it to
work. Seems like TeX must know the width though, or does it only
work it out when it has digested the whole table?

     Any ideas? Thanks,
                          Mark
------------------------------------------------------------------------
Mark McCaughrean    | University of Arizona | Phone: US + (602) 621 8347
Steward Observatory | Tucson, AZ 85721, USA | E-mail: mjm@as.arizona.edu
------------------------------------------------------------------------
Technical Details
Message-ID: <1992Aug18.020840.20852@organpipe.uug.arizona.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!spekl.as.arizona.edu!mjm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!spekl.as.arizona.edu!mjm
From: mjm@spekl.as.arizona.edu (Mark McCaughrean)
Newsgroups: comp.text.tex
Subject: Finding width of on-going \halign
Message-ID: <1992Aug18.020840.20852@organpipe.uug.arizona.edu>
Date: 18 Aug 92 02:08:40 GMT
Sender: news@organpipe.uug.arizona.edu
Organization: University of Arizona, Tucson, AZ
Lines: 21