Add support for more reveal.js slideshow settings: rolling links, keyboard on/off switch, overview on/off, and transition speed.

This commit is contained in:
Constantine Vetoshev 2013-06-07 16:36:41 -07:00
parent 185fc47f73
commit 6a0b641ee5
2 changed files with 39 additions and 6 deletions

View File

@ -2,7 +2,7 @@
#+Author: Yujie Wen
#+Email: yjwen.ty@gmail.com
#+OPTIONS: reveal_center:t reveal_progress:t reveal_history:nil reveal_control:t reveal_mathjax:t num:nil
#+OPTIONS: reveal_center:t reveal_progress:t reveal_history:nil reveal_control:t reveal_mathjax:t reveal_rolling_links:t reveal_keyboard:t reveal_overview:t num:nil
#+REVEAL_TRANS: cube
#+REVEAL_THEME: moon
#+REVEAL_HLEVEL: 2
@ -160,7 +160,7 @@ $ git clone https://github.com/yjwen/org-reveal.git
** Select Theme and Transition
Themes and transition styles are set globally throughout the whole
file by setting options =REVEAL_THEME= and =REVEAL_TRANS=.
file by setting options =REVEAL_THEME=, =REVEAL_TRANS=, and =REVEAL_SPEED=.
For an example, please check the heading part of this document.
@ -221,10 +221,10 @@ $ git clone https://github.com/yjwen/org-reveal.git
- =#+OPTIONS= tags:\\
=reveal_control=, =reveal_progress=, =reveal_history=,
=reveal_center=
=reveal_center=, =reveal_rolling_links=, =reveal_keyboard=, =reveal_overview=
- Custom variables:\\
=org-reveal-control=, =org-reveal-progress=,
=org-reveal-history=, =org-reveal-center=
=org-reveal-history=, =org-reveal-center=, =org-reveal-rolling-links=, =org-reveal-keyaboard, =org-reveal-overview=
For an example, please refer to the heading part of this document.

View File

@ -43,8 +43,12 @@
(:reveal-progress nil "reveal_progress" org-reveal-progress t)
(:reveal-history nil "reveal_history" org-reveal-history t)
(:reveal-center nil "reveal_center" org-reveal-center t)
(:reveal-rolling-links nil "reveal_rolling_links" org-reveal-rolling-links t)
(:reveal-keyboard nil "reveal_keyboard" org-reveal-keyboard t)
(:reveal-overview nil "reveal_overview" org-reveal-overview t)
(:reveal-root "REVEAL_ROOT" nil org-reveal-root t)
(:reveal-trans "REVEAL_TRANS" nil org-reveal-transition t)
(:reveal-speed "REVEAL_SPEED" nil org-reveal-transition-speed t)
(:reveal-theme "REVEAL_THEME" nil org-reveal-theme t)
(:reveal-hlevel "REVEAL_HLEVEL" nil nil t)
(:reveal-mathjax nil "reveal_mathjax" org-reveal-mathjax t)
@ -99,6 +103,12 @@ can be include."
:group 'org-export-reveal
:type 'string)
(defcustom org-reveal-transition-speed
"default"
"Reveal transistion speed."
:group 'org-export-reveal
:type 'string)
(defcustom org-reveal-theme
"default"
"Reveal theme."
@ -125,6 +135,21 @@ can be include."
:group 'org-export-reveal
:type 'boolean)
(defcustom org-reveal-rolling-links t
"Reveal use rolling links."
:group 'org-export-reveal
:type 'boolean)
(defcustom org-reveal-keyboard t
"Reveal use keyboard navigation."
:group 'org-export-reveal
:type 'boolean)
(defcustom org-reveal-overview t
"Reveal show overview."
:group 'org-export-reveal
:type 'boolean)
(defcustom org-reveal-mathjax nil
"Enable MathJax script."
:group 'org-export-reveal
@ -289,14 +314,22 @@ custom variable `org-reveal-root'."
progress: %s,
history: %s,
center: %s,
rollingLinks: %s,
keyboard: %s,
overview: %s,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || '%s', // default/cube/page/concave/zoom/linear/fade/none\n"
transition: Reveal.getQueryHash().transition || '%s', // default/cube/page/concave/zoom/linear/fade/none
transitionSpeed: '%s',\n"
(if (plist-get info :reveal-control) "true" "false")
(if (plist-get info :reveal-progress) "true" "false")
(if (plist-get info :reveal-history) "true" "false")
(if (plist-get info :reveal-center) "true" "false")
(plist-get info :reveal-trans))
(if (plist-get info :reveal-rolling-links) "true" "false")
(if (plist-get info :reveal-keyboard) "true" "false")
(if (plist-get info :reveal-overview) "true" "false")
(plist-get info :reveal-trans)
(plist-get info :reveal-speed))
(format "
// Optional libraries used to extend on reveal.js
dependencies: [