diff --git a/org-re-reveal.el b/org-re-reveal.el index 1c2e531613ba4a41dc784707d32a6a5d995f1bb5..164e5c478905ce3f2cf97c79a8165773c0b583fb 100644 --- a/org-re-reveal.el +++ b/org-re-reveal.el @@ -223,12 +223,12 @@ browsing that file, subtree export to file." :set #'org-re-reveal-define-menu) (defcustom org-re-reveal-root "./reveal.js" - "Specify root directory of reveal.js containing js/reveal.js." + "Specify root directory of reveal.js containing dist/reveal.js." :group 'org-export-re-reveal :type '(radio (const :tag "Online at https://revealjs.com" "https://revealjs.com") (string :tag "Other directory path"))) -(defcustom org-re-reveal-script-files '("lib/js/head.min.js" "js/reveal.js") +(defcustom org-re-reveal-script-files '("dist/reveal.js") "Specify files to initialize reveal.js. Note that file names here are relative under `org-re-reveal-root'. On 2018-10-04, head.min.js was removed on the dev branch of reveal.js. @@ -1038,9 +1038,9 @@ Reveal.addEventListener( 'slidechanged', function( event ) { (defun org-re-reveal-stylesheets (info) "Return HTML code for reveal stylesheets using INFO and `org-re-reveal-root'." (let* ((root-path (file-name-as-directory (plist-get info :reveal-root))) - (reveal-css (concat root-path "css/reveal.css")) + (reveal-css (concat root-path "dist/reveal.css")) (theme (plist-get info :reveal-theme)) - (theme-css (concat root-path "css/theme/" theme ".css")) + (theme-css (concat root-path "dist/theme/" theme ".css")) (extra-css (plist-get info :reveal-extra-css)) (in-single-file (plist-get info :reveal-single-file))) (concat @@ -1068,22 +1068,7 @@ Reveal.addEventListener( 'slidechanged', function( event ) { "") ;; Include CSS for klipse if necessary - (org-re-reveal--klipsify-header info) - - ;; print-pdf - (if in-single-file "" - (format "\n - -" - root-path))))) + (org-re-reveal--klipsify-header info)))) (defun org-re-reveal-mathjax-scripts (info) "Return HTML code for declaring MathJax scripts for INFO." @@ -1143,6 +1128,12 @@ This includes reveal.js libraries in `org-re-reveal-script-files' under (extra-script-elements (cl-remove-if-not (lambda (s) (string-prefix-p " +