better template
This commit is contained in:
parent
ac140a4e29
commit
b76d771e6d
9 changed files with 26 additions and 19 deletions
Binary file not shown.
|
@ -24,8 +24,8 @@
|
|||
<pre><code>./compile.sh</code></pre>
|
||||
<h2 id="dependencies">Dependencies</h2>
|
||||
<ul>
|
||||
<li><a href="http://pandoc.org">pandoc</a></li>
|
||||
<li><a href="http://xelatex.org">XeLaTeX</a></li>
|
||||
<li><a href="http://pandoc.org">pandoc</a> – Tested with pandoc 1.15.0.6</li>
|
||||
<li><a href="http://xelatex.org">XeLaTeX</a> – Tested with XeTeX 3.14159265-2.6-0.99992 (TeX Live 2015)</li>
|
||||
<li><a href="https://github.com/matze/mtheme">metropolis</a> Beamer theme (working forked version here: <a href="https://github.com/yogsototh/mtheme"><code>https://github.com/yogsototh/mtheme</code></a>)</li>
|
||||
</ul>
|
||||
<div id="footer">
|
||||
|
|
BIN
README.pdf
BIN
README.pdf
Binary file not shown.
|
@ -44,8 +44,8 @@
|
|||
<section id="dependencies" class="level2">
|
||||
<h2>Dependencies</h2>
|
||||
<ul>
|
||||
<li><a href="http://pandoc.org">pandoc</a></li>
|
||||
<li><a href="http://xelatex.org">XeLaTeX</a></li>
|
||||
<li><a href="http://pandoc.org">pandoc</a> -- Tested with pandoc 1.15.0.6</li>
|
||||
<li><a href="http://xelatex.org">XeLaTeX</a> -- Tested with XeTeX 3.14159265-2.6-0.99992 (TeX Live 2015)</li>
|
||||
<li><a href="https://github.com/matze/mtheme">metropolis</a> Beamer theme (working forked version here: <a href="https://github.com/yogsototh/mtheme"><code>https://github.com/yogsototh/mtheme</code></a>)</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
|
|
@ -92,7 +92,13 @@ toWeb dbg fpath = do
|
|||
-- | Generate HTML Reveal.js Presentation
|
||||
toReveal :: Bool -> FilePath -> IO ()
|
||||
toReveal dbg fpath = do
|
||||
let dest = fpath & filename
|
||||
mslideLevel <- fold (fpath & filename
|
||||
& input
|
||||
& grep (prefix "slide_level: ")
|
||||
& sed (prefix "slide_level: " *> star digit))
|
||||
Fold.head
|
||||
let slideLevel = maybe "2" (\l -> if l == "" then "2" else l) mslideLevel
|
||||
dest = fpath & filename
|
||||
& dropExtension
|
||||
& flip addExtension "reveal"
|
||||
& flip addExtension "html"
|
||||
|
@ -104,6 +110,7 @@ toReveal dbg fpath = do
|
|||
cmd = "pandoc -s -mathjax -t html5 "
|
||||
<> "--template=" <> format fp template <> " "
|
||||
<> "--section-divs "
|
||||
<> "--slide-level=" <> slideLevel <> " "
|
||||
<> "--variable transition=linear "
|
||||
<> "--variable prefix=" <> prt <> " "
|
||||
<> "-o " <> format fp dest <> " "
|
||||
|
|
Binary file not shown.
BIN
druid/druid.pdf
BIN
druid/druid.pdf
Binary file not shown.
|
@ -9,7 +9,7 @@
|
|||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<link rel="stylesheet" href="../.reveal.js-3.2.0/css/reveal.css">
|
||||
<link rel="stylesheet" href="../.reveal.js-3.2.0/css/theme/solarized.css" id="theme">
|
||||
<link rel="stylesheet" href="../.reveal.js-3.2.0/css/theme/black.css" id="theme">
|
||||
<!-- For syntax highlighting -->
|
||||
<link rel="stylesheet" href="../.reveal.js-3.2.0/lib/css/zenburn.css">
|
||||
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
|
||||
|
@ -130,19 +130,19 @@
|
|||
center: false,
|
||||
|
||||
// available themes are in /css/theme
|
||||
theme: Reveal.getQueryHash().theme || 'solarized',
|
||||
theme: Reveal.getQueryHash().theme || 'black',
|
||||
|
||||
// default/cube/page/concave/zoom/linear/fade/none
|
||||
transition: Reveal.getQueryHash().transition || 'linear',
|
||||
|
||||
// Optional libraries used to extend on reveal.js
|
||||
dependencies: [
|
||||
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
||||
{ src: 'plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
||||
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
|
||||
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
|
||||
{ src: '..//.reveal.js-3.2.0/lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
||||
{ src: '..//.reveal.js-3.2.0/plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||
{ src: '..//.reveal.js-3.2.0/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||
{ src: '..//.reveal.js-3.2.0/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
||||
{ src: '..//.reveal.js-3.2.0/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
|
||||
{ src: '..//.reveal.js-3.2.0/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
|
||||
]
|
||||
});
|
||||
|
||||
|
|
|
@ -93,12 +93,12 @@ $body$
|
|||
|
||||
// Optional libraries used to extend on reveal.js
|
||||
dependencies: [
|
||||
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
||||
{ src: 'plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
||||
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
|
||||
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
|
||||
{ src: '$prefix$/.reveal.js-3.2.0/lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
||||
{ src: '$prefix$/.reveal.js-3.2.0/plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||
{ src: '$prefix$/.reveal.js-3.2.0/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||
{ src: '$prefix$/.reveal.js-3.2.0/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
||||
{ src: '$prefix$/.reveal.js-3.2.0/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
|
||||
{ src: '$prefix$/.reveal.js-3.2.0/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
|
||||
]
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue