(setq format "%l"))
((and (stringp macro)
- (string-match "\\`\\\\cite\\|cite\\'" macro))
+ ;; Match also commands from biblatex ending with `s'
+ ;; (\parencites) or `*' (\parencite*) and `texts?'
+ ;; (\footcitetext and \footcitetexts).
+ (string-match "\\`\\\\cite\\|cite\\([s*]\\|texts?\\)?\\'" macro))
;; We are already inside a cite macro
(if (or (not arg) (not (listp arg)))
(setq format
(setq reftex-call-back-to-this-buffer (current-buffer))
(cond
- ((string-match "\\`\\\\cite\\|cite\\*?\\'\\|bibentry" macro)
- ;; A citation macro: search for bibitems or BibTeX entries
+ ((string-match "\\`\\\\cite\\|cite\\([s*]\\|texts?\\)?\\'\\|bibentry" macro)
+ ;; A citation macro: search for bibitems or BibTeX entries.
+ ;; Match also commands from biblatex ending with `s'
+ ;; (\parencites) or `*' (\parencite*) and `texts?'
+ ;; (\footcitetext and \footcitetexts).
(setq dw (reftex-view-cr-cite arg key auto-how)))
- ((string-match "\\`\\\\ref\\|ref\\(range\\)?\\*?\\'" macro)
- ;; A reference macro: search for labels
+ ((string-match "\\`\\\\ref\\|ref\\(range\\|s\\)?\\*?\\'" macro)
+ ;; A reference macro: search for labels.
+ ;; Match also commands from cleveref ending with `s' (\namecrefs).
(setq dw (reftex-view-cr-ref arg key auto-how)))
(auto-how nil) ;; No further action for automatic display (speed)
((or (equal macro "\\label")