From: Roland Winkler <winkler@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Leo Stein <leo.stein@gmail.com>, emacs-devel@gnu.org
Subject: Re: [PATCH] BibTeX-mode: add eprint field as potential source for entry's URL
Date: Mon, 02 Dec 2024 07:08:20 -0600 [thread overview]
Message-ID: <87v7w2kzaz.fsf@gnu.org> (raw)
In-Reply-To: <86o71v420t.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 01 Dec 2024 21:49:22 +0200")
On Sun, Dec 01 2024, Eli Zaretskii wrote:
>> diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el
>> index 99a97c9bb8d..c77953489a7 100644
>> --- a/lisp/textmodes/bibtex.el
>> +++ b/lisp/textmodes/bibtex.el
>> @@ -1443,6 +1443,9 @@ Used by `bibtex-complete-crossref-cleanup' and `bibtex-copy-summary-as-kill'."
>>
>> (defcustom bibtex-generate-url-list
>> '((("url" . ".*:.*"))
>> + (("eprint" . ".*")
>> + "https://arxiv.org/abs/%s"
>> + ("eprint" ".*" 0))
>> (("doi" . "10\\.[0-9]+/.+")
>> "https://doi.org/%s"
>> ("doi" ".*" 0)))
>
> Roland, any comments?
The above patch is very arXiv-specific. All this goes beyond
old-fashioned BibTeX. But the documentation for biblatex (current:
version 3.20 from CTAN) says in Sec. 3.14.7 "Electronic Publishing
Information" how the field "eprint" should be used in combination with a
field "eprinttype" to identify an electronically published document.
Arxiv's usage is not compatible with this. Instead of "eprinttype"
arXiv uses a field "archivePrefix", and the field "primaryClass" used by
arXiv should probably be replaced by the optional field "eprintclass"
mentioned in the biblatex documentation.
To the best of my knowledge, neither the arXiv approach nor the different
approach suggested by the biblatex documentation have found a widespread
use in real life.
The user variable bibtex-generate-url-list can be configured to work
either way, as suggested by the OP or as suggested by the biblatex
documentation. Here it seems to me the best solution is to keep the
default of bibtex-generate-url-list as it is now and let users configure
this variable as desired / needed.
Note also that arXiv also provides a field "url" that is already
supported by the default value of bibtex-generate-url-list.
next prev parent reply other threads:[~2024-12-02 13:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-01 19:05 [PATCH] BibTeX-mode: add eprint field as potential source for entry's URL Leo Stein
2024-12-01 19:49 ` Eli Zaretskii
2024-12-02 13:08 ` Roland Winkler [this message]
2024-12-02 13:34 ` Eli Zaretskii
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v7w2kzaz.fsf@gnu.org \
--to=winkler@gnu.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=leo.stein@gmail.com \
/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.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).