I'm writing reveal.js
slides using the jupyter/iPython notebook. I would like to change some of the default settings is an easy way. Things I already managed (in case it helps someone)
1. Change the theme
Change the theme by adding a raw cell containing
<link rel="stylesheet" href="reveal.js/css/theme/sky.css" id="theme">
2. Changing the reveal.js
configuration
The problem with nbconvert
is that it loads reveal.js
after all the cell syntax, so just adding the <script>Reveal.configure(...)</script>
in the same way doesn't work (Reveal
will still be unknown). The solution is to make sure the code is executed after the document has loaded:
<script type="text/javascript">
$(document).ready(function(){
Reveal.configure({
transition: 'convex' // none/fade/slide/convex/concave/zoom
})
});
</script>
3. Changing other things
This is where I fail:
How can I set the behavior of fragments, or the background of a specific slide?
SlidesExporter.reveal_transition
andSlidesExporter.reveal_theme
settings. Example: to remove the default fade, edit~/.jupyter/jupyter_lab_config.py
to add the following line:c.SlidesExporter.reveal_transition = 'none'
. – Huggermugger