aboutsummaryrefslogtreecommitdiff
path: root/MANUAL.txt
diff options
context:
space:
mode:
authorJohn Muccigrosso <Jmuccigr@users.noreply.github.com>2018-03-13 12:17:46 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2018-03-13 09:17:46 -0700
commitf921b388699dc870d5190c55904d9732e9770874 (patch)
treee936dddfd6e0f063a44dca26afb397e6fcd39195 /MANUAL.txt
parent93228d594e4a2c8f89643b657ae3cb776229abf1 (diff)
downloadpandoc-f921b388699dc870d5190c55904d9732e9770874.tar.gz
Add instructions for background images reveal.js (#4325)
Diffstat (limited to 'MANUAL.txt')
-rw-r--r--MANUAL.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index 168f1784e..1d4c67ecf 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -4384,6 +4384,47 @@ the [Beamer User's Guide] may also be used: `allowdisplaybreaks`,
`allowframebreaks`, `b`, `c`, `t`, `environment`, `label`, `plain`,
`shrink`.
+Background in reveal.js
+-----------------------
+
+Background images can be added to self-contained reveal.js slideshows.
+
+For the same image on every slide, use the reveal.js configuration
+option `parallaxBackgroundImage` either in the YAML metadata block
+or as a command-line variable. You can also set `parallaxBackgroundHorizontal`
+and `parallaxBackgroundVertical` the same way and must also set
+`parallaxBackgroundSize` to have your values take effect.
+
+To set an image for a particular slide, add `{data-background-image="/path/to/image"}`
+to the first slide-level header on the slide (which may even be empty).
+
+In reveal.js's overview mode, the parallaxBackgroundImage will show up
+only on the first slide.
+
+Other background settings also work on individual slides, including
+`data-background-size`, `data-background-repeat`, `data-background-color`,
+`data-transition`, and `data-transition-speed`.
+
+See the [reveal.js documentation](https://github.com/hakimel/reveal.js#slide-backgrounds)
+for more details.
+
+For example:
+
+```
+---
+title: My Slideshow
+parallaxBackgroundImage: /path/to/my/background_image.png
+---
+
+## Slide One
+
+Slide 1 has background_image.png as its background.
+
+## {data-background-image="/path/to/special_image.jpg"}
+
+Slide 2 has a special image for its background, even though the header has no content.
+```
+
Creating EPUBs with pandoc
==========================