--- Begin Message ---
Subject: |
26.1; bibtex-generate-autokey does not use use date field |
Date: |
Sun, 16 Jun 2019 16:23:30 -0400 |
User-agent: |
NeoMutt/20180716 |
Package: emacs
Version: 26.1
Tags: patch
The bibtex.el package will automatically generate a key for a BibTeX
entry when required. To do so, it extracts the year from the 'year'
field. Instead of the 'year' field, the biblatex dialect uses the 'date'
field to record the publication date. The bibtex-generate-autokey
function should fallback to the date field when the year field is
absent. This requires a bit of care because the 'date' field can contain
an arbitrary date satisfying the "ISO8601-2 Extended Format
Specification Level 1". Fortunately, a relatively simple regex can
extract the year from all of the examples listed in the biblatex
manual[0].
Please see attached for a patch adding support for the 'date' field.
[0] http://mirrors.ibiblio.org/CTAN/macros/latex/exptl/biblatex/doc/biblatex.pdf
--
|)|/ Ryan Kavanagh | GPG: 4E46 9519 ED67 7734 268F
|\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A
0001-Fallback-to-date-field-when-year-field-is-absent-in-.patch
Description: Text Data
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field |
Date: |
Fri, 11 Dec 2020 09:04:24 -0600 |
On Mon Dec 7 2020 Roland Winkler wrote:
> A few days ago I installed in master a related patch that I had
> lying around for some time. I believe it addresses the question
> of searching the date and year field in a cleaner way by passing a
> list of field names to bibtex-text-in-field. But I didn't know
> the new iso8601 library. So that's the main purpose of the new
> patch attached below.
Installed as commit 4a700a2f79d5cca64602b7cad30d6485cfe0e449.
Closing.
--- End Message ---