X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=org-ref.el;h=8eb3fff6290b60bc62314be8e10cd275f345fd5f;hp=aec69c79a3bbfe9390018725ddcebde8034919af;hb=02c723ed97b1fe1160df8d5d3d16f00adf767bbb;hpb=1b9bccec1f7b2ed242dd4e0abd4c43fa18b355e4;ds=sidebyside diff --git a/org-ref.el b/org-ref.el index aec69c7..8eb3fff 100644 --- a/org-ref.el +++ b/org-ref.el @@ -626,6 +626,7 @@ Format according to the type in `org-ref-bibliography-entry-format'." (setq link-string-beginning (match-beginning 0)) (setq link-string-end (match-end 0))) + ;; Make sure point is in the link-path. (if (< cp link-string-beginning) (goto-char link-string-beginning)) ;; We set the reftex-default-bibliography @@ -726,20 +727,11 @@ Format according to the type in `org-ref-bibliography-entry-format'." ((eq format 'html) (org-ref-get-html-bibliography)) ((eq format 'latex) ;; write out the latex bibliography command - -; (format "{\\setbox0\\vbox{\\bibliography{%s}}}" -; (replace-regexp-in-string "\\.bib" "" (mapconcat 'identity -; (mapcar 'expand-file-name -; (split-string keyword ",")) -; ","))) - (format "\\nobibliography{%s}" (replace-regexp-in-string "\\.bib" "" (mapconcat 'identity (mapcar 'expand-file-name (split-string keyword ",")) - ","))) - - )))) + ","))))))) (org-add-link-type "printbibliography" (lambda (arg) (message "Nothing implemented for clicking here.")) @@ -749,8 +741,7 @@ Format according to the type in `org-ref-bibliography-entry-format'." ((eq format 'html) (org-ref-get-html-bibliography)) ((eq format 'latex) ;; write out the biblatex bibliography command - "\\printbibliography")) -)) + "\\printbibliography")))) (org-add-link-type "bibliographystyle" (lambda (arg) (message "Nothing implemented for clicking here."))