emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Citations: Locator treated as prefix [9.5 (release_9.5-225-g49


From: Nicolas Goaziou
Subject: Re: [BUG] Citations: Locator treated as prefix [9.5 (release_9.5-225-g494c20 @ /home/quintus/.emacs.d/org-mode/lisp/)]
Date: Fri, 12 Nov 2021 09:37:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hello,

M. ‘quintus’ Gülker <post+orgmodeml@guelker.eu> writes:

> take this org file `mwe.org':
>
>     #+TITLE: Test
>     #+AUTHOR: Testauthor
>
>     #+LANGUAGE: de
>     #+bibliography: /tmp/mwe/mwe.bib
>
>     #+cite_export: csl /tmp/mwe/juristische-schulung.csl
>
>     Das ist ein Test [cite:@redeker2020itr Kap. A Rn. 72, Suffixtext hier]
>
> with this `mwe.bib' Biblatex file:
>
>     @Book{redeker2020itr,
>     author       = {Helmut Redeker},
>     title        = {IT-Recht},
>     year      = {2020},
>     edition   = {7},
>     publisher = {C.H. Beck},
>     location  = {München},
>     langid    = {ngerman}}
>
> `juristische-schulung.el' is 
> https://github.com/citation-style-language/styles/blob/e22b8a566bad9b4c7f52720f60dd875057a5d210/juristische-schulung.csl
>
> When this is exported to HTML, the locator `Kap. A Rn. 72' is split and
> partly taken as the prefix. It exports to this:
>
>     1 Kap. A Rn.  Redeker, IT-Recht, 7. Aufl. (2020), 72 Suffixtext hier
>
> This is incorrect; it should export to:
>
>     1 Redeker, IT-Recht, 7. Aufl. (2020), Kap. A Rn. 72 Suffixtext
>     hier

This is because "Kap." is not known as a locator identifier. See
‘org-cite-csl--label-alist’ for the full list of such identifiers.

I don’t think it is reasonable to expect this variable to contain every
identifier in every language. It may be a good idea to turn the variable
above into a defcustom, thus.

Meanwhile, you can test again after evaluating:

  (push '("Kap." . "chapter") org-cite-csl--label-alist)

Regards,
-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]