git.iko.soy/typeable/pandoc
on master help sign in
Added reveal.js template.

(From a patch by jamiefolson.)

commitcaf5242b30c288528b63c6b9025f4388ea8297d8 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 22 Mar 2013, 01:13 (14 years ago) parent7ac22fe
1 file changed+103
default.reveal_js+103
default.reveal_jsnew file+103
@@ -0,0 +1,103 @@
1+<!DOCTYPE html>
2+<html$if(lang)$ lang="$lang$"$endif$>
3+<head>
4+ <meta charset="utf-8">
5+$for(author-meta)$
6+ <meta name="author" content="$author-meta$" />
7+$endfor$
8+$if(date-meta)$
9+ <meta name="dcterms.date" content="$date-meta$" />
10+$endif$
11+ <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
12+ <meta name="apple-mobile-web-app-capable" content="yes" />
13+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
14+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
15+ <link rel="stylesheet" href="$reveal_js-url$/css/reveal.min.css"/>
16+ <style type="text/css">code{white-space: pre;}</style>
17+$if(highlighting-css)$
18+ <style type="text/css">
19+$highlighting-css$
20+ </style>
21+$endif$
22+$if(css)$
23+$for(css)$
24+ <link rel="stylesheet" href="$css$"/>
25+$endfor$
26+$else$
27+ <link rel="stylesheet" href="$reveal_js-url$/css/theme/simple.css" id="theme">
28+$endif$
29+ <!-- If the query includes 'print-pdf', use the PDF print sheet -->
30+ <script>
31+ document.write( '<link rel="stylesheet" href="$reveal_js-url$/css/print/' +
32+ ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) +
33+ '.css" type="text/css" media="print">' );
34+ </script>
35+ <!--[if lt IE 9]>
36+ <script src="$reveal_js-url$/lib/js/html5shiv.js"></script>
37+ <![endif]-->
38+$if(math)$
39+ $math$
40+$endif$
41+$for(header-includes)$
42+ $header-includes$
43+$endfor$
44+</head>
45+<body>
46+$for(include-before)$
47+$include-before$
48+$endfor$
49+ <div class="reveal">
50+ <div class="slides">
51+
52+$if(title)$
53+<section>
54+ <h1 class="title">$title$</h1>
55+$for(author)$
56+ <h2 class="author">$author$</h2>
57+$endfor$
58+ <h3 class="date">$date$</h3>
59+</section>
60+$endif$
61+
62+$body$
63+ </div>
64+ </div>
65+$for(include-after)$
66+$include-after$
67+$endfor$
68+
69+ <script src="$reveal_js-url$/lib/js/head.min.js"></script>
70+ <script src="$reveal_js-url$/js/reveal.min.js"></script>
71+
72+ <script>
73+
74+ // Full list of configuration options available here:
75+ // https://github.com/hakimel/reveal.js#configuration
76+ Reveal.initialize({
77+ controls: true,
78+ progress: true,
79+ history: true,
80+ center: true,
81+$if(duration)$
82+ autoSlide: $duration$,
83+$else$
84+ autoSlide: 0,
85+$endif$
86+ theme: '$if(reveal_js-theme)$$reveal_js-theme$$endif$', // available themes are in /css/theme
87+ transition: '$if(reveal_js-transition)$$reveal_js-transition$$endif$', // default/cube/page/concave/zoom/linear/fade/none
88+
89+ // Optional libraries used to extend on reveal.js
90+ dependencies: [
91+ { src: '$reveal_js-url$/lib/js/classList.js', condition: function() { return !document.body.classList; } },
92+// { src: '$reveal_js-url$/plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
93+// { src: '$reveal_js-url$/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
94+// { src: '$reveal_js-url$/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
95+ { src: '$reveal_js-url$/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
96+ { src: '$reveal_js-url$/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
97+ // { src: '$reveal_js-url$/plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }
98+ // { src: '$reveal_js-url$/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
99+ ]
100+ });
101+ </script>
102+ </body>
103+</html>