From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106913 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: Fri, 17 Apr 2020 19:12:52 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0297124050955665445==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="84962"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 18 02:13:40 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 1jPb76-000M0v-1q for gctc-ntg-context-518@m.gmane-mx.org; Sat, 18 Apr 2020 02:13:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2918E183211; Sat, 18 Apr 2020 02:13:09 +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 pnrUC9tC_BXZ; Sat, 18 Apr 2020 02:13:07 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 279AB183193; Sat, 18 Apr 2020 02:13:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 58B24183193 for ; Sat, 18 Apr 2020 02:13:05 +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 FzP2lmItW933 for ; Sat, 18 Apr 2020 02:13:04 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.54; helo=mail-wr1-f54.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 114A1182B43 for ; Sat, 18 Apr 2020 02:13:03 +0200 (CEST) Original-Received: by mail-wr1-f54.google.com with SMTP id x18so4992393wrq.2 for ; Fri, 17 Apr 2020 17:13:03 -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=s+63hv/GQpjYR21wwnVLKY/lA+nZn4BoWjuSXKP3sZg=; b=cojpEXcyM3ec7Iqqcv3vI5SaRDgXwvpV9lwRpgtCMFQ6a6hdWDT53MqCpPLgzAAAfZ 5CIq7Ee7enwzlFGSPMMFAX2uACMyla4Rd0TUgc/4UXwlde5czErU6RNXUwgdsdUgwuWd ovvvYeR1Rg0CCTF/SB3LXcK/Mw4O1vzG99z9YoyspuiNtLVBgssYa5qqPkvSviLzYCEb JYY7otnBGv6HY+Jz1ojQ6rIvCXl+gngiBP+V+EdUOFUuTClrenu7oL2dP6b6fVkASjp2 s/NUnDQr+4XKr4jFdP9BhxwObhCilv+dTIGVm/+n2Yto1CJriKgV8VazSsaJ+YYljsBv KsAQ== 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=s+63hv/GQpjYR21wwnVLKY/lA+nZn4BoWjuSXKP3sZg=; b=PeupowocxyuEqepELIk+YdeQ+ebsL/ELgJPIA5sa6a7QrDuwtR3m8wNrJ3A5GtRNAj gy5OsegkzZNSAZozqIaxSo8gZfhxYXuqN8hGHnGkZbM6wNoIgqHQLuOigDo1GfwpWRrL ID5cNT9jrQojFdtoAmspDa6elDTqZK/8P5B5IIkFt3RERH7xvBqERxgmRq471yHVacri PqbRPQsCq/+dltMXXiD/gM93mcejhnYH07mFLDiobZGJxZSqfILfIQKwljNP1VgDhRVP nS/jZl/N86j9Il1rb+5HwvKJvyVsJvbk7i2yDcp/8Vnf/P+8Apz9hHrOyk/NHTo4Lrly S4UQ== X-Gm-Message-State: AGi0PuZUcAuB5zPTsr2FRUJYqnpmkuvP7ehHbFNYu5yyhtfLMJHBZRXM D925C98ptdSwjZmJVKTldB//V4f2qqXpqOYl5To= X-Google-Smtp-Source: APiQypJrxFpVOYF/7snf1ErIMdiU2lokOf4UuzhO8HTS8exe2LB2W1WqX1x/CCE1PJURkcoC065/iApveRKcHipC4TU= X-Received: by 2002:a5d:65c4:: with SMTP id e4mr5953462wrw.147.1587168783660; Fri, 17 Apr 2020 17:13:03 -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:106913 Archived-At: --===============0297124050955665445== Content-Type: multipart/alternative; boundary="0000000000008c788105a3858776" --0000000000008c788105a3858776 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry, I tested again and it worked. Thank you very much. El mar., 7 de abr. de 2020 a la(s) 06:18, Jairo A. del Rio ( jairoadelrio6@gmail.com) escribi=C3=B3: > 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\d= ef\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@s= def#1#2{\edef#1{#2}}\protect\usemodule[tikz]\starttext\starttikzpicture[rem= ember >> > 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 >> ----------------------------------------------------------------- >> > --0000000000008c788105a3858776 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, I tested again and it worked. Thank you very much.<= br>

El mar., 7 de abr. de 2020 a la(s) 06:18, Jairo A. del Rio (jairoadelrio6@gmail.com) escribi=C3=B3:<= br>
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:0= 7 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
-----------------------------------------------------------------
--0000000000008c788105a3858776-- --===============0297124050955665445== 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== --===============0297124050955665445==--