diff --git a/ox-reveal.el b/ox-reveal.el index 3672343..f7092c8 100644 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -959,6 +959,17 @@ Extract and set `attr_html' to plain-list tag attributes." tag ))) +(defun org-reveal--insert-bibliography (&optional ignore) + "Create a slide for the bibliography from org-ref, if it exists" + (if (fboundp 'org-ref-get-html-bibliography) + (progn + ;; here we could employ other bibliographic engines + (fset 'bibliography 'org-ref-get-html-bibliography) + (when (funcall 'bibliography) + (concat "
" + (funcall 'bibliography) + "
"))))) + (defun org-reveal--build-pre/postamble (type info) "Return document preamble or postamble as a string, or nil." (let ((section (plist-get info (intern (format ":reveal-%s" type)))) @@ -1155,6 +1166,7 @@ info is a plist holding export options." (when footer (format "
%s
\n" footer)))) "\n")))) contents + (org-reveal--insert-bibliography) " \n" (org-reveal--build-pre/postamble 'postamble info)