|
From: | Robin Chew |
Subject: | Re: Bad breaks with Tbl width expand |
Date: | Sun, 19 Jan 2014 15:02:48 +0800 |
On Thu, Nov 14, 2013 at 23:06:24 +0800, Robin Chew wrote:Is it really necessary? Since you have the width of B constrained
> I created the PDF using t.lout (in attachment) with:
>
> lout t.lout | ps2pdf - > t.pdf
>
> And the resulting PDF shows the text doing unnecessary breaks (as seen in
> attachment).
>
> Removing width{expand} would fix it but I need it in order to keep the
> table width expanded if a cell contains less text.
aformat { @Cell A | @Cell width { 3c } B }
A should get all the remaining width.
The bad break comes from the hack that is used for "expand". It
really translates internally (tblf) to 40c @Wide and your text is
wider than that. So it's first broken into lines for the 40c width
and then those lines are broken again to fit into whatever width A
gets.
-uwe
table_hexpand.lout
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |