From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110678 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: Arbitrary equation tags... again Date: Tue, 23 Feb 2021 14:30:35 -0500 Message-ID: References: <5cca29a4-adf7-880b-e252-cbd56e652526@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8815799215300763991==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1749"; 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 Feb 23 20:31:11 2021 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 1lEdOo-0000Me-VJ for gctc-ntg-context-518@m.gmane-mx.org; Tue, 23 Feb 2021 20:31:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DFBAB28021A; Tue, 23 Feb 2021 20:30:50 +0100 (CET) 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 fPfH6X_Ic2TW; Tue, 23 Feb 2021 20:30:48 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D1504280C54; Tue, 23 Feb 2021 20:30:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 23C0B28017A for ; Tue, 23 Feb 2021 20:30:48 +0100 (CET) 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 aUKixojo3COo for ; Tue, 23 Feb 2021 20:30:47 +0100 (CET) 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 4493613E for ; Tue, 23 Feb 2021 20:30:47 +0100 (CET) Original-Received: by mail-wr1-f50.google.com with SMTP id d11so4387478wrj.7 for ; Tue, 23 Feb 2021 11:30:47 -0800 (PST) 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=+W5ZPOHZhscu0zChEiL/edjGzYo0WGOCU5EZoKJGpTA=; b=D/4llhVodW9itCEdUQH/bn8XpZcEl3GooIVhOL/Eqisl7tLcMuwPPMnlmU2cwGY4u/ J5yMYiuFfQeNcCTeoWi4pv3T2CakAfnNt3OUXb0jXrM/vJjMiRfdaqRuosAE2zqxvQxB e2rJFJs5dLcMNaqHCgtvGLdCQMB51pR90Pya0HAnC02NVKneNmniE65NTeKxrmMiQuEC W+a02PzzcDugDhHgy67o1lZrYeXvMDYTFjxuCic7U2MGEr3AhsE7iDXBHi2yGWIRoIte +Tg7ZNhsdrJMQYrbWgRiN7h/6FPLMcZkn1nh/N2rfOqLQO/XjCryIGQnO6tJqZ2JFvnm zHgg== 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=+W5ZPOHZhscu0zChEiL/edjGzYo0WGOCU5EZoKJGpTA=; b=VBq3jnmMpzgICiwtlHjamBbyOO8MPkX6T03Ixcl1Wv0v0nQNMD1EEhyksU15h9yBxo VMaQZV2b6dk1TYCx7ZK/V0EMjn5NmaVsKlMGKToVPjwiHrfxlETrLqMftQ63v7wvnY2I wqxfm3USEmKvdWON7Ycp5FtB1zFQmpVHZ2tZWf1/5Q4AxkdiH2gmkyjGhJqu1OO1Psv+ W9yGukdDYrt2KHpvdaFbzIDT9Q5oeOr2MmxXbN9NjAhweVhksLiK7gOlvMFhsdILgVJJ Z/6oTyhDbKNTXXPiTTBPB7H9ZAiDziOzt6nOzC7kr+P5OHUt7i4YOtVqcXfuCzVDRuRc 4nYw== X-Gm-Message-State: AOAM531p0jhDDn00X5/FWXuwGkORROmftC7s/2CTPtg6CGU6gzFbgv7t VnTq4WYYLwp2oWu3W85iGiqqfwswP6q/WQbR0c5y+6YhDzqOGw== X-Google-Smtp-Source: ABdhPJypwuYOD8OmpSPOW0yRJ1br3wK0cbmQJhhlAjQfPo4BvQlGl4aXHrkyl9S6UZLWCAw3aQMwR1alynwEqCa0Jzg= X-Received: by 2002:adf:d1cb:: with SMTP id b11mr28439446wrd.118.1614108646812; Tue, 23 Feb 2021 11:30:46 -0800 (PST) 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:110678 Archived-At: --===============8815799215300763991== Content-Type: multipart/alternative; boundary="00000000000085ae0e05bc05f4bd" --00000000000085ae0e05bc05f4bd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I found a workaround for anyone interested: \setupinteraction[state=3Dstart,focus=3Dstandard] \starttext \startplaceformula[title=3D$\alpha$,reference=3Dalpha] \startformula 1 + 1 =3D 2 \stopformula \stopplaceformula \dorecurse{20}{\samplefile{knuth}} I'm in \in{$\alpha$}[alpha] %so the reference is now visible \stoptext However, one has to manually write a label and a title independently, so I'm not sure that's a clean solution... Best regards, Jairo El lun, 22 de feb. de 2021 a la(s) 23:28, Jairo A. del Rio ( jairoadelrio6@gmail.com) escribi=C3=B3: > Hi again. The following doesn't work (the tag is missing): > > \startTEXpage[offset=3D2bp] > \startplaceformula[title=3DA,reference=3Dalpha] > \startformula > 1 + 1 =3D 2 > \stopformula > \stopplaceformula > I'm in \in[alpha] > \stopTEXpage > > Jairo > > El lun, 22 de feb. de 2021 a la(s) 09:00, Jairo A. del Rio ( > jairoadelrio6@gmail.com) escribi=C3=B3: > >> Oh, dumb me, sorry for the noise and thank you very much. Not every day >> is a good one, sorry again. >> >> Jairo. >> >> El lun, 22 de feb. de 2021 a la(s) 08:51, Hans Hagen (j.hagen@xs4all.nl) >> escribi=C3=B3: >> >>> On 2/22/2021 2:05 PM, Jairo A. del Rio wrote: >>> > Hi. list. >>> > Is it possible to assign an arbitrary equation tag in ConTeXt? I've >>> seen >>> > solutions here; >>> > >>> > >>> https://tex.stackexchange.com/questions/400257/tag-equation-in-context-= with-arbitrary-text >>> > < >>> https://tex.stackexchange.com/questions/400257/tag-equation-in-context-= with-arbitrary-text >>> > >>> > >>> > but none of them works as expected (either the formula counter is >>> still >>> > incrementing with arbitrary conversions or cross-references don't >>> work). >>> >>> Define 'expected' ... \eqno is something low level (a primitive) and we >>> have that nilled at the user level and only use it deep down. It was >>> never meant as user command. >>> >>> > I imagine some things have changed in 2021 and I hope a better >>> solution >>> > is feasible nowadays. >>> >>> \startTEXpage[offset=3D2bp] >>> \startplaceformula[title=3DA] >>> \startformula >>> 1 + 1 =3D 2 >>> \stopformula >>> \stopplaceformula >>> \stopTEXpage >>> >>> Hans >>> >>> ----------------------------------------------------------------- >>> Hans Hagen | PRAGMA ADE >>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >>> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl >>> ----------------------------------------------------------------- >>> >> --00000000000085ae0e05bc05f4bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I found a work= around for anyone interested:


\setupinteraction[state=3Dstart,focus=3Dstandard= ]

\starttext

\startplacefor= mula[title=3D$\alpha$,reference=3Dalpha]

\startfor= mula

1 + 1= =3D 2

\stopform= ula

\stopplaceform= ula

\dorecurse{20}= {\samplefile{knuth}}

I'm in \in= {$\alpha$}[alpha] %so the reference is now visible

\stoptext
<= br>

However= , one has to manually write a label and a title independently, so I'm n= ot sure that's a clean solution...

Best regards,

Jairo


El lun, 22 de = feb. de 2021 a la(s) 23:28, Jairo A. del Rio (jairoadelrio6@gmail.com) escribi=C3=B3:
Hi again. T= he following doesn't work (the tag is missing):

\startTEXpage[of= fset=3D2bp]
\startplaceformula[title=3DA,reference=3Dalpha]
=C2=A0 =C2=A0 =C2=A0\startformula
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 + 1 =3D 2
=C2=A0 =C2=A0 =C2=A0\stopformula
\stopplaceformula
I'm in \in[alpha]
\stopTEXpage

Jairo

El lun, 22 de feb. de 2021 a la(s) 09:00= , Jairo A. del Rio (jairoadelrio6@gmail.com) escribi=C3=B3:
Oh, dumb me, sorry = for the noise and thank you very much. Not every day is a good one, sorry a= gain.

Jairo.

El lun, 22 de feb. de 2021 a la(s) 08:51, Han= s Hagen (j.hagen@xs4= all.nl) escribi=C3=B3:
On 2/22/2021 2:05 PM, Jairo A. del Rio wrote:
> Hi. list.
> Is it possible to assign an arbitrary equation tag in ConTeXt? I'v= e seen
> solutions here;
>
> https= ://tex.stackexchange.com/questions/400257/tag-equation-in-context-with-arbi= trary-text
> <h= ttps://tex.stackexchange.com/questions/400257/tag-equation-in-context-with-= arbitrary-text>
>
> but none of them works as expected (either the formula counter is stil= l
> incrementing with arbitrary conversions or cross-references don't = work).

Define 'expected' ... \eqno is something low level (a primitive) an= d we
have that nilled at the user level and only use it deep down. It was
never meant as user command.

> I imagine some things have changed in 2021 and I hope a better solutio= n
> is feasible nowadays.

\startTEXpage[offset=3D2bp]
\startplaceformula[title=3DA]
=C2=A0 =C2=A0 =C2=A0\startformula
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 + 1 =3D 2
=C2=A0 =C2=A0 =C2=A0\stopformula
\stopplaceformula
\stopTEXpage

Hans

-----------------------------------------------------------------
=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
-----------------------------------------------------------------
--00000000000085ae0e05bc05f4bd-- --===============8815799215300763991== 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== --===============8815799215300763991==--