From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3701 invoked from network); 19 Aug 2023 13:46:46 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 19 Aug 2023 13:46:46 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 62C6E48295A for ; Sat, 19 Aug 2023 15:45:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a0ntZx6xNIG6 for ; Sat, 19 Aug 2023 15:45:54 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B353D48292A for ; Sat, 19 Aug 2023 15:45:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 150564812A4 for ; Sat, 19 Aug 2023 15:44:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1lmwHYiOWA5h for ; Sat, 19 Aug 2023 15:44:47 +0200 (CEST) Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id B39CD4812A3 for ; Sat, 19 Aug 2023 15:44:47 +0200 (CEST) Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-1c4af84667bso1115332fac.1 for ; Sat, 19 Aug 2023 06:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692452686; x=1693057486; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=7MzuTVBSPziOUNJdXDMi8ctQx6Y/NnKDr4NmVw0f0bA=; b=okHVdme18fyu4fV2hNkrv+47OuxD/XzwR20zBJvetddLXPMtL5KyFwdurdckd2DZVJ ZK+heNRI9hZgb5Z+khQ2lPOiNVqLRTAY7WuqcqoU52l9K70Up08umwmE/zJdF3ZYvRGY iYzZ/yHSup4jFwiwj4w8YWDQ94idUlUoABge01gVFzxem4MTSWEGCnolrnCTkWK6Xt9U oVVNIPnw53bigp8E20dZ6HzK4GQRHEPW72uk+/78wN39JlAdG+y04OC9+HansLR89mEK TYI4cIKmnPORJ+phNiyKhPvoey0Lk3WEs5XbOCfNhVHKD3mCCvCZo+aiiYNitg9i4X7L Kmjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692452686; x=1693057486; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7MzuTVBSPziOUNJdXDMi8ctQx6Y/NnKDr4NmVw0f0bA=; b=LTAjavQtn2eoiOa9+rMAJjrTyTtw2sRiUgu0klguPGlaOP9+JOGe8jjsh8334HfPyx 8pX9/s7i2P8jM00I3sEidVJuyMN07GwD5ZLn4jmCJbCicsXxwDucreBWAUrnR+YI2npL rV6VCy+y0n2M2EUJ+ePFkBJDqE7EzBhRJcSah6SriQZSIRstvdtiKgmMLkL4KnqWBSN9 EB7n631r+89y/gUn5QO3pxiqJmgn7uNj58Yd39aR5zGvMnH26IXuUDHox+Ay9DqhIOrZ ZcPetQ0fZbiKkQ+NKLu7ccmQEyI945i7QoWSLV6i3whxIcD4eYy7bd7TimBPf2FG1n4w o0RA== X-Gm-Message-State: AOJu0Yz/V6nV8bb+HG20nf8NzumVJuy2FBgdGYWE5CZlVj1I5fwdVwLC XOfXOvRJLakYPmAZ2GyLekqXwZdN/WblIF7I/+QWsH5DLxMcZw== X-Google-Smtp-Source: AGHT+IG7qwqEG1NvwKO1aEYNB7fX/4waKG1ec1d8TWtdNXYTpzr4SyIBKAztLfVYKgokSOg7AdG372zLie5TIIrYCNQ= X-Received: by 2002:a05:6870:e412:b0:1b0:80d0:b895 with SMTP id n18-20020a056870e41200b001b080d0b895mr2648235oag.12.1692452685794; Sat, 19 Aug 2023 06:44:45 -0700 (PDT) MIME-Version: 1.0 From: Jethro Djan Date: Sat, 19 Aug 2023 13:44:34 +0000 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: H5HBVRNO6UPF46K4HJME22XYUV3NTRZX X-Message-ID-Hash: H5HBVRNO6UPF46K4HJME22XYUV3NTRZX X-MailFrom: jthryeboah@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Enable interaction on custom apa cite variant List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============3496713627073357569==" --===============3496713627073357569== Content-Type: multipart/alternative; boundary="00000000000022d29a060346d979" --00000000000022d29a060346d979 Content-Type: text/plain; charset="UTF-8" Hi, I would like a variant of cite per the APA specification that removes the bracket when quoted in mathematical definitions, theorems, etc. I could of course do it manually for reach using right= and left= but I didn't want to do it every time. I have come up with this MWE: \startbuffer[ref] @book{burago2022course, title={A course in metric geometry}, author={Burago, Dmitri and Burago, Yuri and Ivanov, Sergei}, volume={33}, year={2022}, publisher={American Mathematical Society} } \stopbuffer \setupinteraction[state=start, color=blue] \setupcolors[state=start] \usebtxdataset[ref.buffer] \usebtxdefinitions[apa] \definebtx [apa:cite:theorem] [apa:cite] \startsetups btx:apa:cite:theorem \btxflushauthorname{author} \btxcomma \btxflush{year} \fastsetup{btx:cite:righttext} \stopsetups \setupenumeration[ before={\blank[medium]}, after={\blank[medium]}, alternative=serried, right=, headcommand=\groupedcommand{}{.}, distance=0.5em, width=fit, headstyle=bold, titlestyle=bold, way=bytext, conversion=numbers, prefix=chapter, list=all, title=yes, indentnext=no, ] \defineenumeration[definition][ text=Defintion, style=normal, number=no, ] \starttext \startdefinition{\cite[righttext={{ p.\nbsp 1}}, alternative=theorem][burago2022course]} This is something \stopdefinition \startsubject[title={References}] \placelistofpublications \startsubject \stoptext The problem with this is that the citation is not interactive like it would be if I used apa:cite:authoryear and just removed the parentheses in the options. How do I get it to highlight blue and be interactive like the default behaviour when you turn on interaction? Also this is probably overkill so if there is a better way to achieve this... Jethro --00000000000022d29a060346d979 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I would like a variant of cit= e per the APA specification that removes the bracket when quoted in mathema= tical definitions, theorems, etc. I could=C2=A0of course do it manually for= reach using right=3D and left=3D but I didn't want to do it every time= . I have come up with this MWE:

\startbuffer[ref]
@bo= ok{burago2022course,
=C2=A0 title=3D{A course in metric geometry},
= =C2=A0 author=3D{Burago, Dmitri and Burago, Yuri and Ivanov, Sergei},
= =C2=A0 volume=3D{33},
=C2=A0 year=3D{2022},
=C2=A0 publisher=3D{Ameri= can Mathematical Society}
}
\stopbuffer

\setupinteraction[stat= e=3Dstart, color=3Dblue]
\setupcolors[state=3Dstart]

\useb= txdataset[ref.buffer]

\usebtxdefinitions[apa]
\definebtx
=C2= =A0 =C2=A0 [apa:cite:theorem]
=C2=A0 =C2=A0 [apa:cite]
\startsetups b= tx:apa:cite:theorem
=C2=A0 =C2=A0 \btxflushauthorname{author}
=C2=A0 = =C2=A0 \btxcomma
=C2=A0 =C2=A0 \btxflush{year}
=C2=A0 =C2=A0 \fastset= up{btx:cite:righttext}
\stopsetups

\setupenumeration[
=C2=A0 b= efore=3D{\blank[medium]},
=C2=A0 after=3D{\blank[medium]},
=C2=A0 alt= ernative=3Dserried,
=C2=A0 right=3D,
=C2=A0 headcommand=3D\groupedcom= mand{}{.},
=C2=A0 distance=3D0.5em,
=C2=A0 width=3Dfit,
=C2=A0 hea= dstyle=3Dbold,
=C2=A0 titlestyle=3Dbold,
=C2=A0 way=3Dbytext,
=C2= =A0 conversion=3Dnumbers,
=C2=A0 prefix=3Dchapter,
=C2=A0 list=3Dall,=
=C2=A0 title=3Dyes,
=C2=A0 indentnext=3Dno,
]

\defineenume= ration[definition][
=C2=A0 text=3DDefintion,
=C2=A0 style=3Dnormal,=C2=A0 number=3Dno,
]

\starttext

\startdefinition{\cite[= righttext=3D{{ p.\nbsp 1}}, alternative=3Dtheorem][burago2022course]}
This is something

\stopdefinition

\startsubject[title=3D{R= eferences}]
=C2=A0 =C2=A0 \placelistofpublications
\startsubject
<= br>\stoptext

The problem with this is that the= citation is not interactive like it would be if I used apa:cite:authoryear= and just removed the parentheses in the options. How do I get it to highli= ght blue and be interactive like the default behaviour when you turn on int= eraction? Also this is probably overkill so if there is a better way to ach= ieve this...

Jethro
--00000000000022d29a060346d979-- --===============3496713627073357569== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============3496713627073357569==--