From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20023 Path: news.gmane.org!not-for-mail From: "luigi.scarso" Newsgroups: gmane.comp.tex.context Subject: Re: total with of TABLE ? Date: Thu, 21 Apr 2005 13:27:00 +0200 Message-ID: <42678E04.8080402@logosrl.it> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114082781 1086 80.91.229.2 (21 Apr 2005 11:26:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2005 11:26:21 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 21 13:26:19 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOZom-0006SN-Oy for gctc-ntg-context-518@m.gmane.org; Thu, 21 Apr 2005 13:26:00 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D28FB127B0; Thu, 21 Apr 2005 13:30:28 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31366-03; Thu, 21 Apr 2005 13:30:28 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8413E1279A; Thu, 21 Apr 2005 13:27:14 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC9B51279A for ; Thu, 21 Apr 2005 13:27:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31366-02 for ; Thu, 21 Apr 2005 13:27:12 +0200 (CEST) Original-Received: from ServerNotes.logosrl.it (unknown [81.208.99.91]) by ronja.ntg.nl (Postfix) with ESMTP id 05ECD12780 for ; Thu, 21 Apr 2005 13:27:12 +0200 (CEST) Original-Received: from [192.168.2.85] ([192.168.2.85]) by ServerNotes.logosrl.it (Lotus Domino Release 6.5.1) with ESMTP id 2005042113271252-707 ; Thu, 21 Apr 2005 13:27:12 +0200 User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-MIMETrack: Itemize by SMTP Server on ServerNotes/Logo(Release 6.5.1|January 21, 2004) at 21/04/2005 13.27.12, Serialize by Router on ServerNotes/Logo(Release 6.5.1|January 21, 2004) at 21/04/2005 13.27.15, Serialize complete at 21/04/2005 13.27.15 X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20023 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20023 Steffen Wolfrum wrote: > Hi, > > a quite basic question, nevertheless I couldn'T find an answer: > > How do I determine the total with of a TABLE? > > I though it should be ... > > \setupTABLE[width=\textwidth] > > \bTABLE > \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR > \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR > \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR > \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR > \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR > \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR > \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR > \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR > \eTABLE > > ... but this means that all column's INDIVIDUAL width=\textwidth ! > > But what about the TOTAL width - regardless of the individual column's > width? > With \setbox: \setbox100=\vbox{% \setupTABLE[...] \bTABLE...\eTABLE% } ht=\the\ht100 , dp=\the\dp100 , wd= \the\wd100 and you can determine the dimensions of your table. But I think you need to setup x dimension, so \setupTABLE[x][width=x\textwidth] where x = 1/number_of_columns (x=0.25 in your example, because you have 4 columns: so you have \setupTABLE[x][width=0.25\textwidth] ) luigi