\usebtxdataset
[main] [references.bib] \usebtxdefinitions [apa] \definebtxrendering [chapterlist] [apa] [dataset=main, sorttype=authoryear] \definebtxrendering [finallist] [apa] [dataset=main, sorttype=authoryear]And in the main text, I have a real example, based on two works by Rogers. Here are the entries in the references.bib file
@book{rogers1951client, author = {Rogers, C. R}, title = {Client-centered Therapy}, subtitle = {Its Current Practice, Implications and Theory}, year = {1951}, publisher = {Houghton Mifflin}, } @book{rogers1961person, author = {Rogers, C. R}, title = {On Becoming a Person}, subtitle = {A Therapist's View of Psychotherapy}, year = {1961}, publisher = {Houghton Mifflin}, }
But when I put, for example,Carl Rogers’ person-centred tradition emphasised empathy, congruence and unconditional positive regard \cite[authoryear][main::rogers1951client,rogers1961person].
I get (Rogers, 1951; Rogers 1961) as you can also see from the attached screenshot.
I took your MWE and replaced it with my Rogers examples in the buffer and elsewhere (leaving Jacobi in there as well) and got your correct results. That would seem to be telling me that I have something in my tex file that is interfering with things, but I cannot work out what it is, for the moment. It will turn out to be something very simple, I am sure, some misstep on my part. I have checked each of the various citations I have... and they are all producing the correct result, with the exception of the Rogers case (and one other author whose two works are being referenced together). And I was feeling quite pleased with myself, even managing a
\cite
[alternative=shorthand,
righttext={{1, q. 29, a. 1}}]
[main::aquinas1981summa]
with no problems.
Now see a second issue as I complete Chapter 2. In order to get a
chapter-level bibliography, I use:
\placebtxrendering [chapterlist] [method=local]For Chapter 1 that produced the correct set of local references. But placing it again at the end of Chapter 2 produced no result. Again, something is interfering, I feel. The finallist bibliography appears, and contains references found in Chapter 2, but the chapter-level one is not appearing.
Because of our time difference I will do some more fiddling with all this today and see if I can discover what I am doing wrong, in which case I'll let you know immediately. I will try a stripped back version of my file, testing everything as I go... that can often help identify the issue.
I do a lot of typesetting for a local publisher, but this the first time I have needed to typeset a 400 page academic thesis in APA style. It's the difference between swimming in the local pool and surfing the ocean breakers!
I don't think the LMTX version is the issue here. I have a 2025 version which I use most of the time, but I also have the latest (prior to yesterday's update), and I ran both of them just to check. No difference.
Julian On 20/8/26 23:08, Jean-Pierre Delange via ntg-context wrote:
Hi Julian,I tested your suggestion with the current LMTX APA specification, and it turns out that the grouping logic is already there.With: |\cite[authoryear][beiser1987,beiser1990] | ConTeXt produces: |(Beiser, 1987, 1990) | whereas two different authors give: |(Beiser, 1987; Jacobi, 1785) |There is also the |authoryears| variant, which produces the narrative form:|Beiser (1987, 1990) |So your suggestion is still very useful: this would make a good additional example for the Garden page, since the existing simple example does not show that APA already handles repeated authors this way.I attach the small MWE I used for the test. Best, JP JPLe 20 août 2026 à 07:39, jbf <[email protected]> a écrit :It just occurs to me, looking at one of the simple examples inhttps://wiki.contextgarden.net/Creating_a_bibliography_and_citing_sources, that it might be a good idea to include an example of two works by the same author, as well as 2 works involving different authors.The example provided is \cite [authoryear] [beiser1987,jacobi1785] and that will produce, in-text, (Beiser, 1987; Jacobi, 1785). But let's say Beiser wrote a second work in 1990. \cite [authoryear] [beiser1987,beiser1990]will produce (Beiser, 1987; Beiser, 1990). It might look better if we could get (Beiser, 1987, 1990). At the moment I can't quite see how to get that.Julian___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist :[email protected] /https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage :https://www.pragma-ade.nl /https://context.aanhet.net (mirror) archive :https://github.com/contextgarden/context wiki :https://wiki.contextgarden.net ___________________________________________________________________________________
mwe-apa-author-01-2.pdf
Description: Adobe PDF document
\startbuffer[beiserbib]
@book{rogers1951client,
author = {Rogers, C. R},
title = {Client-centered Therapy},
subtitle = {Its Current Practice, Implications and Theory},
year = {1951},
publisher = {Houghton Mifflin},
}
@book{rogers1961person,
author = {Rogers, C. R},
title = {On Becoming a Person},
subtitle = {A Therapist's View of Psychotherapy},
year = {1961},
publisher = {Houghton Mifflin},
}
@book{jacobi1785,
author = {Jacobi, Friedrich Heinrich},
title = {Über die Lehre des Spinoza in Briefen an den Herrn Moses Mendelssohn},
year = {1785},
publisher = {Gottl. Löwe},
address = {Breslau},
}
\stopbuffer
\usebtxdefinitions[apa]
\usebtxdataset
[default]
[beiserbib.buffer]
\setupbodyfont[libertinus,10pt]
\definebtx
[apa:cite:shorthand]
[apa:cite]
[left={(},
right={)}]
\startsetups btx:cite:shorthand
\btxdirect{shorthand}%
\ifx\currentbtxrighttext\empty\else
\btxspace
\currentbtxrighttext
\fi
\stopsetups
\starttext
\subject{Test 1: two different authors}
\starttyping
\cite[authoryear][rogers1951client,jacobi1785]
\stoptyping
Result:
\cite[authoryear][rogers1951client,jacobi1785]
\blank[2*big]
\subject{Test 2: same author with authoryear}
\starttyping
\cite[authoryear][rogers1951client,rogers1961person]
\stoptyping
Result:
\cite[authoryear][rogers1951client,rogers1961person]
\blank[2*big]
\subject{Test 3: same author with authoryears}
\starttyping
\cite[authoryears][rogers1951client,rogers1961person]
\stoptyping
Result:
\cite[authoryears][rogers1951client,rogers1961person]
\blank[2*big]
\subject{Test 4: mixed authors with authoryears}
\starttyping
\cite[authoryears][rogers1951client,rogers1961person,jacobi1785]
\stoptyping
Result:
\cite[authoryears][rogers1951client,rogers1961person,jacobi1785]
\blank[2*big]
\subject{Bibliography}
\placebtxrendering
[default]
[criterium=all]
\stoptext
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
