diff --git a/Readme.org b/Readme.org index d1ff161..3ad9915 100644 --- a/Readme.org +++ b/Readme.org @@ -42,6 +42,7 @@ - [[Single Image Background][Single Image Background]]([[https://github.com/yjwen/org-reveal#single-image-background][gh]]) - [[Repeating Image Background][Repeating Image Background]]([[https://github.com/yjwen/org-reveal#repeating-image-background][gh]]) - [[Title Slide Background Image][Title Slide Background Image]]([[https://github.com/yjwen/org-reveal#title-slide-background-image][gh]]) + - [[Table of Contents Slide Background Image][Table of Contents Slide Background Image]]([[https://github.com/yjwen/org-reveal#table-of-contents-slide-background-image][gh]]) - [[Background for all slides][Background for all slides]]([[https://github.com/yjwen/org-reveal#background-for-all-slides][gh]]) #+REVEAL: split:t - [[Slide Size][Slide Size]]([[https://github.com/yjwen/org-reveal#slide-size][gh]]) @@ -387,6 +388,15 @@ Available transitions are: default|cube|page|concave|zoom|linear|fade|none. * =REVEAL_TITLE_SLIDE_BACKGROUND_SIZE=: HTML size specification, e.g. ~200px~. * =REVEAL_TITLE_SLIDE_BACKGROUND_REPEAT=: Set to ~repeat~ to repeat the image. * =REVEAL_TITLE_SLIDE_BACKGROUND_OPACITY=: Set the background opacity. +*** Table of Contents Slide Background Image + + To set the (automatically generated) table of contents slide's background + image, please specify the following options: + + * =REVEAL_TOC_SLIDE_BACKGROUND=: A URL to the background image. + * =REVEAL_TOC_SLIDE_BACKGROUND_SIZE=: HTML size specification, e.g. ~200px~. + * =REVEAL_TOC_SLIDE_BACKGROUND_REPEAT=: Set to ~repeat~ to repeat the image. + * =REVEAL_TOC_SLIDE_BACKGROUND_OPACITY=: Set the background opacity. *** Background for all slides You can also configure the background for all slides in the presentation with: diff --git a/ox-reveal.el b/ox-reveal.el index 3572aaa..b9bade6 100644 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -73,6 +73,12 @@ (:reveal-title-slide-background-repeat "REVEAL_TITLE_SLIDE_BACKGROUND_REPEAT" nil nil t) (:reveal-title-slide-background-transition "REVEAL_TITLE_SLIDE_BACKGROUND_TRANSITION" nil nil t) (:reveal-title-slide-background-opacity "REVEAL_TITLE_SLIDE_BACKGROUND_OPACITY" nil nil t) + (:reveal-toc-slide-background "REVEAL_TOC_SLIDE_BACKGROUND" nil nil t) + (:reveal-toc-slide-background-size "REVEAL_TOC_SLIDE_BACKGROUND_SIZE" nil nil t) + (:reveal-toc-slide-background-position "REVEAL_TOC_SLIDE_BACKGROUND_POSITION" nil nil t) + (:reveal-toc-slide-background-repeat "REVEAL_TOC_SLIDE_BACKGROUND_REPEAT" nil nil t) + (:reveal-toc-slide-background-transition "REVEAL_TOC_SLIDE_BACKGROUND_TRANSITION" nil nil t) + (:reveal-toc-slide-background-opacity "REVEAL_TOC_SLIDE_BACKGROUND_OPACITY" nil nil t) (:reveal-default-slide-background "REVEAL_DEFAULT_SLIDE_BACKGROUND" nil nil t) (:reveal-default-slide-background-size "REVEAL_DEFAULT_SLIDE_BACKGROUND_SIZE" nil nil t) (:reveal-default-slide-background-position "REVEAL_DEFAULT_SLIDE_BACKGROUND_POSITION" nil nil t) @@ -677,9 +683,28 @@ dependencies: [ "Build a slide of table of contents." (let ((toc (org-html-toc depth info))) (when toc - (let ((toc-slide-with-header (plist-get info :reveal-slide-global-header)) + (let ((toc-slide-background (plist-get info :reveal-toc-slide-background)) + (toc-slide-background-size (plist-get info :reveal-toc-slide-background-size)) + (toc-slide-background-position (plist-get info :reveal-toc-slide-background-position)) + (toc-slide-background-repeat (plist-get info :reveal-toc-slide-background-repeat)) + (toc-slide-background-transition (plist-get info :reveal-toc-slide-background-transition)) + (toc-slide-background-opacity (plist-get info :reveal-toc-slide-background-opacity)) + (toc-slide-with-header (plist-get info :reveal-slide-global-header)) (toc-slide-with-footer (plist-get info :reveal-slide-global-footer))) - (concat "
\n" + (concat "
" (when toc-slide-with-header (let ((header (plist-get info :reveal-slide-header))) (when header (format "
%s
\n" header))))