Re: Bad breaks with Tbl width expand
Valery Ushakov <[email protected]> Sun, 19 Jan 2014 07:13:29 +0400
| Newsgroups | gmane.comp.type-setting.lout |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Nov 14, 2013 at 23:06:24 +0800, Robin Chew wrote:
> 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.
Is it really necessary? Since you have the width of B constrained
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