From 41e508d08783f61b35f3f66d2c3b3c3c1e2ec39f Mon Sep 17 00:00:00 2001 From: Anders Johansson Date: Sun, 24 May 2020 16:16:20 +0200 Subject: [PATCH 1/5] Use new paths dist/reveal.js etc. instead of js/reveal.js --- org-re-reveal.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org-re-reveal.el b/org-re-reveal.el index 1c2e531..49952b3 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 -- GitLab From 5e53d05e0beeae88bd599e2543ee075d79ce1527 Mon Sep 17 00:00:00 2001 From: Anders Johansson Date: Sun, 24 May 2020 16:17:05 +0200 Subject: [PATCH 2/5] Remove print css code --- org-re-reveal.el | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/org-re-reveal.el b/org-re-reveal.el index 49952b3..ce32772 100644 --- a/org-re-reveal.el +++ b/org-re-reveal.el @@ -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." -- GitLab From e0da679fdaf13a36d2715f3201c01b28f320f23d Mon Sep 17 00:00:00 2001 From: Anders Johansson Date: Sun, 24 May 2020 17:32:58 +0200 Subject: [PATCH 3/5] Adapt config of theme and transition to 4.0 - Remove 'theme' from config initialization - Disable setting transition from query (getQueryHash is not available when initializing) --- org-re-reveal.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/org-re-reveal.el b/org-re-reveal.el index ce32772..5998962 100644 --- a/org-re-reveal.el +++ b/org-re-reveal.el @@ -1228,10 +1228,9 @@ Otherwise, raise error." (let ((max-scale (string-to-number (plist-get info :reveal-max-scale)))) (if (> max-scale 0) (format "maxScale: %.2f,\n" max-scale) "")) - ;; thems and transitions + ;; transitions (format " -theme: Reveal.getQueryHash().theme, // available themes are in /css/theme -transition: Reveal.getQueryHash().transition || '%s', // see README of reveal.js for options +transition: '%s', transitionSpeed: '%s',\n" (plist-get info :reveal-trans) (plist-get info :reveal-speed)) @@ -1322,7 +1321,7 @@ Use INFO and custom variable `org-re-reveal-root'." ;; Create +
@@ -45,7 +34,7 @@
@@ -107,11 +96,10 @@ const (
- - + - - -
@@ -86,11 +75,10 @@ plugin folder of reveal.js
- - + - - -
@@ -187,11 +176,10 @@ x
- - + +
@@ -165,11 +154,10 @@ that generates this presentation
- - + +
@@ -56,11 +45,10 @@
- - + +
@@ -41,11 +30,10 @@
- - + +
@@ -69,11 +58,10 @@ With text
- - + +
@@ -136,11 +125,10 @@ Hello world!
- - + +
@@ -138,11 +127,10 @@ Hello world!
- - + +
@@ -135,11 +124,10 @@ Hello world!
- - + +
@@ -98,11 +87,10 @@ Default background again.
- - + +
@@ -41,11 +30,10 @@
- - +