emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "M. ‘quintus’ Gülker" <post+orgmodeml@guelker.eu>
To: emacs-orgmode@gnu.org
Subject: Citations: non-page locators placed in front of citation
Date: Sun, 10 Oct 2021 10:33:41 +0200	[thread overview]
Message-ID: <87wnmljn2y.fsf@atlantis> (raw)

Dear all,

apologies for my frequent e-mails. It’s just that I am evaluating the
citations facility for me.

This time it’s about non-page locators. Take the following document:

    #+TITLE: Test
    #+AUTHOR: testauthor
    #+LANGUAGE: de
    #+bibliography: /tmp/mwe/mwe.bib
    #+cite_export: csl /tmp/mwe/juristische-schulung.csl

    Das ist ein Test [cite:@saenger2013gsr § 12 Rn. 488].

juristische-schulung.csl is
https://github.com/citation-style-language/styles/blob/e22b8a566bad9b4c7f52720f60dd875057a5d210/juristische-schulung.csl.

This is mwe.bib:

    @Book{saenger2013gsr,
      author       = {Ingo Saenger},
      title        = {Gesellschaftsrecht},
      year      = {2013},
      edition   = {2},
      publisher = {Franz Vahlen},
      location  = {München},
      langid    = {ngerman}}

Note how this work is not cited by page, but instead (which is common
among German judicial literature) by section number (§) plus margin number
(Rn.). Exporting this e.g. to HTML yields in Footnote 1:

    §  Saenger, Gesellschaftsrecht, 2. Aufl. (2013), 12 Rn. 488

That is rather unexpected. It has pulled the § sign in front of the
citation. The citation should have looked like this:

    Saenger, Gesellschaftsrecht, 2. Aufl. (2013), § 12 Rn. 488

If I replace the citation in the document with

    Das ist ein Test [cite:@saenger2013gsr p. 245].

then it produces the expected

    Saenger, Gesellschaftsrecht, 2. Aufl. (2013), 245

(the page locator label, "S." in German, is intentionally suppressed by
the CSL style, so this is not a bug. However, the § locator has to
appear and is not suppressed by the CSL style).

If I export with the default "bare" processor, the citation comes out
fine as "(Ingo Saenger, 2013 § 12 Rn. 488)".

I conclude from this that org somehow mistreats the locator if it is not
a page number. I used org 9.5 from MELPA and Citeproc.el from commit
34e66583d95a8d80fb5b9f2960f3382ca0e6d3ab.

Is it a bug or (again) my error?

  -quintus

-- 
Dipl.-Jur. M. Gülker | https://mg.guelker.eu | PGP: Siehe Webseite
Passau, Deutschland  | kontakt@guelker.eu    | O<


             reply	other threads:[~2021-10-10  8:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-10  8:33 M. ‘quintus’ Gülker [this message]
2021-10-10 10:17 ` Citations: non-page locators placed in front of citation Nicolas Goaziou
2021-10-10 17:50   ` M. ‘quintus’ Gülker
2021-10-10 20:10     ` Nicolas Goaziou
2021-10-10 20:31       ` M. ‘quintus’ Gülker
2021-10-10 20:53       ` András Simonyi
2021-10-11  5:19         ` M. ‘quintus’ Gülker
2021-10-11  9:36           ` Nicolas Goaziou
2021-10-11 17:55             ` M. ‘quintus’ Gülker
2021-10-11 18:09               ` Bruce D'Arcus
2021-10-11 19:34                 ` M. ‘quintus’ Gülker
2021-10-11 22:02                   ` Nicolas Goaziou
2021-10-12  5:42                     ` M. ‘quintus’ Gülker
2021-10-12 10:31                       ` András Simonyi
2021-10-12 17:14                         ` M. ‘quintus’ Gülker
2021-10-11  9:35         ` Nicolas Goaziou

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87wnmljn2y.fsf@atlantis \
    --to=post+orgmodeml@guelker.eu \
    --cc=emacs-orgmode@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).