diff --git a/contrib/lisp/org-exp-bibtex.el b/contrib/lisp/org-exp-bibtex.el index de3d662..9d2569f 100644 --- a/contrib/lisp/org-exp-bibtex.el +++ b/contrib/lisp/org-exp-bibtex.el @@ -72,7 +72,7 @@ (opt (org-exp-bibtex-options-to-plist (match-string 3)))) (replace-match (cond - ((eq backend 'html) ;; We are exporting to HTML + ((eq org-export-current-backend 'html) ;; We are exporting to HTML (let (extra-args cite-list end-hook tmp-files) (dolist (elt opt) (when (equal "option" (car elt)) @@ -106,12 +106,12 @@ (while (re-search-forward "
" nil t) (replace-match "
" t t)) (concat "\n#+BEGIN_HTML\n
\n" (buffer-string) "\n
\n#+END_HTML\n")))) - ((eq backend 'latex) ;; Latex export + ((eq org-export-current-backend 'latex) ;; Latex export (concat "\n#+LATEX: \\bibliographystyle{" style "}" "\n#+LATEX: \\bibliography{" file "}\n"))) t t))) ;; Convert cites to links in html - (when (eq backend 'html) + (when (eq org-export-current-backend 'html) ;; Split citation commands with multiple keys (org-exp-bibtex-docites (lambda () @@ -130,7 +130,7 @@ (save-excursion (save-match-data (goto-char (point-min)) - (when (eq backend 'html) + (when (eq org-export-current-backend 'html) (while (re-search-forward "\\\\cite{\\([^}\n]+\\)}" nil t) (apply fun nil))))))