emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 1addc62 30/57: Use RefTeX for multiple citations


From: Tassilo Horn
Subject: [elpa] externals/auctex 1addc62 30/57: Use RefTeX for multiple citations in biblatex
Date: Wed, 11 Jan 2017 18:01:39 +0000 (UTC)

branch: externals/auctex
commit 1addc62fc10e52ff29e64486a3754627ac2c1495
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Use RefTeX for multiple citations in biblatex
    
    * style/biblatex.el (LaTeX-arg-biblatex-cites): Use RefTeX when
      available.  Suggested by Arash Esbati.
---
 style/biblatex.el |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/style/biblatex.el b/style/biblatex.el
index 9ec2b02..4231509 100644
--- a/style/biblatex.el
+++ b/style/biblatex.el
@@ -206,9 +206,15 @@ for citation keys."
             (TeX-argument-insert
              (TeX-read-string (TeX-argument-prompt t nil "Postnote"))
              (equal prenote ""))))
-      (setq items (TeX-completing-read-multiple
-                  (TeX-argument-prompt optional prompt "Key")
-                  (LaTeX-bibitem-list)))
+      (setq items (if (and (fboundp 'reftex-citation)
+                          (fboundp 'reftex-plug-flag)
+                          (reftex-plug-flag 3))
+                     ;; Use RefTeX when enabled.
+                     (reftex-citation t)
+                   ;; Multiple citation keys in each argument are allowed.
+                   (TeX-completing-read-multiple
+                    (TeX-argument-prompt optional prompt "Key(s)")
+                    (LaTeX-bibitem-list))))
       (apply 'LaTeX-add-bibitems items)
       ;; If input is empty, insert an empty group only the first time, when
       ;; `noinsert' flag is nil.



reply via email to

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