From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106781 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: "Remember picture" does not work (again) Date: Mon, 6 Apr 2020 21:07:52 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2729503700657597352==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="42195"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 07 04:08:36 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLdfH-000Atd-AC for gctc-ntg-context-518@m.gmane-mx.org; Tue, 07 Apr 2020 04:08:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 78366182F45; Tue, 7 Apr 2020 04:08:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ayFbOFujM6Lu; Tue, 7 Apr 2020 04:08:05 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8D7BD183088; Tue, 7 Apr 2020 04:08:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7DCB118300F for ; Tue, 7 Apr 2020 04:08:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uoMHom2fng0G for ; Tue, 7 Apr 2020 04:08:03 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.50; helo=mail-wr1-f50.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 93758182F45 for ; Tue, 7 Apr 2020 04:08:03 +0200 (CEST) Original-Received: by mail-wr1-f50.google.com with SMTP id w10so2046483wrm.4 for ; Mon, 06 Apr 2020 19:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Ej+yEXIYsWAV6zrStS2rHkotdNXo9nTM2gLpTFyzk34=; b=dir/bH1ZQ1rhThYwHCdbAfo/8IS/GX3gudL+mswrL2gVpUhYv8Tvu+OSiiWwF3e4DK k+fVtWRlCmbBuxseNbJOuMLcTAMcr6DADFkkce+6QCrGR7zYOW6DvUbyUELfrReT4UvF pQGdgzN6bNAkETG4Sx7Es7CH+9h6FC3FvktZyhcui/lHvJSDwSD1qtN/5TRQCGaJI11q 0FfSLDVCJuMfPlLDbno/wKdS93Ky7IhwLB3VZp4UR6E7Gyj+LXsVxZr3v9mQ6ICDyNlN kpJOd/UTW7oQLQjEEq6WF65Konc+wa8fHYmTjqRp9TCh/sqbFIsQLWM6u0qzJvvvlbXf MHAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Ej+yEXIYsWAV6zrStS2rHkotdNXo9nTM2gLpTFyzk34=; b=lw1EGfMQMLbSavnvijurnXuRxEn5w1fy0siXOGoJi2D+O/vN2M1umdnqWzjCIL5YXb j6t7LtkFhhhhAmXk5aY5nW6RmAc/TAM11jAvE0OnhHmVgWpqvk7qZgVTbr81Dlvnprs+ RzToWSHKuR8EKJvbzOHDHE5QeYBCCfBktPWd62Ti5oSgmEGIdCZzm/4/A1BEhVUOO42t Y46lF/NcXWCDTaNkRI10x7KO33A0K6kJVnPzEgEij8zFGB7WJ6+4qCTHqUdXGa3yhfqF D1IsKkokWJgbm1biQuThiUAQQYirzCSVIZCbG5ZGsqB3ngR2UfJaeLspcSOzXHmgKtvK 7L6g== X-Gm-Message-State: AGi0PuZ6sdB4PfyvXxmlpYVoSXcNGFu3Z8LHCsC/QdIi7Tz4vBIVVyd8 mogRN2+/8ibsFDJcOj7NttBYpepj7kKu7hCFi4xtvJLymL4= X-Google-Smtp-Source: APiQypJAeJtC7hGcvKcTeyBOMurl8w3ugPoKYVyawUJ2EcwqyX7yaP3pizFd8lzBNAUwXHJciKpH27e3B8JIRtJjVAw= X-Received: by 2002:a5d:65c4:: with SMTP id e4mr2065123wrw.147.1586225282923; Mon, 06 Apr 2020 19:08:02 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:106781 Archived-At: --===============2729503700657597352== Content-Type: multipart/alternative; boundary="00000000000085c16e05a2a9da95" --00000000000085c16e05a2a9da95 Content-Type: text/plain; charset="UTF-8" I've tried using the fix in https://tex.stackexchange.com/a/492197/193767 in order to make TikX's remember picture feature usable, Code below, just in case: \unprotect% This fixes the present bug\unexpanded\def\pdflastxpos{\numexpr\clf_lastxpos\relax}\unexpanded\def\pdflastypos{\numexpr\clf_lastypos\relax}% This might be needed if you run PGF 3.1.3% see https://github.com/pgf-tikz/pgf/issues/675\def\XC@tgt@mod#1{#1}\def\XC@sdef#1#2{\edef#1{#2}}\protect\usemodule[tikz]\starttext\starttikzpicture[remember picture] \node (A) {Node 1};\stoptikzpicture Hi world\starttikzpicture[remember picture] \node (B) {Node 2};\stoptikzpicture\starttikzpicture[overlay,remember picture] \draw (B) --++(0,0.5) -| (A);\stoptikzpicture\stoptext However, the following appears: l.1 6 120806 \lastxpos ->\clf_lastxpos \noexpand \pgfsyspdfmark {pgfid1}{\the \lastxpos }{\the \lastypos } }\endwrite \shipoutscratchbox \page_shipout_box #1->\clf_shipoutpage #1 \relax \setbox #1\emptybox \global ... ... l.20 \stoptext I use LuaTeX 1.10 7127 + ConTeXt MkIV 2019.03.21 21:39 (TeX Live version), in case this helps. Is another fix necessary? A Metapost alternative would be fine, too. --00000000000085c16e05a2a9da95 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've tried using the fix in https://tex.stackexchange.com/a/492197/1937= 67 in order to make TikX's remember picture feature usable, Code be= low, just in case:
\unprotect
% This fixes the present bug
\unexpanded\def\pdflastxpos{\numexpr\clf_lastxpos\relax}
\unexpanded\def\pdflastypos{\numexpr\clf_lastypos\relax}
% This might be needed if you run PGF 3.1.=
3
% see https://github.com/pgf-tikz/pgf/issues/675
\def\XC@tgt@mod#1{=
#1}
\def\XC@sdef#1#2{\=
edef#1{#2}}=

\protect
\usemodule[tikz]
\starttext
\starttikzpicture[remember picture]
     \node (A) {Node 1};
\stoptikzpicture
Hi world
\starttikzpicture[remember picture]
    \node=
 (B) {Node 2};
\stoptikzpicture
\starttikzpicture[overlay,remember picture]
    \draw=
 (B) --++(0,0.5) -| (A);
\stoptikzpicture
\stoptext

Howe= ver, the following appears:

l.1 6

120806

\lastxpos ->= ;\clf_lastxpos

=

<write> = \noexpand \pgfsyspdfmark {pgfid1}{\the \lastxpos

= }{\the \lastypos }

<inserted t= ext>

}\endwrite

<argument&g= t; \shipoutscratchbox

=

\page_shipout_= box #1->\clf_shipoutpage #1

= \relax \setbox #1\emptybox \global ...

...

l.20 \stoptext=


I use LuaTeX 1.1= 0 7127 + ConTeXt MkIV 2019.03.21 21:39 (TeX Live version), in case this hel= ps. Is another fix necessary? A Metapost alternative would be fine, too.
--00000000000085c16e05a2a9da95-- --===============2729503700657597352== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2729503700657597352==--