Add support for Biblatex' \addbibresource[<options>]{<resouce>}.
There is probably more to do for full Biblatex support, such as
addglobalbib/addsectionbib support.http://www.ctan.org/pkg/biblatex * lisp/textmodes/reftex-parse.el (reftex-locate-bibliography-files): Accept options for bibliography commands. * lisp/textmodes/reftex-vars.el (reftex-bibliography-commands): Add addbibresource. Basic Biblatex support. Signed-off-by: Rüdiger Sonderfeld <[email protected]> --- lisp/textmodes/reftex-parse.el | 4 ++-- lisp/textmodes/reftex-vars.el | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el index 6bfc70c..8d1b3f7 100644 --- a/lisp/textmodes/reftex-parse.el +++ b/lisp/textmodes/reftex-parse.el @@ -359,9 +359,9 @@ of master file." ; "\\(\\`\\|[\n\r]\\)[^%]*\\\\\\(" "\\(^\\)[^%\n\r]*\\\\\\(" (mapconcat 'identity reftex-bibliography-commands "\\|") - "\\){[ \t]*\\([^}]+\\)") nil t) + "\\)\\(\\[.+?\\]\\)?{[ \t]*\\([^}]+\\)") nil t) (setq files - (split-string (reftex-match-string 3) + (split-string (reftex-match-string 4) "[ \t\n\r]*,[ \t\n\r]*"))))) (when files (setq files diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index 47bec5e..3792ab4 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -1112,7 +1112,7 @@ buffer." :group 'reftex) (defcustom reftex-bibliography-commands - '("bibliography" "nobibliography" "setupbibtex\\[.*?database=") + '("bibliography" "nobibliography" "setupbibtex\\[.*?database=" "addbibresource") "LaTeX commands which specify the BibTeX databases to use with the document." :group 'reftex-citation-support :type '(repeat string)) -- 1.8.2.3 _______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
