lout-users
[Top][All Lists]
Advanced

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

Re: Bad breaks with Tbl width expand


From: Valery Ushakov
Subject: Re: Bad breaks with Tbl width expand
Date: Sun, 19 Jan 2014 07:13:29 +0400
User-agent: Mutt/1.4.2.3i

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



reply via email to

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