ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Braslau via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Alan Braslau <alan.braslau@icloud.com>
Subject: [NTG-context] Re: Bibliography cite
Date: Tue, 1 Aug 2023 22:42:20 +0200	[thread overview]
Message-ID: <c294c499-7a7e-aba9-3b62-e55a0859b7b4@icloud.com> (raw)
In-Reply-To: <009B3708-530E-4020-A04A-918209189AF2@hccnet.nl>

Using the APA specification:

\usebtxdefinitions
     [apa]


you can then

\cite[alternative=authoryears,righttext={{, p.\nbsp 12}}] [Knuth1984]
mentions ….


The tricky part concerning righttext= 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={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 ….
> 
> 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={Knuth, Donald E.},
> title={Literate Programming},
> journal={The Computer Journal}, Volume={27}, Number={2}, year={1984},
> Pages={97--111},
> }
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2023-08-01 20:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-21 15:34 [NTG-context] Par Builder Tests Keith McKay
2023-07-21 15:53 ` [NTG-context] " Hans Hagen
2023-07-21 16:10 ` Hans Hagen via ntg-context
2023-07-21 16:33   ` Keith McKay
2023-07-28 15:04     ` Keith McKay
2023-07-28 16:22       ` Henning Hraban Ramm
2023-07-28 18:20         ` Keith McKay
2023-07-30 13:09           ` Keith McKay
2023-08-01 13:37             ` [NTG-context] Bibliography cite Robert via ntg-context
2023-08-01 20:42               ` Alan Braslau via ntg-context [this message]
2023-08-01 21:26                 ` [NTG-context] " Robert via ntg-context
2023-08-04 11:57                   ` Alan Braslau via ntg-context
2023-08-05 14:43                     ` Robert via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c294c499-7a7e-aba9-3b62-e55a0859b7b4@icloud.com \
    --to=ntg-context@ntg.nl \
    --cc=alan.braslau@icloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).