🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #2457

Re: Finding width of on-going \halign

#2457
From: Damian Cugley
Date: Wed, 19 Aug 1992 10:25
22 lines
1296 bytes
You can't find the width until its all been set, because it is not until
then that TeX know how wide each column needs to be.

You might try the following though:

Start up a vbox with the halign in it.

Set a counter to 0 before the \halign.

In the preamble, globally increment the counter each row

Where the paragrap will go, do a noalign of (a) a -ve penalty and (b)
globally set a second counter to the value of the first

Now you have a vbox which contains the halign, so \wd<N> is the width
you want.  Also the 2nd counter gives you the info you need to vsplit
the vbox into the parts of the table before and after your paragraph.
AFter thus spliting box<N>, you can unvbox the two halves with your
paragraph inbetween.

Hope tghis helps
Damian
Technical Details
Message-ID: <DAMIAN.CUGLEY.92Aug19112553@pierrot.comlab>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!ox-prg!culhua!Damian.Cugley
References: <1992Aug18.020840.20852@organpipe.uug.arizona.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!ox-prg!culhua!Damian.Cugley
From: Damian.Cugley@comlab.oxford.ac.uk (Damian Cugley)
Newsgroups: comp.text.tex
Subject: Re: Finding width of on-going \halign
Message-ID: <DAMIAN.CUGLEY.92Aug19112553@pierrot.comlab>
Date: 19 Aug 92 10:25:53 GMT
References: <1992Aug18.020840.20852@organpipe.uug.arizona.edu>
Sender: news@comlab.ox.ac.uk
Organization: Computing Laboratory, Oxford University, UK
Lines: 22
In-reply-to: mjm@spekl.as.arizona.edu's message of 18 Aug 92 02:08:40 GMT