From: leonard@lausen.nl
To: "Roland Winkler" <winkler@gnu.org>,
"Basil L. Contovounesios" <contovob@tcd.ie>
Cc: 44976@debbugs.gnu.org
Subject: bug#44976: 28.0.50; bibtex.el does not consider biblatex field name aliases
Date: Thu, 03 Dec 2020 22:17:08 +0000 [thread overview]
Message-ID: <517f128e9a064a0d8bd01d3eb88240c4@lausen.nl> (raw)
In-Reply-To: <64653.37608.888121.24519@gargle.gargle.HOWL>
> Do I understand correctly that, from biblatex's perspective,
> "journal" and "journaltitle" are alternatives similar to "year" and
> "date"? The code in bibtex.el already includes the machinery to
> support such alternatives.
I think you understand correctly. The biblatex doc specifies:
"The aliases listed in this section are provided for backwards compatibility with traditional
BibTeX and other applications based on traditional BibTeX styles. Note that these aliases are
immediately resolved as the bibfile is processed. All bibliography and citation styles must use the
names of the fields they point to, not the alias. In bibfiles, you may use either the alias or the
field name but not both at the same time."
https://mirrors.concertpass.com/tex-archive/macros/latex/contrib/biblatex/doc/biblatex.pdf#subsubsection.2.2.5
> So all that's needed for this is to replace in bibtex-biblatex-entry-alist the elements
>
> ("journaltitle")
>
> with
>
> ("journaltitle" nil nil 17) ("journal" nil nil 17)
>
> with 17 replaced by the lowest unused number for the alternatives of
> this entry type, see "ALTERNATIVES" in the docstring of
> bibtex-BibTeX-entry-alist.
Great!
> Or am I missing something?
>
> When bibtex-entry inserts a template for a new entry, this includes
> the different alternatives with prefix "ALT". It could be useful to
> distingiush between alternatives that are listed in bibtex-entry's
> templates and "hidden" alternatives that are only silently accepted
> in the background because of biblatex's backward compatibility with
> the BibTeX format. For example, the ALTERNATIVE number could be
> positive or negative. Then, only if this number is positive, all
> alternatives are all included in the entry template with the ALT prefix.
> Otherwise, only the first alternative in bibtex-biblatex-entry-alist
> is printed without the prefix. Such a feature could also make sense
> for "year" and "date".
That would be a nice feature as well.
Do you have time to commit a fix for the aliases and possibly add the negative/positive distinction of ALTERNATIVEs?
next prev parent reply other threads:[~2020-12-03 22:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-01 0:53 bug#44976: 28.0.50; bibtex.el does not consider biblatex field name aliases leonard
2020-12-01 16:38 ` Basil L. Contovounesios
2020-12-02 20:43 ` Roland Winkler
2020-12-03 22:17 ` leonard [this message]
2020-12-13 20:44 ` Roland Winkler
2021-01-01 22:50 ` Roland Winkler
2021-01-02 18:36 ` Glenn Morris
2021-01-02 19:48 ` Roland Winkler
2022-01-28 15:01 ` Lars Ingebrigtsen
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=517f128e9a064a0d8bd01d3eb88240c4@lausen.nl \
--to=leonard@lausen.nl \
--cc=44976@debbugs.gnu.org \
--cc=contovob@tcd.ie \
--cc=winkler@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.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).