From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106785 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: "Remember picture" does not work (again) Date: Tue, 7 Apr 2020 06:18:26 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7826644439713213883==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="6181"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 07 13:18:50 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 1jLmFm-0001VD-NP for gctc-ntg-context-518@m.gmane-mx.org; Tue, 07 Apr 2020 13:18:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3A4A3182F42; Tue, 7 Apr 2020 13:18:40 +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 eC-bUUKOEnhM; Tue, 7 Apr 2020 13:18:39 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3E731183105; Tue, 7 Apr 2020 13:18:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5AEC9182F42 for ; Tue, 7 Apr 2020 13:18:38 +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 mj0fGSeBfeKc for ; Tue, 7 Apr 2020 13:18:37 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.45; helo=mail-wr1-f45.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 55B2B182ACA for ; Tue, 7 Apr 2020 13:18:37 +0200 (CEST) Original-Received: by mail-wr1-f45.google.com with SMTP id 65so3457742wrl.1 for ; Tue, 07 Apr 2020 04:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sAQT0Wq3wL63oYbyCYr1NTizHotPmnaNnQE8EiCUmH0=; b=HoOrTGdQqZsU1nXJXUzYuxG81b449voiZN6rxnv28rKyACVS3lKieVHH5T15a2pnC6 NP7KkmBW8TgBVh2WG99q+ttihWNk/1iQc7u8OOBavfFwfCMHvabX/yRdnFvj7iVlOSTn r06TK+4OGki7+az6q1+gYNJBlEcSiMXetGNI5/X4bV/Zl2QfHLkhYzfTP8WqaXkX6tYt v12oe/pzfnLNCsrJR+qQHde1MGViu5FdlfEK2+dI4yreKOnQ7dCdzRJ3Si4uoYVEoeq9 oDVahYuLjpp5nLVDWqFtP3t2r+shkAz1f7y8J9I/8GkUZ2gwwcuxNC2x6e7km9OkrsO0 Af1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sAQT0Wq3wL63oYbyCYr1NTizHotPmnaNnQE8EiCUmH0=; b=Q5dcm4pOuRz0tZjBr27wFg3md2e+0ROG1DN8nsbIOEGCg73JVHPWLSDrQ9mN1m/jqR RnJFCHHpDnpJVuwQj0Z6Ek5HuMZNaKXWKTDgmKDT5qwZHLjiTlQ2QtylWWNnAMq2LvNp 5ulDM72LmSVxe24Eq4saysQR4Y3pmdY4W1AHtTJMo8038monGQUiB1Fc/6PgEXSBlh4c KMOovC+7/xRLKl64aQe6BjS0FyXLPs8a/vblvQrp3LZKDFJcr1NlZNzliOEuWwlbfnk9 yVq0Z3LRfr344HG1bDVGqRbv2H1BKTzyk3SW9EFG4EZ4sYPOQ9vzAvSPDL4bFK1lX6pw JEDg== X-Gm-Message-State: AGi0PuZqeYTf35XSQx8N/5aPD5nLnEEdLFmbGtJ2WlMEWta8ost6XvHx YG1Re9p5iqOLUMSicMc3YhglypsYAm3KoCxN+GM= X-Google-Smtp-Source: APiQypJYVxjLqKP6+u/SJtCRrc270r4Ddu0eCyaeykqTI3DTKC8Hy/+5vWzzYm5nK4ok+HEvubp/Ues1uN0JIGDBGKo= X-Received: by 2002:a5d:65c4:: with SMTP id e4mr2076229wrw.147.1586258316955; Tue, 07 Apr 2020 04:18:36 -0700 (PDT) In-Reply-To: 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:106785 Archived-At: --===============7826644439713213883== Content-Type: multipart/alternative; boundary="00000000000081124d05a2b18b82" --00000000000081124d05a2b18b82 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It does not work. I get the following error message: You can't use `the character 6' after \the 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.22 \stoptext El mar., 7 de abr. de 2020 a la(s) 02:32, Hans Hagen (j.hagen@xs4all.nl) escribi=C3=B3: > On 4/7/2020 4:07 AM, Jairo A. del Rio wrote: > > 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\de= f\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@sd= ef#1#2{\edef#1{#2}}\protect\usemodule[tikz]\starttext\starttikzpicture[reme= mber > > picture]\node(A){Node 1}; \stoptikzpictureHi world > > \starttikzpicture[remember picture]\node(B){Node 2}; > > \stoptikzpicture\starttikzpicture[overlay,remember > > picture]\draw(B)--++(0,0.5)-| (A); \stoptikzpicture\stoptext| > > > \unprotect > > \ifcase\contextlmtxmode \else > \unexpanded\def\pdflastxpos{\numexpr\clf_lastxpos\relax} > \unexpanded\def\pdflastypos{\numexpr\clf_lastypos\relax} > \fi > > % 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} > % \let\XC@sdef\edef > > \protect > > \usemodule[tikz] > > > > > 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. > > > > > > > _________________________________________________________________________= __________ > > 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://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > > _________________________________________________________________________= __________ > > > > > -- > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --00000000000081124d05a2b18b82 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It does not work. I get the following error message:

You can't= use `the character 6' after \the


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.22 \stoptext=


El mar., 7 de abr. de 2020 a la(s) 02:32, Hans Hagen (j.hagen@xs4all.nl) escribi=C3=B3:
On 4/7/2020 4:07 AM, Jairo A. del= Rio wrote:
> 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\s= tarttikzpicture[remember
> picture]\node(A){Node 1}; \stoptikzpictureHi world
> \starttikzpicture[remember picture]\node(B){Node 2};
> \stoptikzpicture\starttikzpicture[overlay,remember
> picture]\draw(B)--++(0,0.5)-| (A); \stoptikzpicture\stoptext|


\unprotect

\ifcase\contextlmtxmode \else
=C2=A0 =C2=A0 =C2=A0\unexpanded\def\pdflastxpos{\numexpr\clf_lastxpos\relax= }
=C2=A0 =C2=A0 =C2=A0\unexpanded\def\pdflastypos{\numexpr\clf_lastypos\relax= }
\fi

% This might be needed if you run PGF 3.1.3
% see https://github.com/pgf-tikz/pgf/issues/675

% \def\XC@tgt@mod=C2=A0 #1{#1}
% \let\XC@sdef\edef

\protect

\usemodule[tikz]

>
> However, the following appears:
>
> l.1 6
>
> 120806
>
> \lastxpos ->\clf_lastxpos
>
> <write> \noexpand \pgfsyspdfmark {pgfid1}{\the \lastxpos
>
> }{\the \lastypos }
>
> <inserted text>
>
> }\endwrite
>
> <argument> \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.
>
>
> ______________________________________________________________________= _____________
> 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/listin= fo/ntg-context
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
> archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________
>


--

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
--00000000000081124d05a2b18b82-- --===============7826644439713213883== 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== --===============7826644439713213883==--