ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Stefan Wachter <stefan.wachter@gmx.de>
Subject: Re: proportional column widths in natural    tables?
Date: Mon, 16 Feb 2004 13:11:23 +0100	[thread overview]
Message-ID: <c0qc5a$ngh$1@sea.gmane.org> (raw)
In-Reply-To: <6.0.1.1.2.20040215233952.02dc4a00@localhost>

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

      reply	other threads:[~2004-02-16 12:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-13 15:51 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='c0qc5a$ngh$1@sea.gmane.org' \
    --to=stefan.wachter@gmx.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).