From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20048 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Re: total with of TABLE ? Date: Fri, 22 Apr 2005 11:11:38 +0100 Message-ID: <4268CDDA.3020408@capdm.com> References: <20050422100003.61A93127E9@ronja.ntg.nl> 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 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114164748 16546 80.91.229.2 (22 Apr 2005 10:12:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2005 10:12:28 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 22 12:12:25 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 1DOv8q-0001fK-2a for gctc-ntg-context-518@m.gmane.org; Fri, 22 Apr 2005 12:12:08 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1A443127BD; Fri, 22 Apr 2005 12:16:45 +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 10769-02; Fri, 22 Apr 2005 12:16:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 98E11127CE; Fri, 22 Apr 2005 12:11:50 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 844FA127CE for ; Fri, 22 Apr 2005 12:11:48 +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 10454-09 for ; Fri, 22 Apr 2005 12:11:47 +0200 (CEST) Original-Received: from liszt-09.ednet.co.uk (liszt-09.ednet.co.uk [212.20.226.21]) by ronja.ntg.nl (Postfix) with ESMTP id C2C72127C6 for ; Fri, 22 Apr 2005 12:11:47 +0200 (CEST) Original-Received: from [192.168.254.41] (unknown [212.20.255.162]) by liszt-09.ednet.co.uk (Postfix) with ESMTP id 589B6225E88 for ; Fri, 22 Apr 2005 11:11:47 +0100 (BST) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <20050422100003.61A93127E9@ronja.ntg.nl> 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:20048 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20048 Luigi wrote: > \SetTableToWidth{10cm} \starttable[|c|c|c|]...\stoptable set width to > 10 cm, but if I don't care about cell I can have an overfull box. > > So the problem seem to be "Can I set the total width of a TABLE using > a macros like \setupTABLE[tablewidth=10cm] ?" > > To solve this problem, I usually set every cell width using > \setupTABLE[x][n][width=..]; > > > But with \setupTABLE[tablewidth=...] I will avoid to specify every > single cell width, and the TABLE will find the right dimensions. > > I will look into core-ntb.tex. > > luigi If you want your TABLE to find natural column widths to fit the content, use [option=stretch] on the \bTABLE command. (NB it doesn't work as an option to \setupTABLE, only on the actual \bTABLE.) Then, assuming you don't need splitting over pages, you can set your TABLE inside a vbox to define its width. (If you do need splitting, try putting the TABLE into a textbackground - with no background color set unless you want it - and set the width and/or margins of that?) Hope that helps. Duncan