@@ -2155,16+2155,22 @@ We will want to generate formatting functions for each citation type. The reason
We create the links by mapping the function onto the list of defined link types.
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
We create the links by mapping the function onto the list of defined link types.
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
+;;;###autoload
(defun org-ref-format-citation-description (desc)
(defun org-ref-format-citation-description (desc)
- "return formatted citation description. if the cite link has a description, it is optional text for the citation command. You can specify pre and post text by separating these with ::."
+ "Return formatted citation description. If the cite link has a
+description, it is optional text for the citation command. You
+can specify pre and post text by separating these with ::, for
We need a convenient method to insert links. In reftex you use the keystroke C-c ], which gives you a minibuffer to search the bibtex files from. This function is bound to that same keystroke here [[*org-mode%20/%20reftex%20setup][org-mode / reftex setup]]. This function will append to a cite link if you call it while on a link.
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
*** org-ref-insert-cite-link
We need a convenient method to insert links. In reftex you use the keystroke C-c ], which gives you a minibuffer to search the bibtex files from. This function is bound to that same keystroke here [[*org-mode%20/%20reftex%20setup][org-mode / reftex setup]]. This function will append to a cite link if you call it while on a link.
@@ -2274,6+2283,7 @@ Alternatively, you may shortcut the org-machinery with this command. You will be
org-mode already defines a store link function for bibtex entries. It does not store the link I want though, it only stores a brief citation of the entry. I want a citation link. Here is a function to do that.
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
org-mode already defines a store link function for bibtex entries. It does not store the link I want though, it only stores a brief citation of the entry. I want a citation link. Here is a function to do that.
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
+;;;###autoload
(defun org-ref-store-bibtex-entry-link ()
"Save a citation link to the current bibtex entry. Saves in the default link type."
(interactive)
(defun org-ref-store-bibtex-entry-link ()
"Save a citation link to the current bibtex entry. Saves in the default link type."
(interactive)
@@ -2503,6+2513,7 @@ This assumes you are in an article."
** open pdf from bibtex
We bind this to a key here: [[*key%20bindings%20for%20utilities][key bindings for utilities]].
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
** open pdf from bibtex
We bind this to a key here: [[*key%20bindings%20for%20utilities][key bindings for utilities]].
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
+;;;###autoload
(defun org-ref-open-bibtex-pdf ()
"open pdf for a bibtex entry, if it exists. assumes point is in
the entry of interest in the bibfile. but does not check that."
(defun org-ref-open-bibtex-pdf ()
"open pdf for a bibtex entry, if it exists. assumes point is in
the entry of interest in the bibfile. but does not check that."
@@ -2949,6+2960,7 @@ Here we develop a similar idea, but instead of an org-buffer with links, we crea
Now, we have a functions for candidates, we can make helm sources for each one, and then run a helm command to view them.
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
Now, we have a functions for candidates, we can make helm sources for each one, and then run a helm command to view them.
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
+;;;###autoload
(defun org-ref ()
"Opens a helm interface to actions for org-ref.
Shows bad citations, ref links and labels"
(defun org-ref ()
"Opens a helm interface to actions for org-ref.
Shows bad citations, ref links and labels"
@@ -3169,7+3181,6 @@ I prefer citations in chronological order within a grouping. These functions sor
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
(defun org-ref-get-citation-year (key)
"get the year of an entry with key. Returns year as a string."
#+BEGIN_SRC emacs-lisp :tangle org-ref.el
(defun org-ref-get-citation-year (key)
"get the year of an entry with key. Returns year as a string."
If KEYWORDS is a list, it is converted to a comma-separated string. The KEYWORDS are added to the beginning of the field. Otherwise KEYWORDS should be a string of comma-separate keywords."
If KEYWORDS is a list, it is converted to a comma-separated string. The KEYWORDS are added to the beginning of the field. Otherwise KEYWORDS should be a string of comma-separate keywords."
@@ -3470,7+3482,7 @@ If KEYWORDS is a list, it is converted to a comma-separated string. The KEYWORDS