[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `@raggedright` and `@multitable`
From: |
Gavin Smith |
Subject: |
Re: `@raggedright` and `@multitable` |
Date: |
Mon, 4 Apr 2022 16:14:03 +0100 |
On Tue, Mar 22, 2022 at 06:01:20AM +0000, Werner LEMBERG wrote:
>
> [texinfo.tex 2022-02-16.13]
>
>
> Consider the following example
>
> ```
> \input texinfo.tex
>
> @multitable @columnfractions 0.2 0.2 0.2
> @item foofoo foofoo foofoo foofoo
> @tab barbar barbar barbar barbar
> @tab bazbaz bazbaz bazbaz bazbaz
> @end multitable
>
> @raggedright
> @multitable @columnfractions 0.2 0.2 0.2
> @item foofoo foofoo foofoo foofoo
> @tab barbar barbar barbar barbar
> @tab bazbaz bazbaz bazbaz bazbaz
> @end multitable
> @end raggedright
>
> @bye
> ```
>
> While `texi2pdf` produces the desired result, I get unnecessary
> warnings for the second table, which are counter-intuitive:
>
> ```
> Underfull \hbox (badness 10000) in paragraph at lines 11--12
> @textrm foofoo foofoo
>
> Underfull \hbox (badness 10000) in paragraph at lines 12--13
> @textrm barbar bar-bar
>
> Underfull \hbox (badness 10000) in paragraph at lines 13--14
> @textrm bazbaz bazbaz
> ```
Thanks for the report. I found it was due to the reassignment
of \rightskip inside @multitable.
I've attempted a fix in commit beb67a5f97219. I checked the output
for some of the @multitable's in the Texinfo manuals but it would
be good if you could check that the output looks fine for @multitable
inside and outside of @raggedright.
> Is there a chance to improve the definition of `@raggedright` (or
> `@multitable`) so that those warnings are suppressed? Or maybe I'm
> doing something wrong, and there is a better way to get ragged-right
> table columns?
>
>
> Werner
- Re: `@raggedright` and `@multitable`,
Gavin Smith <=