From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41175 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Odd Behavior in pdftex/xetex Date: Fri, 23 May 2008 22:29:06 +0200 Message-ID: <48372912.1090406@wxs.nl> References: <200805231932.m4NJWC604707@gefjun.jpl.nasa.gov> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211574646 16759 80.91.229.12 (23 May 2008 20:30:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 20:30:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 23 22:31:23 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1Jzdux-0004Hi-Uk for gctc-ntg-context-518@m.gmane.org; Fri, 23 May 2008 22:31:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 140EB1FBAA; Fri, 23 May 2008 22:30:25 +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 08483-03-3; Fri, 23 May 2008 22:29:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 937EA1FB71; Fri, 23 May 2008 22:29:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8AAE71FB60 for ; Fri, 23 May 2008 22:29:41 +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 08483-03-2 for ; Fri, 23 May 2008 22:29:07 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id C74F81FB8F for ; Fri, 23 May 2008 22:29:07 +0200 (CEST) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 8139-1840426 for ; Fri, 23 May 2008 22:29:07 +0200 User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <200805231932.m4NJWC604707@gefjun.jpl.nasa.gov> X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:41175 Archived-At: Michael.Urban@jpl.nasa.gov wrote: > The following specimen was run on live.contextgarden.net with each of > the three typesetters: > > \setupcolors[state=start] > \starttext > \input knuth > > \bTABLE > \bTR [align=middle]\bTH Range\eTH{}\bTH Value\eTH{}\eTR > \bTR \bTD \type{<} 12\eTD{}\bTD 3\eTD{}\eTR > \bTR \bTD 12--16\eTD{}\bTD 2\eTD{}\eTR > \bTR \bTD \type{>}16\eTD{}\bTD 1\eTD{}\eTR > \eTABLE > > \input knuth > \stoptext > > > In the case of pdfTeX and XeTeX, the table is given a width equal > to the textwidth; in the caes of LuaTeX, it is typeset correctly > with natural widths. > > When \setupcolors is removed, both pdfTeX and XeTeX also produce > the correct result. > > This sounds like a bug to me (and took me forever to isolate > \setupcolors - of all things! - as the culprit). actually it's the \type (combined with colors) \dontleavehmode \type {xx} works ok probably some pdfliteral is playing havoc here so that the width analyer cannot function well (a limitation of tex is that there's only a small set subset of \un* and \last* node operations); if you see messages like this !!forced exit from shapebox 9!! that is indeed the case. hoewver, in mkiv i use different trickery so there we don't have this problem (we also use a different color mechanism so that helps too) it's not so much a bug in mkii as well as a side effect/limitation okay, we could add \dontleavehmode to \type but i'm not sure if that will not break other things; also, bTABLE is kind of tricky because it needs to be clever with regards to text and non text and such Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________