From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63649 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Ugly bug with TikZ in recent ConTeXt MKIV Date: Thu, 18 Nov 2010 10:49:53 +0100 Message-ID: <4CE4F6C1.3060203@wxs.nl> References: <4CE4E853.8020205@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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290073814 25595 80.91.229.12 (18 Nov 2010 09:50:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2010 09:50:14 +0000 (UTC) Cc: mailing list for ConTeXt users To: Mojca Miklavec Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 18 10:50:10 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PJ186-0005QI-57 for gctc-ntg-context-518@m.gmane.org; Thu, 18 Nov 2010 10:50:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B3C9CCA85A; Thu, 18 Nov 2010 10:50:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yU3UKjVwaBbC; Thu, 18 Nov 2010 10:50:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CBC1DCA84C; Thu, 18 Nov 2010 10:50:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3DBC5CA84C for ; Thu, 18 Nov 2010 10:50:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CNtWWiUK30em for ; Thu, 18 Nov 2010 10:50:01 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 9AA9DCA82B for ; Thu, 18 Nov 2010 10:50:01 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAI9o0oI013787 for ; Thu, 18 Nov 2010 10:50:01 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 4.3g4) with ESMTP id 15032-1713362 for multiple; Thu, 18 Nov 2010 10:46:09 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 ThunderBrowse/3.3.2 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=11; city=Den Haag; latitude=52.0833; longitude=4.3000; http://maps.google.com/maps?q=52.0833,4.3000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03DwxO16C - 51f88e2ccb09 - 20101118 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:63649 Archived-At: On 18-11-2010 10:03, Mojca Miklavec wrote: > On Thu, Nov 18, 2010 at 09:48, Hans Hagen wrote: >> On 18-11-2010 12:00, Mojca Miklavec wrote: >>> >>> Dear Hans, >>> >>> The following example worked perfectly fine with the version of >>> ConTeXt MKIV I was using one hour ago (no idea which version, but >>> something less than two weeks old). It still works OK with MKII and it >>> works much worse in the real document that I'm using. >>> >>> In my document both images are completely screwed up. Here it's only >>> the second one and if I comment out the first one, the second figure >>> comes out fine, so I'm a bit clueless about what magic is going on >>> inbetween. >>> >>> Nothing in TikZ has changed (I'm still using the "frozen" version from >>> November 2009 from minimals), so it must have something to do with >>> ConTeXt MKIV. It just messes up with some boxes on the page in some >>> unpredictable way. > > Hans, > > thanks a lot for the really nice simple example. > >> I have no clue ... maybe some magic tikz variable (or shared register) that >> does not get reset? > > I have no clue either, but this has never been a problem before and it > still works perfectly in both pdfTeX and XeTeX. So something really > looks suspicious on the MKIV part. After some tracing and hard thinking Taco and I found interesting spaces showing up in the output that result from a kludge in tikz: Normally one will use \ignorespaces to catch spurious spaces but tikz invokes \nullfont assuming that its fontdimen 2 is zero. But, in context it no longer is (prelude to delayed font loading). You can put this in cont-new.mkiv as a temporary hack \let\normalnullfont\nullfont \def\nullfont {\fontdimen1\normalnullfont\zeropoint \fontdimen2\normalnullfont\zeropoint \fontdimen3\normalnullfont\zeropoint \fontdimen4\normalnullfont\zeropoint \fontdimen5\normalnullfont\zeropoint \fontdimen6\normalnullfont\zeropoint \fontdimen7\normalnullfont\zeropoint \normalnullfont} ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________