From 02c723ed97b1fe1160df8d5d3d16f00adf767bbb Mon Sep 17 00:00:00 2001 From: John Kitchin Date: Tue, 17 Mar 2015 20:54:54 -0400 Subject: [PATCH] removed some commented out code and moved some trailing end parens --- org-ref.el | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) 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.")) -- 2.39.2