Function: reftex-arg-cite

reftex-arg-cite is an autoloaded and byte-compiled function defined in reftex-auc.el.gz.

Signature

(reftex-arg-cite OPTIONAL &optional PROMPT DEFINITION)

Documentation

Use reftex-citation or AUCTeX's code to insert a cite-key macro argument.

What is being used depends upon reftex-plug-into-AUCTeX(var)/reftex-plug-into-AUCTeX(fun).

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-auc.el.gz
;;;###autoload
(defun reftex-arg-cite (optional &optional prompt definition)
  "Use `reftex-citation' or AUCTeX's code to insert a cite-key macro argument.
What is being used depends upon `reftex-plug-into-AUCTeX'."
  (let (items)
    (cond
     ((and (not definition) (reftex-plug-flag 3))
      (setq items (or (reftex-citation t) (list ""))))
     (t
      (setq prompt (concat (if optional "(Optional) " "")
			   (if prompt prompt "Add key")
			   " (default none): "))
      (setq items (multi-prompt "," t prompt (LaTeX-bibitem-list)))))
    (apply #'LaTeX-add-bibitems items)
    (TeX-argument-insert (mapconcat #'identity items reftex-cite-key-separator)
			 optional)))