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


Message #11 received at 64768 <at> debbugs.gnu.org (full text, mbox):

From: "Philipp G. Haselwarter" <philipp <at> haselwarter.org>
To: Arash Esbati <arash <at> gnu.org>
Cc: 64768 <at> debbugs.gnu.org
Subject: Re: bug#64768: biblatex detection in reftex is too naive, multiple
 bib files are problematic
Date: Fri, 28 Jul 2023 11:58:32 +0200
[Message part 1 (text/plain, inline)]
Hi Arash,

In main.tex, I have the line "\input{mypreamble}", and in mypreamble.tex,
there's a line with "\usepackage{biblatex}". I also have
several "\addbibresource{foo.bib}", "\addbibresource{bar.bib}", etc, either
in main.tex or in mypreamble.tex . I would want reftex to be aware of the
references in foo.bib and bar.bib whenever main.tex is set as TeX-master,
i.e. either while editing main.tex directly or while editing
some-section.tex, where some-section.tex sets TeX-master to main.tex.

Best,
Philipp

On Thu, 27 Jul 2023 at 21:10, Arash Esbati <arash <at> gnu.org> wrote:

> "Philipp G. Haselwarter" <philipp <at> haselwarter.org> writes:
>
> > 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.
>
> Can you please describe what you exactly mean with
> '\usepackage{biblatex} is an included file'?  I'd like to understand
> your setup.
>
> Best, Arash
>
[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.