🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #2440

Re: Finding width of on-going \halign

#2440
From: PROF D. Rogers (EAS FAC)
Date: Wed, 19 Aug 1992 01:09
31 lines
1471 bytes
In article <18AUG199202094046@reg.triumf.ca> asnd@reg.triumf.ca (Donald Arseneau) writes:
!In article <1992Aug18.020840.20852@organpipe.uug.arizona.edu!, mjm@spekl.as.arizona.edu (Mark McCaughrean) writes...
!! 
!!     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. 
!
!A backwards answer: Use 
!  \halign to <dimen!{...}.
!
!!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? 
!
!You can't.  The width is undefined until the box is wrapped up.

!Donald Arseneau         asnd@reg.triumf.ca

Don, how about doing this?

Put the complete table in a setbox, say setbox0. Do not set it.

Then using a good editor simply recopy the table and use an
\halign to \wd0{ the same table with the \noalign
paragraph in the middle}

TeX works harder but it should do the job. 

Note, I have not tried this so the details may vary a bit.

Dave Rogers
Technical Details
Message-ID: <2043@usna.NAVY.MIL>
Path: arc1-ca.pugleaf.net!sparky!uunet!usna!dfr
References: <1992Aug18.020840.20852@organpipe.uug.arizona.edu> <18AUG199202094046@reg.triumf.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usna!dfr
From: dfr@usna.navy.mil (PROF D. Rogers (EAS FAC))
Newsgroups: comp.text.tex
Subject: Re: Finding width of on-going \halign
Message-ID: <2043@usna.NAVY.MIL>
Date: 19 Aug 92 01:09:45 GMT
References: <1992Aug18.020840.20852@organpipe.uug.arizona.edu> <18AUG199202094046@reg.triumf.ca>
Sender: news@usna.NAVY.MIL
Organization: U. S. Naval Academy
Lines: 32