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: Fri, 4 Aug 2023 13:57:15 +0200	[thread overview]
Message-ID: <35fb87a9-0889-166e-c79f-d5a2fe8077a7@icloud.com> (raw)
In-Reply-To: <FC905B17-0403-4876-88F4-EA28613AD98B@hccnet.nl>

Indeed, one does not need the comma, it is programmed in the style.
You can see this in the manual, on p. 43 documenting citations.

The style is setup to put the righttext inside the parenthesis for 
alternative=authoryear and outside of the year parenthesis for 
alternative=authoryears.

I looked carefully in the APA Style Guide and did not find any 
suggestion that one should use Knuth (1984, p. 3). The variant (Knuth, 
1984, p. 3) is documented.

You can make the following changes (untested)
\setupbtx [apa:cite:author:years] [right=]
\setupbtx [apa:cite:authoryears] [right={)}]
to get the other behavior.

--
Alan


On 01/08/23 01/08/23, 23:26, Robert via ntg-context wrote:
> Thank you, Alan for the suggestion.
> 
> I tried as you said: \cite[alternative=authoryears,righttext={{, 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=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-04 11:59 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               ` [NTG-context] " Alan Braslau via ntg-context
2023-08-01 21:26                 ` Robert via ntg-context
2023-08-04 11:57                   ` Alan Braslau via ntg-context [this message]
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=35fb87a9-0889-166e-c79f-d5a2fe8077a7@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).