ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Still struggling with TABLE width
@ 2010-09-30 16:34 Patrick Gundlach
  2010-09-30 16:42 ` Peter Münster
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Gundlach @ 2010-09-30 16:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

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


[-- Attachment #2: linestretch.png --]
[-- Type: image/png, Size: 13648 bytes --]

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Still struggling with TABLE width
  2010-09-30 16:34 Still struggling with TABLE width Patrick Gundlach
@ 2010-09-30 16:42 ` Peter Münster
  2010-09-30 20:29   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Münster @ 2010-09-30 16:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Still struggling with TABLE width
  2010-09-30 16:42 ` Peter Münster
@ 2010-09-30 20:29   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2010-09-30 20:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-30 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-30 16:34 Still struggling with TABLE width Patrick Gundlach
2010-09-30 16:42 ` Peter Münster
2010-09-30 20:29   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).