[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Is there an easy way to find out the width of the mo
From: |
M Bianchi |
Subject: |
Re: [Groff] Is there an easy way to find out the width of the mo |
Date: |
Thu, 4 Jan 2007 10:30:29 -0500 |
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