]> git.donarmstrong.com Git - org-ref.git/commitdiff
removed some commented out code
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Wed, 18 Mar 2015 00:54:54 +0000 (20:54 -0400)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Wed, 18 Mar 2015 00:54:54 +0000 (20:54 -0400)
and moved some trailing end parens

org-ref.el

index aec69c79a3bbfe9390018725ddcebde8034919af..8eb3fff6290b60bc62314be8e10cd275f345fd5f 100644 (file)
@@ -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)))
 
                       (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
                     (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
                      ((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 ","))
                       (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."))
 
 (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
                       ((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."))
 
 (org-add-link-type "bibliographystyle"
                   (lambda (arg) (message "Nothing implemented for clicking here."))