On Thu, Jan 04, 2007 at 03:11:38PM -0000, Ted Harding wrote: > On 03-Jan-07 T. Kurt Bond wrote: > > Is there any way to find out the width of the most recent table? > : > The following should work. Indeed, it may always work! > > When 'tbl' is invoked on groff code with ".TS"/".TE" blocks, > it seems that a register \n[TW] is created towards the end of > the 'tbl' output, whose value is the width of the table in > device units. > : > The only thing I'm not really sure of is whether the register \n[TW] > is created for every table (though I can;t imagine whyit should not be). > If it is so created, then you will get the table width every time. > > Therefore, until you create a new table, \n[TW] should be available > for the most recently created table. If you want to preserve the > values for several tables, then you can of course copy the values > of \n[TW] to new registers, e.g. > > .nr TW.1 \n[TW] > .... > .nr TW.2 \n[TW] > .... > :
If it is always created in groff tbl(1), can we get this documented in the man page? As part of GNU TBL ENHANCEMENTS ? -- Mike Bianchi _______________________________________________ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff