From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14734 Path: main.gmane.org!not-for-mail From: Stefan Wachter Newsgroups: gmane.comp.tex.context Subject: Re: proportional column widths in natural tables? Date: Mon, 16 Feb 2004 13:11:23 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: References: <402D3596.6080902@boede.nl> <402FC0B0.4060900@gmx.de> <6.0.1.1.2.20040215233952.02dc4a00@localhost> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1076933670 24211 80.91.224.253 (16 Feb 2004 12:14:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Feb 2004 12:14:30 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Feb 16 13:14:22 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ashdm-0003yQ-00 for ; Mon, 16 Feb 2004 13:14:22 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 2D59A10B32; Mon, 16 Feb 2004 13:12:37 +0100 (MET) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by ref.ntg.nl (Postfix) with ESMTP id 4C21610AF2 for ; Mon, 16 Feb 2004 13:11:52 +0100 (MET) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Ashcy-0000AH-00 for ; Mon, 16 Feb 2004 13:13:32 +0100 Original-Received: from p508b16af.dip.t-dialin.net ([80.139.22.175]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon Feb 16 12:13:32 2004 Original-Received: from stefan.wachter by p508b16af.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon Feb 16 12:13:32 2004 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ref.ntg.nl Original-Lines: 52 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p508b16af.dip.t-dialin.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en In-Reply-To: <6.0.1.1.2.20040215233952.02dc4a00@localhost> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14734 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14734 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 > -------------------------------------------------------------------------