diff options
| -rw-r--r-- | lisp/textmodes/reftex-cite.el | 5 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-dcr.el | 12 |
2 files changed, 12 insertions, 5 deletions
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el index 9d45f9aba79..79f1913c9f2 100644 --- a/lisp/textmodes/reftex-cite.el +++ b/lisp/textmodes/reftex-cite.el | |||
| @@ -763,7 +763,10 @@ in order to only add another reference in the same cite command." | |||
| 763 | (setq format "%l")) | 763 | (setq format "%l")) |
| 764 | 764 | ||
| 765 | ((and (stringp macro) | 765 | ((and (stringp macro) |
| 766 | (string-match "\\`\\\\cite\\|cite\\'" macro)) | 766 | ;; Match also commands from biblatex ending with `s' |
| 767 | ;; (\parencites) or `*' (\parencite*) and `texts?' | ||
| 768 | ;; (\footcitetext and \footcitetexts). | ||
| 769 | (string-match "\\`\\\\cite\\|cite\\([s*]\\|texts?\\)?\\'" macro)) | ||
| 767 | ;; We are already inside a cite macro | 770 | ;; We are already inside a cite macro |
| 768 | (if (or (not arg) (not (listp arg))) | 771 | (if (or (not arg) (not (listp arg))) |
| 769 | (setq format | 772 | (setq format |
diff --git a/lisp/textmodes/reftex-dcr.el b/lisp/textmodes/reftex-dcr.el index 8973e5dc1a2..95a33077c71 100644 --- a/lisp/textmodes/reftex-dcr.el +++ b/lisp/textmodes/reftex-dcr.el | |||
| @@ -60,11 +60,15 @@ to the functions `reftex-view-cr-cite' and `reftex-view-cr-ref'." | |||
| 60 | (setq reftex-call-back-to-this-buffer (current-buffer)) | 60 | (setq reftex-call-back-to-this-buffer (current-buffer)) |
| 61 | 61 | ||
| 62 | (cond | 62 | (cond |
| 63 | ((string-match "\\`\\\\cite\\|cite\\*?\\'\\|bibentry" macro) | 63 | ((string-match "\\`\\\\cite\\|cite\\([s*]\\|texts?\\)?\\'\\|bibentry" macro) |
| 64 | ;; A citation macro: search for bibitems or BibTeX entries | 64 | ;; A citation macro: search for bibitems or BibTeX entries. |
| 65 | ;; Match also commands from biblatex ending with `s' | ||
| 66 | ;; (\parencites) or `*' (\parencite*) and `texts?' | ||
| 67 | ;; (\footcitetext and \footcitetexts). | ||
| 65 | (setq dw (reftex-view-cr-cite arg key auto-how))) | 68 | (setq dw (reftex-view-cr-cite arg key auto-how))) |
| 66 | ((string-match "\\`\\\\ref\\|ref\\(range\\)?\\*?\\'" macro) | 69 | ((string-match "\\`\\\\ref\\|ref\\(range\\|s\\)?\\*?\\'" macro) |
| 67 | ;; A reference macro: search for labels | 70 | ;; A reference macro: search for labels. |
| 71 | ;; Match also commands from cleveref ending with `s' (\namecrefs). | ||
| 68 | (setq dw (reftex-view-cr-ref arg key auto-how))) | 72 | (setq dw (reftex-view-cr-ref arg key auto-how))) |
| 69 | (auto-how nil) ;; No further action for automatic display (speed) | 73 | (auto-how nil) ;; No further action for automatic display (speed) |
| 70 | ((or (equal macro "\\label") | 74 | ((or (equal macro "\\label") |