[NTG-context] Re: proportional column widths in natural tables?

2004-02-16 Thread Stefan Wachter
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
-


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: proportional column widths in natural tables?

2004-02-15 Thread Stefan Wachter
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: proportional column widths in natural tables?

2004-02-15 Thread Willi Egger
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: proportional column widths in natural tables?

2004-02-15 Thread Hans Hagen
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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context