diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-06-29 21:55:23 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-06-29 21:55:23 -0700 |
commit | 70a4509a85149edb486789d0676f2358850b09ca (patch) | |
tree | 1d2ddc3942c2702aa7f2c7ed96187899305cd833 | |
parent | 1ebb4f0b555004193380a8ba89331e043e3083ff (diff) | |
download | pandoc-templates-70a4509a85149edb486789d0676f2358850b09ca.tar.gz pandoc-templates-70a4509a85149edb486789d0676f2358850b09ca.zip |
Updated templates for pandoc 2.10
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | default.latex | 4 | ||||
-rw-r--r-- | default.opendocument | 6 | ||||
-rw-r--r-- | default.revealjs | 135 |
4 files changed, 117 insertions, 32 deletions
@@ -50,7 +50,7 @@ library. It can convert *from* | |||
50 | notebook](https://nbformat.readthedocs.io/en/latest/)) | 50 | notebook](https://nbformat.readthedocs.io/en/latest/)) |
51 | - `jats` ([JATS](https://jats.nlm.nih.gov) XML) | 51 | - `jats` ([JATS](https://jats.nlm.nih.gov) XML) |
52 | - `jira` | 52 | - `jira` |
53 | ([Jira](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all) | 53 | ([Jira](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all)/Confluence |
54 | wiki markup) | 54 | wiki markup) |
55 | - `json` (JSON version of native AST) | 55 | - `json` (JSON version of native AST) |
56 | - `latex` ([LaTeX](https://www.latex-project.org/)) | 56 | - `latex` ([LaTeX](https://www.latex-project.org/)) |
@@ -124,7 +124,7 @@ It can convert *to* | |||
124 | Publishing Tag Set) | 124 | Publishing Tag Set) |
125 | - `jats` (alias for `jats_archiving`) | 125 | - `jats` (alias for `jats_archiving`) |
126 | - `jira` | 126 | - `jira` |
127 | ([Jira](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all) | 127 | ([Jira](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all)/Confluence |
128 | wiki markup) | 128 | wiki markup) |
129 | - `json` (JSON version of native AST) | 129 | - `json` (JSON version of native AST) |
130 | - `latex` ([LaTeX](https://www.latex-project.org/)) | 130 | - `latex` ([LaTeX](https://www.latex-project.org/)) |
diff --git a/default.latex b/default.latex index 4ceca43..92ab9fe 100644 --- a/default.latex +++ b/default.latex | |||
@@ -328,9 +328,9 @@ $if(lang)$ | |||
328 | \ifxetex | 328 | \ifxetex |
329 | % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic) | 329 | % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic) |
330 | \usepackage{polyglossia} | 330 | \usepackage{polyglossia} |
331 | \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$} | 331 | \setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$} |
332 | $for(polyglossia-otherlangs)$ | 332 | $for(polyglossia-otherlangs)$ |
333 | \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$} | 333 | \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$} |
334 | $endfor$ | 334 | $endfor$ |
335 | \else | 335 | \else |
336 | \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} | 336 | \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} |
diff --git a/default.opendocument b/default.opendocument index cc7d330..e34c8d5 100644 --- a/default.opendocument +++ b/default.opendocument | |||
@@ -14,12 +14,18 @@ $endfor$ | |||
14 | $if(title)$ | 14 | $if(title)$ |
15 | <text:p text:style-name="Title">$title$</text:p> | 15 | <text:p text:style-name="Title">$title$</text:p> |
16 | $endif$ | 16 | $endif$ |
17 | $if(subtitle)$ | ||
18 | <text:p text:style-name="Subtitle">$subtitle$</text:p> | ||
19 | $endif$ | ||
17 | $for(author)$ | 20 | $for(author)$ |
18 | <text:p text:style-name="Author">$author$</text:p> | 21 | <text:p text:style-name="Author">$author$</text:p> |
19 | $endfor$ | 22 | $endfor$ |
20 | $if(date)$ | 23 | $if(date)$ |
21 | <text:p text:style-name="Date">$date$</text:p> | 24 | <text:p text:style-name="Date">$date$</text:p> |
22 | $endif$ | 25 | $endif$ |
26 | $if(abstract)$ | ||
27 | $abstract$ | ||
28 | $endif$ | ||
23 | $for(include-before)$ | 29 | $for(include-before)$ |
24 | $include-before$ | 30 | $include-before$ |
25 | $endfor$ | 31 | $endfor$ |
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> |