From: "M. ‘quintus’ Gülker" <post+orgmodeml@guelker.eu>
To: emacs-orgmode@gnu.org
Subject: Citations: position="first" match not properly evaluated
Date: Sat, 23 Oct 2021 15:08:07 +0200 [thread overview]
Message-ID: <87fssr99e0.fsf@atlantis> (raw)
Dear all,
the CSL style I use has footnotes. When a book is cited, it is once
cited with the full bibliographic information, and later footnotes then
reference the footnote in which this information first appeared,
shortening the later footnotes to the format "Author, (o. Fn. <number>),
...". (the spurious comma I will look into later, it's probably an error
in the CSL file). Now take this org file:
#+TITLE: Test
#+AUTHOR: testauthor
#+LANGUAGE: de
#+cite_export: csl /tmp/mwe/juristische-schulung.csl
#+bibliography: /tmp/mwe/mwe.bib
Das ist ein Test mit dem ersten Zitat [cite:@knuth1997tacp1 p. 55].
Dasselbe Zitat mit einer anderen Seite [cite:@knuth1997tacp1 p. 70].
mwe.bib:
@Book{knuth1997tacp1,
author = {Donald E. Knuth},
maintitle = {The Art of Computer Programming},
title = {Fundamental Algorithms},
year = {1997},
edition = {3},
publisher = {Addison-Wesley},
location = {Reading, Harlow, Menlo Park, Berkeley, Don Mills, Sydney, Bonn, Amsterdam, Tokyo, Mexico City},
langid = {english},
volume = {1}}
juristische-schulung.csl is https://github.com/citation-style-language/styles/blob/e22b8a566bad9b4c7f52720f60dd875057a5d210/juristische-schulung.csl
Exporting this gives these two footnotes:
1 Knuth, The Art of Computer Programming, 3. Aufl. (1997), 55
2 Knuth, , 70
The second footnote is incomplete. It lacks the "o. Fn." mark and the
footnote referenced. If I export the equivalent pandoc-markdown document
with pandoc:
---
title: Test
author: Testauthor
lang: de
---
Das ist ein Test mit dem ersten Zitat [@knuth1997tacp1, p. 55].
Dasselbe Zitat mit einer anderen Seite [@knuth1997tacp1, p. 70].
Then both footnotes are proper:
1. Knuth, The Art of Computer Programming, 3. Aufl. (1997), p. 55
2. Knuth, (o. Fn. 1), p. 70
So it’s not an error in the CSL file. The CSL file uses this construct
to differenciate the two cases:
<text macro="autor-editor-note" suffix=", "/>
<choose>
<if match="none" position="first">
<group delimiter=" " prefix="(" suffix="), ">
<text value="o. Fn."/>
<text variable="first-reference-note-number"/>
</group>
</if>
<else>
<text variable="title" form="short" suffix=", "/>
<text macro="edition"/>
</else>
</choose>
This is probably a bug.
Org mode version 9.5 (release_9.5-104-g2b1fc6 @ /home/quintus/.emacs.d/org-mode/lisp/)
citeproc.el at 34e66583d95a8d80fb5b9f2960f3382ca0e6d3ab
-quintus
--
Dipl.-Jur. M. Gülker | https://mg.guelker.eu | PGP: Siehe Webseite
Passau, Deutschland | kontakt@guelker.eu | O<
next reply other threads:[~2021-10-23 13:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-23 13:08 M. ‘quintus’ Gülker [this message]
2021-11-02 16:40 ` Citations: position="first" match not properly evaluated András Simonyi
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=87fssr99e0.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).