summaryrefslogtreecommitdiffstats
path: root/default.revealjs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-06-29 21:55:23 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-06-29 21:55:23 -0700
commit70a4509a85149edb486789d0676f2358850b09ca (patch)
tree1d2ddc3942c2702aa7f2c7ed96187899305cd833 /default.revealjs
parent1ebb4f0b555004193380a8ba89331e043e3083ff (diff)
downloadpandoc-templates-70a4509a85149edb486789d0676f2358850b09ca.tar.gz
pandoc-templates-70a4509a85149edb486789d0676f2358850b09ca.zip
Updated templates for pandoc 2.10
Diffstat (limited to 'default.revealjs')
-rw-r--r--default.revealjs135
1 files changed, 107 insertions, 28 deletions
diff --git a/default.revealjs b/default.revealjs
index 4d2710f..4f5b110 100644
--- a/default.revealjs
+++ b/default.revealjs
@@ -16,30 +16,19 @@ $endif$
16 <meta name="apple-mobile-web-app-capable" content="yes"> 16 <meta name="apple-mobile-web-app-capable" content="yes">
17 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> 17 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
18 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui"> 18 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
19 <link rel="stylesheet" href="$revealjs-url$/css/reset.css"> 19 <link rel="stylesheet" href="$revealjs-url$/dist/reset.css">
20 <link rel="stylesheet" href="$revealjs-url$/css/reveal.css"> 20 <link rel="stylesheet" href="$revealjs-url$/dist/reveal.css">
21 <style> 21 <style>
22 $styles.html()$ 22 $styles.html()$
23 </style> 23 </style>
24$if(theme)$ 24$if(theme)$
25 <link rel="stylesheet" href="$revealjs-url$/css/theme/$theme$.css" id="theme"> 25 <link rel="stylesheet" href="$revealjs-url$/dist/theme/$theme$.css" id="theme">
26$else$ 26$else$
27 <link rel="stylesheet" href="$revealjs-url$/css/theme/black.css" id="theme"> 27 <link rel="stylesheet" href="$revealjs-url$/dist/theme/black.css" id="theme">
28$endif$ 28$endif$
29$for(css)$ 29$for(css)$
30 <link rel="stylesheet" href="$css$"/> 30 <link rel="stylesheet" href="$css$"/>
31$endfor$ 31$endfor$
32 <!-- Printing and PDF exports -->
33 <script>
34 var link = document.createElement( 'link' );
35 link.rel = 'stylesheet';
36 link.type = 'text/css';
37 link.href = window.location.search.match( /print-pdf/gi ) ? '$revealjs-url$/css/print/pdf.css' : '$revealjs-url$/css/print/paper.css';
38 document.getElementsByTagName( 'head' )[0].appendChild( link );
39 </script>
40 <!--[if lt IE 9]>
41 <script src="$revealjs-url$/lib/js/html5shiv.js"></script>
42 <![endif]-->
43$if(math)$ 32$if(math)$
44 $math$ 33 $math$
45$endif$ 34$endif$
@@ -78,17 +67,39 @@ $body$
78 </div> 67 </div>
79 </div> 68 </div>
80 69
81 <script src="$revealjs-url$/js/reveal.js"></script> 70 <script src="$revealjs-url$/dist/reveal.js"></script>
71
72 // reveal.js plugins
73 <script src="$revealjs-url$/plugin/notes/notes.js"></script>
74 <script src="$revealjs-url$/plugin/search/search.js"></script>
75 <script src="$revealjs-url$/plugin/zoom/zoom.js"></script>
76$if(mathjax)$
77 <script src="$revealjs-url$/plugin/math/math.js"></script>
78$endif$
82 79
83 <script> 80 <script>
84 81
85 // Full list of configuration options available at: 82 // Full list of configuration options available at:
86 // https://github.com/hakimel/reveal.js#configuration 83 // https://revealjs.com/config/
87 Reveal.initialize({ 84 Reveal.initialize({
88$if(controls)$ 85$if(controls)$
89 // Display controls in the bottom right corner 86 // Display controls in the bottom right corner
90 controls: $controls$, 87 controls: $controls$,
91$endif$ 88$endif$
89$if(controlsTutorial)$
90 // Help the user learn the controls by providing hints, for example by
91 // bouncing the down arrow when they first encounter a vertical slide
92 controlsTutorial: $controlsTutorial$,
93$endif$
94$if(controlsLayout)$
95 // Determines where controls appear, "edges" or "bottom-right"
96 controlsLayout: $controlsLayout$,
97$endif$
98$if(controlsBackArrows)$
99 // Visibility rule for backwards navigation arrows; "faded", "hidden"
100 // or "visible"
101 controlsBackArrows: $controlsBackArrows$,
102$endif$
92$if(progress)$ 103$if(progress)$
93 // Display a presentation progress bar 104 // Display a presentation progress bar
94 progress: $progress$, 105 progress: $progress$,
@@ -97,6 +108,11 @@ $if(slideNumber)$
97 // Display the page number of the current slide 108 // Display the page number of the current slide
98 slideNumber: $slideNumber$, 109 slideNumber: $slideNumber$,
99$endif$ 110$endif$
111$if(hash)$
112 // Add the current slide number to the URL hash so that reloading the
113 // page/copying the URL will return you to the same slide
114 hash: $hash$,
115$endif$
100 // Push each slide change to the browser history 116 // Push each slide change to the browser history
101$if(history)$ 117$if(history)$
102 history: $history$, 118 history: $history$,
@@ -128,13 +144,22 @@ $if(rtl)$
128 rtl: $rtl$, 144 rtl: $rtl$,
129$endif$ 145$endif$
130$if(navigationMode)$ 146$if(navigationMode)$
131 // see https://github.com/hakimel/reveal.js/#navigation-mode 147 // see https://revealjs.com/vertical-slides/#navigation-mode
132 navigationMode: '$navigationMode$', 148 navigationMode: '$navigationMode$',
133$endif$ 149$endif$
150$if(shuffle)$
151 // Randomizes the order of slides each time the presentation loads
152 shuffle: $shuffle$,
153$endif$
134$if(fragments)$ 154$if(fragments)$
135 // Turns fragments on and off globally 155 // Turns fragments on and off globally
136 fragments: $fragments$, 156 fragments: $fragments$,
137$endif$ 157$endif$
158$if(fragmentInURL)$
159 // Flags whether to include the current fragment in the URL,
160 // so that reloading brings you to the same fragment position
161 fragmentInURL: $fragmentInURL$,
162$endif$
138$if(embedded)$ 163$if(embedded)$
139 // Flags if the presentation is running in an embedded mode, 164 // Flags if the presentation is running in an embedded mode,
140 // i.e. contained within a limited portion of the screen 165 // i.e. contained within a limited portion of the screen
@@ -149,6 +174,21 @@ $if(showNotes)$
149 // Flags if speaker notes should be visible to all viewers 174 // Flags if speaker notes should be visible to all viewers
150 showNotes: $showNotes$, 175 showNotes: $showNotes$,
151$endif$ 176$endif$
177$if(autoPlayMedia)$
178 // Global override for autoplaying embedded media (video/audio/iframe)
179 // - null: Media will only autoplay if data-autoplay is present
180 // - true: All media will autoplay, regardless of individual setting
181 // - false: No media will autoplay, regardless of individual setting
182 autoPlayMedia: $autoPlayMedia$,
183$endif$
184$if(preloadIframes)$
185 // Global override for preloading lazy-loaded iframes
186 // - null: Iframes with data-src AND data-preload will be loaded when within
187 // the viewDistance, iframes with only data-src will be loaded when visible
188 // - true: All iframes with data-src will be loaded when within the viewDistance
189 // - false: All iframes with data-src will be loaded only when visible
190 preloadIframes: $preloadIframes$,
191$endif$
152$if(autoSlide)$ 192$if(autoSlide)$
153 // Number of milliseconds between automatically proceeding to the 193 // Number of milliseconds between automatically proceeding to the
154 // next slide, disabled when set to 0, this value can be overwritten 194 // next slide, disabled when set to 0, this value can be overwritten
@@ -159,6 +199,31 @@ $if(autoSlideStoppable)$
159 // Stop auto-sliding after user input 199 // Stop auto-sliding after user input
160 autoSlideStoppable: $autoSlideStoppable$, 200 autoSlideStoppable: $autoSlideStoppable$,
161$endif$ 201$endif$
202$if(autoSlideMethod)$
203 // Use this method for navigation when auto-sliding
204 autoSlideMethod: $autoSlideMethod$,
205$endif$
206$if(defaultTiming)$
207 // Specify the average time in seconds that you think you will spend
208 // presenting each slide. This is used to show a pacing timer in the
209 // speaker view
210 defaultTiming: $defaultTiming$,
211$endif$
212$if(totalTime)$
213 // Specify the total time in seconds that is available to
214 // present. If this is set to a nonzero value, the pacing
215 // timer will work out the time available for each slide,
216 // instead of using the defaultTiming value
217 totalTime: $totalTime$,
218$endif$
219$if(minimumTimePerSlide)$
220 // Specify the minimum amount of time you want to allot to
221 // each slide, if using the totalTime calculation method. If
222 // the automated time allocation causes slide pacing to fall
223 // below this threshold, then you will see an alert in the
224 // speaker notes window
225 minimumTimePerSlide: $minimumTimePerSlide$,
226$endif$
162$if(mouseWheel)$ 227$if(mouseWheel)$
163 // Enable slide navigation via mouse wheel 228 // Enable slide navigation via mouse wheel
164 mouseWheel: $mouseWheel$, 229 mouseWheel: $mouseWheel$,
@@ -167,6 +232,14 @@ $if(rollingLinks)$
167 // Apply a 3D roll to links on hover 232 // Apply a 3D roll to links on hover
168 rollingLinks: $rollingLinks$, 233 rollingLinks: $rollingLinks$,
169$endif$ 234$endif$
235$if(hideInactiveCursor)$
236 // Hide cursor if inactive
237 hideInactiveCursor: $hideInactiveCursor$,
238$endif$
239$if(hideCursorTime)$
240 // Time before the cursor is hidden (in ms)
241 hideCursorTime: $hideCursorTime$,
242$endif$
170$if(hideAddressBar)$ 243$if(hideAddressBar)$
171 // Hides the address bar on mobile devices 244 // Hides the address bar on mobile devices
172 hideAddressBar: $hideAddressBar$, 245 hideAddressBar: $hideAddressBar$,
@@ -191,6 +264,12 @@ $if(viewDistance)$
191 // Number of slides away from the current that are visible 264 // Number of slides away from the current that are visible
192 viewDistance: $viewDistance$, 265 viewDistance: $viewDistance$,
193$endif$ 266$endif$
267$if(mobileViewDistance)$
268 // Number of slides away from the current that are visible on mobile
269 // devices. It is advisable to set this to a lower number than
270 // viewDistance in order to save resources.
271 mobileViewDistance: $mobileViewDistance$,
272$endif$
194$if(parallaxBackgroundImage)$ 273$if(parallaxBackgroundImage)$
195 // Parallax background image 274 // Parallax background image
196 parallaxBackgroundImage: '$parallaxBackgroundImage$', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'" 275 parallaxBackgroundImage: '$parallaxBackgroundImage$', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'"
@@ -236,6 +315,10 @@ $if(zoomKey)$
236 // Modifier key used to click-zoom to part of the slide 315 // Modifier key used to click-zoom to part of the slide
237 zoomKey: '$zoomKey$', 316 zoomKey: '$zoomKey$',
238$endif$ 317$endif$
318$if(display)$
319 // The display mode that will be used to show slides
320 display: $display$,
321$endif$
239$if(mathjax)$ 322$if(mathjax)$
240 math: { 323 math: {
241 mathjax: '$mathjaxurl$', 324 mathjax: '$mathjaxurl$',
@@ -255,18 +338,14 @@ $if(mathjax)$
255 }, 338 },
256$endif$ 339$endif$
257 340
258 // Optional reveal.js plugins 341 // reveal.js plugins
259 dependencies: [ 342 plugins: [
260 { src: '$revealjs-url$/lib/js/classList.js', condition: function() { return !document.body.classList; } },
261 { src: '$revealjs-url$/plugin/zoom-js/zoom.js', async: true },
262$if(notes-server)$
263 { src: '$revealjs-url$/socket.io/socket.io.js', async: true },
264 { src: '$revealjs-url$/plugin/notes-server/client.js', async: true },
265$endif$
266$if(mathjax)$ 343$if(mathjax)$
267 { src: '$revealjs-url$/plugin/math/math.js', async: true }, 344 RevealMath,
268$endif$ 345$endif$
269 { src: '$revealjs-url$/plugin/notes/notes.js', async: true } 346 RevealNotes,
347 RevealSearch,
348 RevealZoom
270 ] 349 ]
271 }); 350 });
272 </script> 351 </script>