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_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2850 invoked from network); 1 Aug 2023 21:29:02 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 1 Aug 2023 21:29:02 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B0CEB482B44 for ; Tue, 1 Aug 2023 23:28:23 +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 cT0OBlflcY73 for ; Tue, 1 Aug 2023 23:28:23 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A61F1482C2B for ; Tue, 1 Aug 2023 23:27:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id EF0D9482997 for ; Tue, 1 Aug 2023 23:26:39 +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 5jT36x-epScf for ; Tue, 1 Aug 2023 23:26:39 +0200 (CEST) Received: from smtp.hccnet.nl (smtp.hccnet.nl [213.136.31.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 8DA0B482995 for ; Tue, 1 Aug 2023 23:26:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hccnet.nl; s=smtp01; h=Message-Id:To:Date:Subject:Mime-Version:Content-Type:From:Sender: Cc:Content-Transfer-Encoding; bh=RqsLHHCB3k14UVM+sDzaKEqWT4gWODXr28hhhhvuzcI= ; b=v2uz8pJcS4/nfSlsSKhiNH1EuZfJ8IUp1QCJnMTAVP16aD0qIR5S+Lh7ndmGeLDn19LYg3sdR pY2wWGWGujTT+Gv/miXvVPM8kmS1x18Smd7ZhT4tvULCGi1YRAxQMapsT11cHA/s2EdQQfNMarRhx C25b39/y9grpOXz570lkco05rNr/IJFZlPgXx+1nZT2hace8cUhAQ6L1l1JTTK06tU2BZ/RA6h8By abdaCbmbNMyqxgiENsCda8iupWcUK/KNGnUFB3+LFZXgES339RxZRtly0SeHMLzuuTGROO5MeljlE hPVR5ImDeoKx+mNCw7I7+6MIr+rYrL6+4EQHPw==; Received: from [2a00:bba0:120d:3000:5d7c:6d70:99ea:d67a] (helo=smtpclient.apple) by smtp03.hcced.customer.bit.nl with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qQwt5-00CrnG-6g for ntg-context@ntg.nl; Tue, 01 Aug 2023 23:26:39 +0200 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Date: Tue, 1 Aug 2023 23:26:08 +0200 References: <71307b8a-b5cc-dd88-a145-8df34c5af67e@gmail.com> <2aafd425-cae1-1049-2759-d65cd79ebf81@freedom.nl> <9ca9f5c5-2be5-0935-da08-882bbcc04ed0@gmail.com> <009B3708-530E-4020-A04A-918209189AF2@hccnet.nl> To: mailing list for ConTeXt users In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3731.300.101.1.3) Message-ID-Hash: KIJ5NRTI35QZORA37FZ4DYFOHNYB2X5I X-Message-ID-Hash: KIJ5NRTI35QZORA37FZ4DYFOHNYB2X5I X-MailFrom: r.ermers@hccnet.nl 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] Re: Bibliography cite List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Robert via ntg-context Cc: r.ermers@hccnet.nl Content-Type: multipart/mixed; boundary="===============3426666477830000103==" --===============3426666477830000103== Content-Type: multipart/alternative; boundary="Apple-Mail=_ABBCB2B0-86AA-418C-AB49-39D1320A4F87" --Apple-Mail=_ABBCB2B0-86AA-418C-AB49-39D1320A4F87 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thank you, Alan for the suggestion. I tried as you said: \cite[alternative=3Dauthoryears,righttext=3D{{, p. = 3}}][Knuth1984]. Yet the result is this: Knuth (1984), , p. 3=20 If I leave out the first comma, the result is: Knuth (1984), p. 3=20 Righttext probably refers to the text outside the parentheses. Thank you in advance, Robert. > Op 1 aug. 2023, om 22:42 heeft Alan Braslau = het volgende geschreven: >=20 > Using the APA specification: >=20 > \usebtxdefinitions > [apa] >=20 >=20 > you can then >=20 > \cite[alternative=3Dauthoryears,righttext=3D{{, p.\nbsp 12}}] = [Knuth1984] > mentions =E2=80=A6. >=20 >=20 > The tricky part concerning righttext=3D is the double {{ }}, needed = because the text contains a comma. The reason for this is simple, as = righttext is a comma-separated list, where each entry corresponds to a = cited reference, as in \cite[righttext=3D{a,b}] [ref1,ref2] > so a is associated with ref1 and b is associated with ref2. >=20 > Alan >=20 >=20 >=20 > On 01/08/23 01/08/23, 15:37, Robert via ntg-context wrote: >> Dear List members, >> For my academic work with context I need the following cite according = to Apa standards: >> Knuth (1984, p. 12) mentions =E2=80=A6. >> The matrix is this: >> AUTHOR (YYYY, p.~n). >> I reckon this can somehow be accomplished with the \setupbtx command. >> (Standard these and other variants are possible: AUTHOR (YYYY) and = AUTHOR YYYY, p. n.) >> I tried different setups: \setupbtx[apa:cite:authoryear], and = \setupbtx[apa:cite:authoryears], I played with the lefttext, righttext = and other options, but none of them give the desired result. >> Thank you for any suggestions. >> Regards, >> Robert >> @article{Knuth1984, >> author=3D{Knuth, Donald E.}, >> title=3D{Literate Programming}, >> journal=3D{The Computer Journal}, Volume=3D{27}, Number=3D{2}, = year=3D{1984}, >> Pages=3D{97--111}, >> } --Apple-Mail=_ABBCB2B0-86AA-418C-AB49-39D1320A4F87 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Thank = you, Alan for the suggestion.

I tried as you = said: \cite[alternative=3Dauthoryears,righttext=3D{{, p. = 3}}][Knuth1984].

Yet the result is = this: Knuth (1984), , p. = 3 

If I leave out the first comma, = the result is: Knuth (1984), p. = 3 

Righttext probably refers to the = text outside the parentheses.

Thank you in = advance,

Robert.


Op 1 aug. 2023, om 22:42 heeft Alan Braslau = <alan.braslau@icloud.com> het volgende geschreven:

Using the APA = specification:

\usebtxdefinitions
=    [apa]


you can = then

\cite[alternative=3Dauthoryears,righttext=3D{{, p.\nbsp = 12}}] [Knuth1984]
mentions =E2=80=A6.


The tricky part = concerning righttext=3D is the double {{ }}, needed because the text = contains a comma. The reason for this is simple, as righttext is a = comma-separated list, where each entry corresponds to a cited reference, = as in \cite[righttext=3D{a,b}] [ref1,ref2]
so a is associated with = ref1 and b is associated with ref2.

Alan



On = 01/08/23 01/08/23, 15:37, Robert via ntg-context wrote:
Dear List members,
For my academic work with context I = need the following cite according to Apa standards:
Knuth (1984, p. = 12) mentions =E2=80=A6.
The matrix is this:
AUTHOR (YYYY, = p.~n).
I reckon this can somehow be accomplished with the \setupbtx = command.
(Standard these and other variants are possible: AUTHOR = (YYYY) and AUTHOR YYYY, p. n.)
I tried different setups: = \setupbtx[apa:cite:authoryear], and \setupbtx[apa:cite:authoryears], I = played with the lefttext, righttext and other options, but none of them = give the desired result.
Thank you for any = suggestions.
Regards,
Robert
@article{Knuth1984,
author=3D{Knu= th, Donald E.},
title=3D{Literate Programming},
journal=3D{The = Computer Journal}, Volume=3D{27}, Number=3D{2}, = year=3D{1984},
Pages=3D{97--111},
}

= --Apple-Mail=_ABBCB2B0-86AA-418C-AB49-39D1320A4F87-- --===============3426666477830000103== 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 ___________________________________________________________________________________ --===============3426666477830000103==--