X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=org-ref.org;h=97d047247574cdef8d8697ad4fcbd5c9c28c55f9;hp=8f85b1e4d90ef8a234b3f180f9b3892f0a7efa41;hb=97a06ccf1e42682d284f7780366ce381d54733a0;hpb=1cd608be0369a4af9659000d817326b630691483 diff --git a/org-ref.org b/org-ref.org index 8f85b1e..97d0472 100644 --- a/org-ref.org +++ b/org-ref.org @@ -568,7 +568,7 @@ We use a link for the bibliography so that we can click on it to open the biblio ((eq format 'html) (org-ref-get-html-bibliography)) ((eq format 'latex) ;; write out the latex bibliography command - (format "\\bibliography{%s}" (replace-regexp-in-string "\\.bib" "" keyword)))))) + (format "\\bibliography{%s}" (replace-regexp-in-string "\\.bib" "" (expand-file-name keyword))))))) #+END_SRC #+BEGIN_SRC emacs-lisp :tangle org-ref.el @@ -579,9 +579,9 @@ We use a link for the bibliography so that we can click on it to open the biblio ((eq format 'org) (org-ref-get-org-bibliography)) ((eq format 'html) (org-ref-get-html-bibliography)) ((eq format 'latex) - ;; write out the latex bibliography command - (format "\\printbibliography" keyword)) -))) + ;; write out the biblatex bibliography command + "\\printbibliography")) +)) #+END_SRC We also create a bibliographystyle link. There is nothing to do on clicking here, and we create it for consistency. This sets the style for latex export, so use something appropriate there, e.g. unsrt, plain, plainnat, ... @@ -1721,7 +1721,12 @@ construct the heading by hand." (goto-char (point-min)) ;; put new entry in notes if we don't find it. - (unless (re-search-forward (format ":Custom_ID: %s$" key) nil 'end) + (if (re-search-forward (format ":Custom_ID: %s$" key) nil 'end) + (progn + (org-show-entry) + (outline-previous-visible-heading 1) + (recenter-top-bottom 0)) + ;; no entry found, so add one (insert (format "\n** TODO %s - %s" year title)) (insert (format" :PROPERTIES: