Still struggling with TABLE width
Hi, as the subject says: I am still confused about widths of TABLE tables. \bTABLE % [option=stretch] \bTR \bTD A \eTD \bTD A \eTD \eTR \bTR \bTD[nc=2] %\hbox{A very very long text in one line, perhaps more} A very very long text in one line, perhaps more \eTD \eTR \eTABLE what I'd like to get is a table that is as wide as the text in the second row (A very very long text in one line, perhaps more) or at most the line width and the other two cells (the first line) stretched to mach that width (see image). I am pretty sure that this is possible, but how?!? Patrick
On Thu, Sep 30 2010, Patrick Gundlach wrote:
as the subject says: I am still confused about widths of TABLE tables.
\bTD[nc=2] %\hbox{A very very long text in one line, perhaps more} A very very long text in one line, perhaps more \eTD
It's the same issue as with the cow. Perhaps a bug-report in the tracker would help... A workaround could be, to measure first the width of the content (\setbox... or similar) and then adjust the width=... options for the table cells. Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
On 30-9-2010 6:42, Peter Münster wrote:
On Thu, Sep 30 2010, Patrick Gundlach wrote:
as the subject says: I am still confused about widths of TABLE tables.
\bTD[nc=2] %\hbox{A very very long text in one line, perhaps more} A very very long text in one line, perhaps more \eTD
It's the same issue as with the cow. Perhaps a bug-report in the tracker would help...
A workaround could be, to measure first the width of the content (\setbox... or similar) and then adjust the width=... options for the table cells.
there is a first pass measuring the natural width and with the whole table is too wide to fit hsize, the available width is equally distributed, unless a width is forced ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Patrick Gundlach
-
Peter Münster