From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90468 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Problem with MkIV and TikZ picture remembering Date: Sun, 8 Mar 2015 13:04:53 +0100 Message-ID: <50EE2591-0B03-4F96-BB9D-0353D0DCF8DA@gmail.com> References: <54F56159.4040305@web.de> <54F605A3.3080501@wxs.nl> <54FAEA2B.7090509@web.de> <54FB1091.6000008@wxs.nl> <54FB35B7.8010800@googlemail.com> <34B905CF-9CC0-497D-B6A2-9DAD468983DC@gmail.com> <54FC205F.5060807@wxs.nl> <3773CF1C-42C0-4962-9AA8-04DF9FD71A9C@gmail.com> <54FC38B8.8060604@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/mixed; boundary="===============0860337616==" X-Trace: ger.gmane.org 1425816345 1294 80.91.229.3 (8 Mar 2015 12:05:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Mar 2015 12:05:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 08 13:05:27 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YUZxW-00077T-Mm for gctc-ntg-context-518@m.gmane.org; Sun, 08 Mar 2015 13:05:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 204151041C for ; Sun, 8 Mar 2015 13:05:26 +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 FhzvQLqclz2I for ; Sun, 8 Mar 2015 13:05:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1ACBE10204 for ; Sun, 8 Mar 2015 13:05:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A13FC10201 for ; Sun, 8 Mar 2015 13:04:58 +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 kOFZMZsPMCsq for ; Sun, 8 Mar 2015 13:04:57 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id E710E101FE for ; Sun, 8 Mar 2015 13:04:57 +0100 (CET) Original-Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t28C4ud8021731 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 8 Mar 2015 13:04:57 +0100 Original-Received: by wibhm9 with SMTP id hm9so13681965wib.2 for ; Sun, 08 Mar 2015 05:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=FwddkHaxLiNn3VmyzNdpn7sBRSLzerdKpMA1UKZDosk=; b=DA4WpAnltfBxc/XKW8l0Gr3wk4vxl6Y3ZMohNUp11ZV25VNkNxwZxiJwQ0ggMDlLk4 gDeiTDV6MJXLRLqe9ISi+ub4IKqzYrz05noaVA5GSZ2Wf0S7Mix6yYwwTtLbOeZqnlW3 pljQAxl0C5KklqSF5Byxr0CxbDYRjZiRVLPypwwI3T3z+AOqyhxQ7RaMcVqbOmBJn1qb N9GmQ+NKCdfE9zlRu5K/8RmYvMNwNikL2skg2B1Ce7guuunWNGrI/gB8uZMtoXiJjx+J 6/b5aJs/wI2cZLQfDKi4KEYiBs7hs6IoKV3k6XHxuslYNxAtH4HbPU7w+eaztsqMTd3z D/Fg== X-Received: by 10.180.206.98 with SMTP id ln2mr92786379wic.94.1425816296593; Sun, 08 Mar 2015 05:04:56 -0700 (PDT) Original-Received: from keima.localdomain (x2f2d243.dyn.telefonica.de. [2.242.210.67]) by mx.google.com with ESMTPSA id dj4sm23543733wjc.13.2015.03.08.05.04.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 08 Mar 2015 05:04:55 -0700 (PDT) In-Reply-To: <54FC38B8.8060604@wxs.nl> X-Mailer: Apple Mail (2.2070.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22a; country=IE; latitude=53.3478; longitude=-6.2597; http://maps.google.com/maps?q=53.3478,-6.2597&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WO104UxJ - 6045bbe69bbc - 20150308 (trained as not-spam) Received-SPF: pass (filter5-til.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::22a as permitted sender) receiver=filter5-til.mf.surf.net; client-ip=2a00:1450:400c:c05::22a; envelope-from=; helo=mail-wi0-x22a.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:90468 Archived-At: --===============0860337616== Content-Type: multipart/alternative; boundary="Apple-Mail=_EE8570FD-A37E-4A66-95AC-7C6BC8E1925A" --Apple-Mail=_EE8570FD-A37E-4A66-95AC-7C6BC8E1925A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > Am 08.03.2015 um 12:55 schrieb Hans Hagen : >=20 > On 3/8/2015 12:26 PM, Wolfgang Schuster wrote: >>=20 >>> Am 08.03.2015 um 11:11 schrieb Hans Hagen >>> >>: >>>=20 >>> this should help: >>>=20 >>> \unexpanded\def\writeviatex#1#2% >>> {\ifx\normalwrite\relax\else >>> % the \detokenize makes sure we don't expand \noexpanded macros >>> \normalwrite#1{\detokenize{#2}}% >>> \fi} >>>=20 >>> (in future version i might replace write completely) >>=20 >> Only partially because the saved positions from \pdfsavepos are = wrong. >=20 > in what sense wrong? Content of the external file from MkIV (the entries on the first page = show 0 and the values on page 2 and 3 are always the same): 1:0:0 2:0:0 3:4661756:45255023 4:4661756:45255023 5:4661756:45255023 6:4661756:45255023 Content of the external file from MkII (different values for the first and second position on each page): 1:6526435:46204089 2:4661756:45256000 3:6526435:46204089 4:4661756:45256000 5:6526435:46204089 6:4661756:45256000 Wolfgang= --Apple-Mail=_EE8570FD-A37E-4A66-95AC-7C6BC8E1925A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Am 08.03.2015 um 12:55 schrieb Hans Hagen <pragma@wxs.nl>:

On 3/8/2015 12:26 PM, Wolfgang Schuster = wrote:

Am = 08.03.2015 um 11:11 schrieb Hans Hagen <pragma@wxs.nl
<mailto:pragma@wxs.nl>>:

this should help:

\unexpanded\def\writeviatex#1#2%
{\ifx\normalwrite\relax\else
  % the = \detokenize makes sure we don't expand \noexpanded macros
   \normalwrite#1{\detokenize{#2}}%
 \fi}

(in future version i = might replace write completely)

Only partially because the saved positions from \pdfsavepos = are wrong.

in what sense wrong?

Content= of the external file from MkIV (the entries on the first page show = 0
and the values on page 2 and 3 are always the = same):

1:0:0
2:0:0
3:4661756:45255023
4:4661756:45255023
5:4661756:45255023
6:4661756:45255023

Content of the external file from MkII = (different values for the first
and second position = on each page):

1:6526435:46204089
2:4661756:45256000
3:6526435:46204089
4:4661756:45256000
5:6526435:46204089
6:4661756:45256000

Wolfgang
= --Apple-Mail=_EE8570FD-A37E-4A66-95AC-7C6BC8E1925A-- --===============0860337616== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0860337616==--