From 4a6d64c999a0155e3e1790b632bee580a476486a Mon Sep 17 00:00:00 2001 From: John Kitchin Date: Fri, 19 Dec 2014 15:16:26 -0500 Subject: [PATCH 1/1] added summary citation back to menu. removed : from end. --- org-ref.org | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/org-ref.org b/org-ref.org index 28ea7d8..23c0250 100644 --- a/org-ref.org +++ b/org-ref.org @@ -1554,11 +1554,20 @@ Provides a menu of context sensitive actions. If the bibtex entry has a pdf, you ;; construct menu string as a message (message (concat + (let* ((results (org-ref-get-bibtex-key-and-file)) + (key (car results)) + (bibfile (cdr results))) + (save-excursion + (with-temp-buffer + (insert-file-contents bibfile) + (bibtex-search-entry key) + (org-ref-bib-citation)))) + "\n" (mapconcat (lambda (tup) (concat "[" (elt tup 0) "]" (elt tup 1) " ")) - org-ref-cite-menu-funcs "") ": ")) + org-ref-cite-menu-funcs ""))) ;; get the input (let* ((input (read-char-exclusive)) (choice (assoc @@ -1571,6 +1580,9 @@ Provides a menu of context sensitive actions. If the bibtex entry has a pdf, you 2)))))) #+END_SRC +#+RESULTS: +: org-ref-cite-onclick-minibuffer-menu + *** A function to format a cite link Next, we define a formatting function for the cite link. This is done so that the cite link definition is very short, and easy to change. You just need to specify the functions in the definition. This function is deprecated. The formatting is defined later automatically. -- 2.39.2