[Top][All Lists]

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

Re: reftex-locate-bibliography-files fails

From: Carsten Dominik
Subject: Re: reftex-locate-bibliography-files fails
Date: 21 May 2002 08:45:54 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley)

>>>>> "RW" == Roland Winkler <address@hidden> writes:

RW> The regexp in reftex-locate-bibliography-files for matching
RW> `\bibliography{x}' in a LaTeX file fails when `\bibliography{x}' is
RW> surrounded by extra braces like '{\bibliography{x}}'. However, in
RW> certain cases these extra braces are required to make chapterbib.sty
RW> work, see the documentation of chapterbib.sty. As the documentation
RW> of reftex.el says that reftex.el works with chapterbib.sty, I
RW> suggest that the regexp matching in reftex-locate-bibliography-files
RW> should support '{\bibliography{x}}'.

I'll look into it.

RW> Remark: I really do not understand the purpose of the first
RW> parenthesized part in

RW> "\\(\\`\\|[\n\r]\\)[ \t]*\\\\\\(no\\)?bibliography{[ \t]*\\([^}]+\\)"

RW> Maybe there are situations when something like this is necessary.
RW> But isn't this regexp much too restrictive?

For efficiency reasons, RefTeX requires the bibliography statement
first on a line.  Normally this is no problem, and it ensures that the
statement has not been commented out.

- Carsten

reply via email to

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