ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* proportional column widths in natural tables?
@ 2004-02-13 15:51 Stefan Wachter
  2004-02-13 19:15 ` Willi Egger
  2004-02-13 20:37 ` Willi Egger
  0 siblings, 2 replies; 7+ messages in thread
From: Stefan Wachter @ 2004-02-13 15:51 UTC (permalink / raw)


Hi all!

Is there a possibility to specify proportional column widths when using 
natural tables?

E.g. If i want to set column 1 and 2 to have 2/7 and column 3 3/7 of the 
available broadth.

\setupTABLE[column][1][width=2*]
\setupTABLE[column][2][width=2*]
\setupTABLE[column][3][width=3*]

Thanks for your attention,
--Stefan

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

* Re: proportional column widths in natural tables?
  2004-02-13 15:51 proportional column widths in natural tables? Stefan Wachter
@ 2004-02-13 19:15 ` Willi Egger
  2004-02-13 20:37 ` Willi Egger
  1 sibling, 0 replies; 7+ messages in thread
From: Willi Egger @ 2004-02-13 19:15 UTC (permalink / raw)


Hi Stefan,

It is probably not quite logic, but replacing the "bottom" option with 
"low" solves the problem

Kind regards
Willi

Stefan Wachter wrote:

> Hi all!
> 
> Is there a possibility to specify proportional column widths when using 
> natural tables?
> 
> E.g. If i want to set column 1 and 2 to have 2/7 and column 3 3/7 of the 
> available broadth.
> 
> \setupTABLE[column][1][width=2*]
> \setupTABLE[column][2][width=2*]
> \setupTABLE[column][3][width=3*]
> 
> Thanks for your attention,
> --Stefan
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: proportional column widths in natural tables?
  2004-02-13 15:51 proportional column widths in natural tables? Stefan Wachter
  2004-02-13 19:15 ` Willi Egger
@ 2004-02-13 20:37 ` Willi Egger
  2004-02-15 18:55   ` Stefan Wachter
  1 sibling, 1 reply; 7+ messages in thread
From: Willi Egger @ 2004-02-13 20:37 UTC (permalink / raw)


Hi Stefan

sorry for sending an answer to your previous mail as reply to this one....

You can determin columnwidths by saying "width=.3\textwidth" or 
"width=.3\makeupwidth" or even though less ConTeXty "width=.3\hsize"

Wheter to use \textwidth or \makeupwidth depends on the context where 
your table is placed.

Kind regards
Willi

Stefan Wachter wrote:

> Hi all!
> 
> Is there a possibility to specify proportional column widths when using 
> natural tables?
> 
> E.g. If i want to set column 1 and 2 to have 2/7 and column 3 3/7 of the 
> available broadth.
> 
> \setupTABLE[column][1][width=2*]
> \setupTABLE[column][2][width=2*]
> \setupTABLE[column][3][width=3*]
> 
> Thanks for your attention,
> --Stefan
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: proportional column widths in natural tables?
  2004-02-13 20:37 ` Willi Egger
@ 2004-02-15 18:55   ` Stefan Wachter
  2004-02-15 19:17     ` Willi Egger
  2004-02-15 22:40     ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Stefan Wachter @ 2004-02-15 18:55 UTC (permalink / raw)


Hi Willi,

thanks for your reply. Can you please tell me, what the makeupwidth is?

It seems that I have to do some calculations for the widths by myself: I 
have a CALS table model where the widths are specified by proportional 
weights. -> I have to sum the weigths of all columns and divide each of 
the weights by this sum in order to get the necessary stretch factors 
for each column.

I hoped the ConTeXt has already a mechanism for this kind of specifiying 
the widths.

--Stefan



Willi Egger wrote:
> Hi Stefan
> 
> sorry for sending an answer to your previous mail as reply to this one....
> 
> You can determin columnwidths by saying "width=.3\textwidth" or 
> "width=.3\makeupwidth" or even though less ConTeXty "width=.3\hsize"
> 
> Wheter to use \textwidth or \makeupwidth depends on the context where 
> your table is placed.
> 
> Kind regards
> Willi
> 
> Stefan Wachter wrote:
> 
>> Hi all!
>>
>> Is there a possibility to specify proportional column widths when 
>> using natural tables?
>>
>> E.g. If i want to set column 1 and 2 to have 2/7 and column 3 3/7 of 
>> the available broadth.
>>
>> \setupTABLE[column][1][width=2*]
>> \setupTABLE[column][2][width=2*]
>> \setupTABLE[column][3][width=3*]
>>
>> Thanks for your attention,
>> --Stefan
>>
>>
>> _______________________________________________
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Re: proportional column widths in natural tables?
  2004-02-15 18:55   ` Stefan Wachter
@ 2004-02-15 19:17     ` Willi Egger
  2004-02-15 22:40     ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: Willi Egger @ 2004-02-15 19:17 UTC (permalink / raw)


Hi Stefan,

 From the english manual...p24-25

Basically textwidth is the width available at the moment i.e. when in 
any other sitation than one column. Makeupwidth is the total width of 
the typesetting area.

Concerning you CALS table model, I assume indeed that you will have to 
calculate the individual widths...

Kind reagards
Willi

Stefan Wachter wrote:

> Hi Willi,
> 
> thanks for your reply. Can you please tell me, what the makeupwidth is?
> 
> It seems that I have to do some calculations for the widths by myself: I 
> have a CALS table model where the widths are specified by proportional 
> weights. -> I have to sum the weigths of all columns and divide each of 
> the weights by this sum in order to get the necessary stretch factors 
> for each column.
> 
> I hoped the ConTeXt has already a mechanism for this kind of specifiying 
> the widths.
> 
> --Stefan
> 
> 
> 
> Willi Egger wrote:
> 
>> Hi Stefan
>>
>> sorry for sending an answer to your previous mail as reply to this 
>> one....
>>
>> You can determin columnwidths by saying "width=.3\textwidth" or 
>> "width=.3\makeupwidth" or even though less ConTeXty "width=.3\hsize"
>>
>> Wheter to use \textwidth or \makeupwidth depends on the context where 
>> your table is placed.
>>
>> Kind regards
>> Willi
>>
>> Stefan Wachter wrote:
>>
>>> Hi all!
>>>
>>> Is there a possibility to specify proportional column widths when 
>>> using natural tables?
>>>
>>> E.g. If i want to set column 1 and 2 to have 2/7 and column 3 3/7 of 
>>> the available broadth.
>>>
>>> \setupTABLE[column][1][width=2*]
>>> \setupTABLE[column][2][width=2*]
>>> \setupTABLE[column][3][width=3*]
>>>
>>> Thanks for your attention,
>>> --Stefan
>>>
>>>
>>> _______________________________________________
>>> ntg-context mailing list
>>> ntg-context@ntg.nl
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Re: proportional column widths in natural tables?
  2004-02-15 18:55   ` Stefan Wachter
  2004-02-15 19:17     ` Willi Egger
@ 2004-02-15 22:40     ` Hans Hagen
  2004-02-16 12:11       ` Stefan Wachter
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2004-02-15 22:40 UTC (permalink / raw)


At 19:55 15/02/2004, you wrote:
>Hi Willi,
>
>thanks for your reply. Can you please tell me, what the makeupwidth is?
>
>It seems that I have to do some calculations for the widths by myself: I 
>have a CALS table model where the widths are specified by proportional 
>weights. -> I have to sum the weigths of all columns and divide each of 
>the weights by this sum in order to get the necessary stretch factors for 
>each column.
>
>I hoped the ConTeXt has already a mechanism for this kind of specifiying 
>the widths.

\setupTABLE[option=stretch]


-------------------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE/POD/CTS
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: proportional column widths in natural    tables?
  2004-02-15 22:40     ` Hans Hagen
@ 2004-02-16 12:11       ` Stefan Wachter
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Wachter @ 2004-02-16 12:11 UTC (permalink / raw)


Hi Hans,

thanks for the tip regarding the stretch option. I tried the option and 
had the impression that the table is streched if the sum of the widths 
of the columns is less then the available width.

Yet, if the sum of the widths exceeds the available width then the table 
is NOT shrunk! I tried other values for the option key (e.g. 'fit' or 
'{stretch, shrink}') but the table remained too broad.

Is there a possibility to make the table width fit the available width 
in any case? My temporary solution now converts the CALS proportional 
width weights into absolute widths with small units (e.g. 'pt'), hoping 
that the sum of these widths does not exceed the available width.

\setupTABLE[option=stretch]
\setupTABLE[column][1][width=10pt]
\setupTABLE[column][2][width=20pt]
\setupTABLE[column][3][width=30pt]

Best regards,
--Stefan

Hans Hagen wrote:
> At 19:55 15/02/2004, you wrote:
> 
>> Hi Willi,
>>
>> thanks for your reply. Can you please tell me, what the makeupwidth is?
>>
>> It seems that I have to do some calculations for the widths by myself: 
>> I have a CALS table model where the widths are specified by 
>> proportional weights. -> I have to sum the weigths of all columns and 
>> divide each of the weights by this sum in order to get the necessary 
>> stretch factors for each column.
>>
>> I hoped the ConTeXt has already a mechanism for this kind of 
>> specifiying the widths.
> 
> 
> \setupTABLE[option=stretch]
> 
> 
> -------------------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE/POD/CTS
>                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
> -------------------------------------------------------------------------
>                        information: http://www.pragma-ade.com/roadmap.pdf
>                     documentation: http://www.pragma-ade.com/showcase.pdf
> -------------------------------------------------------------------------

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

end of thread, other threads:[~2004-02-16 12:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-13 15:51 proportional column widths in natural tables? Stefan Wachter
2004-02-13 19:15 ` Willi Egger
2004-02-13 20:37 ` Willi Egger
2004-02-15 18:55   ` Stefan Wachter
2004-02-15 19:17     ` Willi Egger
2004-02-15 22:40     ` Hans Hagen
2004-02-16 12:11       ` Stefan Wachter

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).