From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18753 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Current text width? Date: Mon, 07 Mar 2005 15:28:08 +0000 Message-ID: <422C7308.5010301@capdm.com> 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 1110209391 27280 80.91.229.2 (7 Mar 2005 15:29:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2005 15:29:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 07 16:29:50 2005 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 1D8K4C-0001yY-01 for gctc-ntg-context-518@m.gmane.org; Mon, 07 Mar 2005 16:22:45 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 02854127E0; Mon, 7 Mar 2005 16:28:20 +0100 (CET) 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 13353-02; Mon, 7 Mar 2005 16:28:17 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C3FC3127B6; Mon, 7 Mar 2005 16:28:16 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7FA58127B6 for ; Mon, 7 Mar 2005 16:28:14 +0100 (CET) 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 13279-04 for ; Mon, 7 Mar 2005 16:28:13 +0100 (CET) Original-Received: from liszt-05.ednet.co.uk (liszt-05.ednet.co.uk [212.20.226.26]) by ronja.ntg.nl (Postfix) with ESMTP id ACD8A127B3 for ; Mon, 7 Mar 2005 16:28:13 +0100 (CET) Original-Received: from [192.168.254.41] (unknown [212.20.255.162]) by liszt-05.ednet.co.uk (Postfix) with ESMTP id 5825812ED71 for ; Mon, 7 Mar 2005 15:28:13 +0000 (GMT) User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en Original-To: ConTeXt List X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime 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 X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:18753 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18753 Hello all. The following code (tested at contextgarden) illustrates my current problem: -- \definetextbackground[TestBackground] [leftoffset=1em,rightoffset=1em,topoffset=8pt, bottomoffset=8pt,frame=on,location=paragraph] \starttext \starttextbackground[TestBackground] Some text first, which behaves perfectly, and then a table: \vbox{\bTABLE \setupTABLE[column][1][width=0.3\textwidth] \setupTABLE[column][2][width=0.7\textwidth] \bTR\bTD I was hoping\eTD \bTD that this table would make itself narrower according to the background offsets, like the text does. But it doesn't.\eTD\eTR \eTABLE} \stoptextbackground \stoptext -- The key is in the spec for column widths. I would like all the widths to be specified proportionally, but I need the right hook. I have tried \textwidth and \makeupwidth but neither seem to recognise the offsets introduced by the background. What I'd really like is a generalised solution, so that all tables just work no matter where they occur. So - is there a parameter which represents the current width of the layout area, taking into account itemisations, textbackgrounds and anything else? Thanks. [And thanks Hans for the earlier reference to details.pdf, which I am still trying to understand in order to allow my tables to extend into the margin. I'm working on it!] Duncan dh@capdm.com