groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] tbl X keyletter


From: Werner LEMBERG
Subject: Re: [Groff] tbl X keyletter
Date: Sat, 04 Jan 2003 17:34:20 +0100 (CET)

> I have been eager to abandon DWB troff entirely for groff, but I
> have been waiting for groff to catch up to troff in a few key areas,
> first.  Now that color is available for text and pic, the only
> missing feature seems to be the X column keyword that is available
> in DWB tbl. This is an incredibly useful.

I've never used DWB troff -- are you saying that it supports colours?

> From the man page: It is used to "increase the normal width of this
> column to use the remainder of the page width (between margins)
> after the widths of the other columns have been subtracted.  This
> modifier is useful for a column containing text blocks, where it is
> desired to make the column as wide as possible without exceeding the
> page width.  At most one column can have this modifier."
>
> I can't seem to find this feature in groff tbl.  Am I missing
> something?

This feature is not in GNU tbl.

> If I'm not, this would be a great feature to add to groff tbl.

I've looked into the source code, and I found out that it is quite
tricky to implement.  If you weaken the condition to

  "Increase the minimal width of this column to use the remainder of
  the page width (between margins) after the minimal widths of the
  other columns have been subtracted."

then it is rather trivial.  I don't know whether this is what DWB tbl
does.

Sorry, I don't have time to add this feature to GNU tbl.  Are you
volunteering?  The key function is table::compute_widths() in file
src/preproc/tbl/table.cc.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]