[Top][All Lists]

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

reftex-locate-bibliography-files fails

From: Roland Winkler
Subject: reftex-locate-bibliography-files fails
Date: Mon, 20 May 2002 13:33:32 +0200

In GNU Emacs 21.2.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-04-09 on tfkp12
configured using `configure  --prefix=/nfs/common --libexecdir=/nfs/common/lib 
--mandir=/nfs/common/share/man --infodir=/nfs/common/share/info --with-gcc 
--with-pop --with-x --with-x-toolkit=athena i386-pc-linux'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: nil

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

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

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

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


reply via email to

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