From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107973 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: Bad interaction between \setupinteraction and \defineenumeration Date: Mon, 6 Jul 2020 21:10:35 -0500 Message-ID: References: <28D43F84-8E8A-4B6A-93DB-20DAEC1C3DAC@gmail.com> <60675c79-acc1-036a-4951-fc31ffa5a701@gmx.es> <0ba68dbf-ff5b-986f-392f-63b60394ae3c@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7831823766011923557==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25717"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 07 04:11:10 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 1jsd4f-0006b6-Pe for gctc-ntg-context-518@m.gmane-mx.org; Tue, 07 Jul 2020 04:11:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 979EA1853F5; Tue, 7 Jul 2020 04:10:52 +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 35ueJkJIQ60r; Tue, 7 Jul 2020 04:10:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A7E9E1854AC; Tue, 7 Jul 2020 04:10:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 436411853F5 for ; Tue, 7 Jul 2020 04:10:50 +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 nbpmMDRW1gDZ for ; Tue, 7 Jul 2020 04:10:48 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.43; helo=mail-wr1-f43.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 4AB21184EE1 for ; Tue, 7 Jul 2020 04:10:48 +0200 (CEST) Original-Received: by mail-wr1-f43.google.com with SMTP id o11so43490784wrv.9 for ; Mon, 06 Jul 2020 19:10:48 -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; bh=d8kElS8lqEtxEOXo3YtL0+jBFvumHFj0AVKiNZ4CUwE=; b=qJgLl6FaRAu0Ine+U7ZTkick7ZKBZFFVJyOH+KrqVa1ahUD4voZKOxW3v5FHnBRXgA C74FSxIJ6i1I5MO2YKMkvfPjZtmkyAd2rfsiM0T4s63fqWGnvnIdlEUX7AglvkEa6jfg 5bYKvU8EQsC82l06On9e4Gg2Jfu8Af7mgs3ugpc5LFTnpDHDGWHkrc0lLqm+/UIZvWN4 BlwF4GFBeCM/8NBXzHesnWZQpvLlXVi2o4JZ8lIlmKozr78mTVbKhKvQTWSTJ/hqBFRj t4SYVqMiZTkf4IPJELqsZVYgJyFMV15N+SCoZYBnwi2VBm4MAjvthLTwuDlZiAAC8a20 QIkw== 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; bh=d8kElS8lqEtxEOXo3YtL0+jBFvumHFj0AVKiNZ4CUwE=; b=DEgvdJxRSDiw/+VmRI7WESbMvXzwWIpeRLg+UQTZl1U8fXFclIHktKUivJhgwVlmmY 2ASTQCUqJD1yCPNpf8kIJDra1TZi7XgphpJhoMbGmJibjG2MYyVEw80mTG5yVqHsOkJz dhxTtmkqSmxiHbAStA4+S9tuRnzRgzUDrPRBKbmdm/iOoTc3if4HXTxs8mBWDiXqeLVe T1YUWY/eL1pzOvQucWhu2tuE/kkwfXTLTnVl43OpgPKC6E1Mhbe6TcTQtCl/3F0yvoCw bh5Gs1CnYOwq6XPBEq78+YOSjJmwQ3+hOWuMuncQRCNUisSvzkL9jOe17dk0WgdlB61c 7jzw== X-Gm-Message-State: AOAM531wpQ6YoFNeJaVUTUHDUZ9qZy56qTkV4iq7lDStyEjH4XNU5J78 gqHsXt8LXXLPNSX4uznuCyARzcMk1neMDY8vrKwHOP4M X-Google-Smtp-Source: ABdhPJytXyYbBfzV4OzpZ5gi6FlFyGZMcJTRvdbcdCCd6yZwPIGJdC3dOTnwB3pC3oRXgP4mqpGnjyPX0kETeIhbWNk= X-Received: by 2002:adf:f885:: with SMTP id u5mr50490650wrp.402.1594087847596; Mon, 06 Jul 2020 19:10:47 -0700 (PDT) In-Reply-To: <0ba68dbf-ff5b-986f-392f-63b60394ae3c@gmail.com> 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:107973 Archived-At: --===============7831823766011923557== Content-Type: multipart/alternative; boundary="000000000000e596fd05a9d07f77" --000000000000e596fd05a9d07f77 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Now it works! Thank you so much, Wolfgang! Jairo :) El lun., 6 de jul. de 2020 a la(s) 13:48, Wolfgang Schuster ( wolfgang.schuster.lists@gmail.com) escribi=C3=B3: > Pablo Rodriguez schrieb am 06.07.2020 um 20:04: > > On 7/6/20 3:58 PM, Jairo A. del Rio wrote: > >> So, cannot I use focus=3Dstandard and cross-references together? Hmm. = I > >> think it should be fixed... But maybe it's an intended feature. Thanks= , > >> Otared. > > > > Hi Jairo, > > > > "focus=3Dstandard" works fine with footnotes. > > > > \setupinteraction[state=3Dstart,focus=3Dstandard,color=3D,contrast= color=3D] > > \defineenumeration[proposition][referenceprefix=3Dprop] > > \starttext > > \startproposition[1] > > \input ward\footnote{Only a footnote} > > \stopproposition > > \in[prop:1] > > \stoptext > > > > Your sample doesn=E2=80=99t work, because of the reference prefix. Righ= t now, > > the /Names reads in the PDF code: > > > > /Names [ (1) 5 0 R ] > > > > It seems that "referenceprefix" is forgotten there, which should read > > with the sample code from above: > > > > /Names [ (prop:1) 5 0 R ] > > > > Hans, could you check this? (I=E2=80=99m afraid it doesn=E2=80=99t work= with current > > latest [2020.07.06 19:30])? > > > I'm not Hans but this fixed the problem for me (strc-con.mkiv): > > \def\strc_constructions_register_yes[#1][#2]% #1=3Doptional user data > #2=3Dinterfaced-settings > {\begingroup % similar to structure so > we might generalize this > ... > \clf_setinternalreference > - prefix {\referenceprefix}% > + prefix {\currentconstructionreferenceprefix}% > reference {\currentconstructionreference}% > internal \locationcount > view {\interactionparameter\c!focus}% > \relax > ... > \fi} > > Wolfgang > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --000000000000e596fd05a9d07f77 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Now it works! Thank you so much, Wolfgang!

Jairo :)

El lun., 6 de jul. de 2020 a la(s) 13:48, Wolfgang Schuster= (wolfgang.schuster.li= sts@gmail.com) escribi=C3=B3:
Pablo Rodriguez schrieb am 06.07.2020 um 20:04:
> On 7/6/20 3:58 PM, Jairo A. del Rio wrote:
>> So, cannot I use focus=3Dstandard and cross-references together? H= mm. I
>> think it should be fixed... But maybe it's an intended feature= . Thanks,
>> Otared.
>
> Hi Jairo,
>
> "focus=3Dstandard" works fine with footnotes.
>
>=C2=A0 =C2=A0 =C2=A0 \setupinteraction[state=3Dstart,focus=3Dstandard,c= olor=3D,contrastcolor=3D]
>=C2=A0 =C2=A0 =C2=A0 \defineenumeration[proposition][referenceprefix=3D= prop]
>=C2=A0 =C2=A0 =C2=A0 \starttext
>=C2=A0 =C2=A0 =C2=A0 \startproposition[1]
>=C2=A0 =C2=A0 =C2=A0 \input ward\footnote{Only a footnote}
>=C2=A0 =C2=A0 =C2=A0 \stopproposition
>=C2=A0 =C2=A0 =C2=A0 \in[prop:1]
>=C2=A0 =C2=A0 =C2=A0 \stoptext
>
> Your sample doesn=E2=80=99t work, because of the reference prefix. Rig= ht now,
> the /Names reads in the PDF code:
>
>=C2=A0 =C2=A0 =C2=A0 /Names [ (1) 5 0 R ]
>
> It seems that "referenceprefix" is forgotten there, which sh= ould read
> with the sample code from above:
>
>=C2=A0 =C2=A0 =C2=A0 /Names [ (prop:1) 5 0 R ]
>
> Hans, could you check this? (I=E2=80=99m afraid it doesn=E2=80=99t wor= k with current
> latest [2020.07.06 19:30])?


I'm not Hans but this fixed the problem for me (strc-con.mkiv):

\def\strc_constructions_register_yes[#1][#2]% #1=3Doptional user data
#2=3Dinterfaced-settings
=C2=A0 =C2=A0{\begingroup=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 % similar to struct= ure so
we might generalize this
=C2=A0 =C2=A0 =C2=A0 ...
=C2=A0 =C2=A0 =C2=A0 \clf_setinternalreference
-=C2=A0 =C2=A0 =C2=A0 prefix=C2=A0 =C2=A0 {\referenceprefix}%
+=C2=A0 =C2=A0 =C2=A0 prefix=C2=A0 =C2=A0 {\currentconstructionreferencepre= fix}%
=C2=A0 =C2=A0 =C2=A0 =C2=A0 reference {\currentconstructionreference}%
=C2=A0 =C2=A0 =C2=A0 =C2=A0 internal=C2=A0 \locationcount
=C2=A0 =C2=A0 =C2=A0 =C2=A0 view=C2=A0 =C2=A0 =C2=A0 {\interactionparameter= \c!focus}%
=C2=A0 =C2=A0 =C2=A0 \relax
=C2=A0 =C2=A0 =C2=A0 ...
=C2=A0 =C2=A0 \fi}

Wolfgang
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000e596fd05a9d07f77-- --===============7831823766011923557== 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== --===============7831823766011923557==--