From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27211 Path: news.gmane.org!not-for-mail From: nico Newsgroups: gmane.comp.tex.context Subject: Re: Table column width on spanned cells Date: Mon, 17 Apr 2006 20:32:41 +0200 Message-ID: References: <44438AE7.6050300@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145298593 6075 80.91.229.2 (17 Apr 2006 18:29:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Apr 2006 18:29:53 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 17 20:29:51 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1FVYTo-0000Ek-JF for gctc-ntg-context-518@m.gmane.org; Mon, 17 Apr 2006 20:29:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E0DB12784; Mon, 17 Apr 2006 20:29:44 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26145-05; Mon, 17 Apr 2006 20:29:38 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6689F12778; Mon, 17 Apr 2006 20:29:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AEC7012778 for ; Mon, 17 Apr 2006 20:29:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25957-05 for ; Mon, 17 Apr 2006 20:29:34 +0200 (CEST) Original-Received: from swip.net (mailfe02.tele2.fr [212.247.154.44]) by ronja.ntg.nl (Postfix) with SMTP id 04C7912772 for ; Mon, 17 Apr 2006 20:29:33 +0200 (CEST) X-T2-Posting-ID: 3brHPWvyEzVNt0QNlxQWsxGJRDYe7rueGgqwO1zxZAg= X-Cloudmark-Score: 0.000000 [] Original-Received: from [213.103.7.216] (HELO localhost) by mailfe02.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 182403866 for ntg-context@ntg.nl; Mon, 17 Apr 2006 20:29:24 +0200 Original-To: "mailing list for ConTeXt users" In-Reply-To: <44438AE7.6050300@wxs.nl> User-Agent: Opera M2/7.54 (FreeBSD, build 955) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27211 Archived-At: On Mon, 17 Apr 2006 14:32:39 +0200, Hans Hagen wrote: > nico wrote: >> Hello, >> >> In the following example using the "nc" option, the 3 middle columns >> don't >> fit the width option. It seems that the table tries to fit to the page >> width instead. >> >> \starttext >> >> \bTABLE[frame=on,width=3em] >> \bTR \bTD[nc=2] A \eTD \bTD x \eTD \bTD[nc=2] B \eTD \eTR >> \bTR \bTD X \eTD \bTD[nc=3] C \eTD \bTD x \eTD \eTR >> \bTR \bTD[nc=2] D \eTD \bTD x \eTD \bTD[nc=2] E \eTD \eTR >> \eTABLE >> >> \stoptext >> > there is probably a good reason for that (but forgot what), > > \squeezeTBLspanfalse > > will give you a different result; Yes, thanks, it works fine for me. > a possible patch is: > > \newif\ifautosqueezeTBLspan \autosqueezeTBLspantrue % NEW > [...] > > but i'm not sure if it will not break other situations, so please do > some harsh testing No need for deep testing :-) Any table without a width option fails. Example: \bTABLE[frame=on] \bTR \bTD A \eTD \bTD x \eTD \bTD B \eTD \eTR \eTABLE ! Missing number, treated as zero. f \v!fit ->f it \doifdimensionelse ...mensionelse \scratchdimen #1 pt\relax ...pan \doifdimensionelse \tbltblwidth \donefalse \donetrue \else... \secondoftwoarguments #1#2->#2 \handleTBLcell ... \donetrue \else \donetrue \fi } \ifdone \ifnum 0\number \g... ... l.22 \eTABLE What is the expected benefit of the patch in comparison with switching off the squeeze stuff, since I haven't seen yet a side effect of using \squeezeTBLspanfalse ? Regards, BG