Function: bib-find
bib-find is an interactive and byte-compiled function defined in
bib-cite.el.
Signature
(bib-find)
Documentation
Edit BibTeX citation or find matching \ref or \label command under point.
For multi-entry cite commands, the cursor should be on the actual cite key
desired (otherwise a random entry will be selected).
e.g.: \cite{Wadhams81,Bourke.et.al87,SchneiderBudeus94}
^Display-this-citation
If text under cursor is a \ref command, then point is moved to its matching
\label command.
If text under cursor is a \label command, then point is moved to the first matching \ref command.
The user is prompted for a \label or \ref is nothing suitable is found under the cursor. The first prompt is for a label. If you answer with an empty string, a second prompt for a ref will be given.
A TAGS file is created and used for multi-file documents under auctex.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/bib-cite.el
(defun bib-find ()
"Edit BibTeX citation or find matching \\ref or \\label command under point.
For multi-entry cite commands, the cursor should be on the actual cite key
desired (otherwise a random entry will be selected).
e.g.: \\cite{Wadhams81,Bourke.et.al87,SchneiderBudeus94}
^Display-this-citation
If text under cursor is a \\ref command, then point is moved to its matching
\\label command.
If text under cursor is a \\label command, then point is moved to the first
matching \\ref command.
The user is prompted for a \\label or \\ref is nothing suitable is found under
the cursor. The first prompt is for a label. If you answer with an empty
string, a second prompt for a ref will be given.
A TAGS file is created and used for multi-file documents under auctex."
(interactive)
(let ((kind (bib-cite--kind)))
(cond
;; reftex doesn't handle label->ref
((and bib-cite-use-reftex-view-crossref
(memq kind '(ref cite)))
(require 'reftex)
(reftex-view-crossref t))
((eq kind 'cite)
(bib-edit-citation))
(t
(bib-find-label)))))