X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=doi-utils.org;fp=doi-utils.org;h=bd899c18920bd92bde0f23b20b6b9b5ec40bbf4a;hp=e806fcf1c7700414931994c787eb7cec7ca5dbe9;hb=0f553e1126f5e858baa106d18e2729c29294fe05;hpb=69185ce836e26bc5636e28e66b6cffc122f05fea diff --git a/doi-utils.org b/doi-utils.org index e806fcf..bd899c1 100644 --- a/doi-utils.org +++ b/doi-utils.org @@ -461,7 +461,7 @@ Now we define a function that fills in that template from the metadata. As different bibtex types share common keys, it is advantageous to separate data extraction from json, and the formatting of the bibtex entry. -#+BEGIN_SRC emacs-lisp :notangle doi-utils.el +#+BEGIN_SRC emacs-lisp :tangle doi-utils.el (defmacro defpar (name &optional value) `(progn (defvar ,name) (setf ,name ,value))) @@ -542,7 +542,7 @@ when the `:type' parameter in the JSON metadata is contained in #+END_SRC With the code generating the bibtex entry in place, we can glue it to the json retrieval code. -#+BEGIN_SRC emacs-lisp :notangle doi-utils.el +#+BEGIN_SRC emacs-lisp :tangle doi-utils.el (defun doi-utils-doi-to-bibtex-string (doi) "return a bibtex entry as a string for the doi. Only articles are currently supported" (let* ((results (doi-utils-get-json-metadata doi))