From 74d2da38b565cb1358b0a5ed14222729e6e436cd Mon Sep 17 00:00:00 2001 From: John Kitchin Date: Tue, 23 Sep 2014 12:20:42 -0400 Subject: [PATCH] expand bibliography link filename --- org-ref.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org-ref.org b/org-ref.org index 8f85b1e..6810435 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, ... -- 2.39.2