* reftex-locate-bibliography-files fails
@ 2002-05-20 11:33 Roland Winkler
2002-05-21 6:45 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Roland Winkler @ 2002-05-20 11:33 UTC (permalink / raw)
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 --bindir=/nfs/common/lib/emacs/21.2/bin/i686-Linux --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?
Roland
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: reftex-locate-bibliography-files fails
2002-05-20 11:33 reftex-locate-bibliography-files fails Roland Winkler
@ 2002-05-21 6:45 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2002-05-21 6:45 UTC (permalink / raw)
>>>>> "RW" == Roland Winkler <roland.winkler@physik.uni-erlangen.de> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-21 6:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-20 11:33 reftex-locate-bibliography-files fails Roland Winkler
2002-05-21 6:45 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.