Re: bibliography with certain canonical reference
jbf <[email protected]>
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <[email protected]> |
Impressive, JP! I have tried out your test at this stage (in a different
place and with a different computer, so for the moment can't adapt it to
the local situation) and naturally can confirm that it works. I have
little doubt that it will work once I get back to the other computer and
the real text I am dealing with. Maybe tonight, or if not tomorrow
morning my time.
With the help of ChatGPT, I was 'hovering' around a similar solution,
including using 'shorthand= GS' in the .bib file, but it was giving me
(as it often does) some falsities as well as some truths, and therefore
'no cigar', so I didn't feel it worth offering you some ersatz attempts
like that! However, looking at your solution, I can see that AI was
heading in a similar direction, offering a wrapper of its own. At that
stage it was beyond my abilities to detect the changes I could make to
arrive at your solution.
Hopefully these interruptions of mine are not distracting you too much
from your main task of finalising work on the ConTeXt implementation of
bibliographic material, but I suspect that anyone working with texts of
this kind will come up with a variety of special use cases, so maybe
mine can be helpful in this regard.
Your additional email on this matter has just arrived, so I will wok
with that too, but it is evening meal time where I am at the moment, and
that has to take immediate priority🙂
à demain,
Julian
On 19/8/26 17:57, Jean-Pierre Delange via ntg-context wrote:
>
> Hi Julian,
>
> I have now got a working solution for your Vatican-document case while
> keeping the bibliographic record properly in APA form.
>
> The idea is to keep the full institutional author in the |.bib| file
> and add a separate field:
>
> shorthand = {GS},
>
> ConTeXt preserves that field even though the current APA specification
> does not use it itself, and it can be accessed directly with
> |\btxdirect{shorthand}|.
>
> A small wrapper then gives:
>
> \ConventionalCite{vat21965gs}{§22}
>
> which produces:
>
> (GS §22)
>
> while the normal APA citation still gives:
>
> (Second Vatican Council, 1965)
>
> and the bibliography remains unchanged in APA form.
>
> I have compiled and tested this successfully. I am attaching the
> complete |.tex| test file (and the .bib) so that you can try it
> directly. The next step, if useful, would be to see whether this can
> be turned into a proper BTX citation alternative instead of using the
> small wrapper command.
>
> JP
>
>
> Le 19/08/2026 à 09:46, Jean-Pierre Delange via ntg-context a écrit :
>>
>> Hi Julian,
>>
>> I think I have now identified the difficulty more precisely. In
>> ConTeXt’s current APA implementation, citations are essentially built
>> around the author–date model, and the bibliographic categories do not
>> naturally provide a field for a conventional siglum such as |GS|.
>> This is why |righttext| does not replace the core citation: it is
>> simply appended to it.
>>
>> The key |alternative=short| is also somewhat misleading in this
>> context. It does not mean “use a free bibliographic abbreviation such
>> as GS”; rather, it refers to ConTeXt’s own internally generated
>> short-form mechanism. So it is important to clarify exactly what this
>> |short| does — and what it does not do.
>>
>> Technically, ConTeXt does preserve an additional BibTeX field such as
>> |shorthand={GS}|, and I have verified that it can be read back
>> directly. The difficulty is that the current APA specification does
>> not recognize |shorthand| as a normal field for a |book| entry, so
>> the standard APA citation machinery ignores it. Moreover,
>> |alternative=short| does not mean “use my siglum”; it invokes an
>> internally generated short form. The problem, therefore, is not
>> storing |GS|, but finding a clean way to make APA use that stored
>> value as the citation form.
>>
>> With SBL, this difficulty is much less artificial, because the style
>> is specifically designed for scholarly references in which one can
>> more naturally distinguish between the full bibliographic record, the
>> conventional abbreviation of a work or document, and the internal
>> locator. This is precisely one of the aspects I am currently
>> documenting for ConTeXt.
>>
>> I am nevertheless looking for an elegant solution that stays within
>> APA for your particular case. The encouraging point is that ConTeXt
>> already knows how to preserve and retrieve |shorthand={GS}|; what
>> remains is to integrate that value cleanly into a reusable citation
>> form, without misusing the |author| field or hard-coding |GS| in the
>> document.
>>
>> JP
>>
>>
>> Le 19/08/2026 à 05:43, jbf a écrit :
>>>
>>> I was able to add a shortauthor = {GS} in the .bibfile and tried
>>> alternative=short in \cite. Together with the appropriate righttext
>>> it results in (<empty>, GS §22) so almost there, in a way, if we
>>> could avoid that <empty>, but maybe we can't.
>>>
>>> Julian
>>>
>>> On 17/8/26 20:26, Jean-Pierre Delange via ntg-context wrote:
>>>>
>>>> Julian,
>>>>
>>>> Thanks — that is very useful, and I think we are now essentially there.
>>>>
>>>> Since |righttext| is appended literally after the author, could you
>>>> try including the comma there as well?
>>>>
>>>> (\cite
>>>> [alternative=author,
>>>> righttext={{, ca. 350 BCE/2009}}]
>>>> [main::aristotle2009ethics])
>>>>
>>>> If it behaves as your previous test suggests, this should give:
>>>>
>>>> (Aristotle, ca. 350 BCE/2009)
>>>>
>>>> That would be a pleasantly simple solution: |alternative=author|
>>>> supplies the author, while |righttext| supplies the
>>>> historical/edition dating information without requiring any change
>>>> to the bibliography data or the APA rendering itself.
>>>>
>>>> It would also be worth checking afterwards whether the outer
>>>> parentheses can be handled by the citation machinery itself, but I
>>>> would first confirm this minimal form.
>>>>
>>>> JP
>>>>
>>>> * Aristotle might add one complication: if character is formed by
>>>> repeated action, those repeated actions cannot themselves be
>>>> normatively neutral. A just /hexis/ (ἕξις) requires the practice of
>>>> just actions, which in turn requires some prior account of what
>>>> counts as just. This is one reason why the /Nicomachean Ethics/
>>>> leads so naturally into the /Politics/: the formation of character
>>>> depends on laws, education, and ultimately on the ordering of the
>>>> political community.
>>>>
>>>>
>>>> Le 17/08/2026 à 11:16, jbf a écrit :
>>>>>
>>>>> Before retiring for the night I have quickly checked out your
>>>>> suggestion (and don't worry about the change of date to 2009,
>>>>> since this is the real date I need to deal with):
>>>>>
>>>>> [alternative=author,
>>>>>
>>>>> righttext={{ca. 350 BCE/2009}}]
>>>>>
>>>>> [main::aristotle2009ethics]
>>>>>
>>>>>
>>>>> produces:
>>>>>
>>>>> Aristotle ca. 350 BCE/2009
>>>>>
>>>>> Nearly there, so to get parentheses around it and
>>>>> produce (Aristotle, ca. 350 BCE/2009), this is how I treated the
>>>>> entire paragraph where the citation appears:
>>>>>
>>>>>
>>>>> Aristotle understood that character is formed through repeated
>>>>> action. We become just or unjust, courageous or cowardly,
>>>>> temperate or self-indulgent through what we repeatedly choose and
>>>>> practise (\cite
>>>>>
>>>>> [alternative=author,
>>>>>
>>>>> righttext={{ca. 350 BCE/2009}}]
>>>>>
>>>>> [main::aristotle2009ethics]). Actions become habits, habits shape
>>>>> character, and character influences what becomes easier or harder
>>>>> to perceive and choose. Human beings remain capable of change, but
>>>>> freedom gradually acquires a history.
>>>>>
>>>>>
>>>>> Julian
>>>>> On 17/8/26 17:35, Jean-Pierre Delange via ntg-context wrote:
>>>>>>
>>>>>> No problem at all, Julian — take your time. Translation work has
>>>>>> a way of absorbing the whole day!
>>>>>> I’ll be interested to hear what you get from the test when you
>>>>>> have a chance to try it.
>>>>>> Have a good evening.
>>>>>>
>>>>>> JP
>>>>>>
>>>>>>
>>>>>> Le 17/08/2026 à 09:07, jbf a écrit :
>>>>>>>
>>>>>>> Caught up in other work right now JP (translation), and already
>>>>>>> evening here, so it might be tomorrow before I can get back to
>>>>>>> this. I'll let you know how it goes.
>>>>>>>
>>>>>>> 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
>>>>>> ___________________________________________________________________________________
>>>>>
>>>>> ___________________________________________________________________________________
>>>>> 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
>>>>> ___________________________________________________________________________________
>>>>
>>>> ___________________________________________________________________________________
>>>> 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
>>>> ___________________________________________________________________________________
>>>
>>> ___________________________________________________________________________________
>>> 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
>>> ___________________________________________________________________________________
>>
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________