[NTG-context] Still struggling with TABLE width

2010-09-30 Thread Patrick Gundlach
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

inline: linestretch.png___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Still struggling with TABLE width

2010-09-30 Thread Peter Münster
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/


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Still struggling with TABLE width

2010-09-30 Thread Hans Hagen

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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___