From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41179 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Odd Behavior in pdftex/xetex Date: Sat, 24 May 2008 08:58:13 +0200 Message-ID: <20080524085813.221ebe55.schuster.wolfgang@googlemail.com> References: <200805231932.m4NJWC604707@gefjun.jpl.nasa.gov> <48372912.1090406@wxs.nl> 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 1211613162 685 80.91.229.12 (24 May 2008 07:12:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 May 2008 07:12:42 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat May 24 09:13:19 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 1Jznw4-0003Nv-1V for gctc-ntg-context-518@m.gmane.org; Sat, 24 May 2008 09:13:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC8661FB6B; Sat, 24 May 2008 09:12:06 +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 17472-05-3; Sat, 24 May 2008 09:11:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 31EA81FB7E; Sat, 24 May 2008 09:11:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B70741FB7E for ; Sat, 24 May 2008 09:11:19 +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 17472-05-2 for ; Sat, 24 May 2008 09:10:44 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by ronja.ntg.nl (Postfix) with ESMTP id 79B371FB71 for ; Sat, 24 May 2008 09:10:44 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id l26so709286fgb.8 for ; Sat, 24 May 2008 00:10:44 -0700 (PDT) Original-Received: by 10.86.4.14 with SMTP id 14mr424687fgd.44.1211613044178; Sat, 24 May 2008 00:10:44 -0700 (PDT) Original-Received: from rover ( [91.41.127.208]) by mx.google.com with ESMTPS id d6sm8160100fga.2.2008.05.24.00.10.40 (version=SSLv3 cipher=RC4-MD5); Sat, 24 May 2008 00:10:43 -0700 (PDT) In-Reply-To: <48372912.1090406@wxs.nl> X-Mailer: Sylpheed 2.5.0beta2 (GTK+ 2.10.14; i686-pc-mingw32) 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:41179 Archived-At: On Fri, 23 May 2008 22:29:06 +0200 Hans Hagen wrote: > 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 If he use \retype the table works. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________