Function: TeX-arg-cite
TeX-arg-cite is a byte-compiled function defined in latex.el.
Signature
(TeX-arg-cite OPTIONAL &optional PROMPT DEFINITION)
Documentation
Prompt for a BibTeX citation with completion.
If OPTIONAL is non-nil, insert the resulting value as an optional argument, otherwise as a mandatory one. Use PROMPT as the prompt string. DEFINITION is unused.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
;; Why is DEFINITION unused?
(defun TeX-arg-cite (optional &optional prompt _definition)
"Prompt for a BibTeX citation with completion.
If OPTIONAL is non-nil, insert the resulting value as an optional
argument, otherwise as a mandatory one. Use PROMPT as the prompt
string. DEFINITION is unused."
(let ((items (multi-prompt "," t (TeX-argument-prompt optional prompt "Key")
(LaTeX-bibitem-list))))
(apply #'LaTeX-add-bibitems items)
(TeX-argument-insert (mapconcat #'identity items ",") optional)))