GNU bug report logs - #64768
biblatex detection in reftex is too naive, multiple bib files are problematic

Previous Next

Package: emacs;

Reported by: "Philipp G. Haselwarter" <philipp <at> haselwarter.org>

Date: Fri, 21 Jul 2023 12:21:02 UTC

Severity: normal

Tags: moreinfo, notabug

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Philipp G. Haselwarter" <philipp <at> haselwarter.org>
To: 64768 <at> debbugs.gnu.org
Subject: bug#64768: biblatex detection in reftex is too naive, multiple bib files are problematic
Date: Fri, 21 Jul 2023 14:19:06 +0200
[Message part 1 (text/plain, inline)]
To find .bib files, reftex uses `reftex-locate-bibliography-files', which
in turn checks whether bibtex is in use via `reftex-using-biblatex-p'. The
latter is too naïve: it only checks if "biblatex" is amongst the
`TeX-active-styles' or does a simple syntactic check of the current buffer.
In case \usepackage{biblatex} is loaded in, say, an included file, these
checks fail, and the use of biblatex is not detected. As a result, only the
first of potentially several \addbibresource{fooN.bib} statements is picked
up, and subsequent bib resources aren't parsed by reftex.

This is doubly unfortunate, because auctex's "style" (black) magic exposes
`LaTeX-bibliography-list', which does pick up the different bib files, and
could be used in reftex when available.
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.