emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#36252: closed (26.1; bibtex-generate-autokey does not use use date f


From: GNU bug Tracking System
Subject: bug#36252: closed (26.1; bibtex-generate-autokey does not use use date field)
Date: Fri, 11 Dec 2020 15:05:01 +0000

Your message dated Fri, 11 Dec 2020 09:04:24 -0600
with message-id <35448.33476.514731.24531@gargle.gargle.HOWL>
and subject line Re: bug#36252: 26.1; bibtex-generate-autokey does not use use 
date field
has caused the debbugs.gnu.org bug report #36252,
regarding 26.1; bibtex-generate-autokey does not use use date field
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
36252: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36252
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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

Attachment: 0001-Fallback-to-date-field-when-year-field-is-absent-in-.patch
Description: Text Data

Attachment: 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 ---

reply via email to

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