config option to enable/disable mathjax

master
Simon Bruder 2018-09-24 20:20:15 +00:00
parent efd7939690
commit f1a6b2d4a6
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
2 changed files with 3 additions and 0 deletions

View File

@ -51,8 +51,10 @@
{ src: '../_assets/reveal.js/plugin/zoom-js/zoom.js', async: true },
// Speaker notes
{ src: '../_assets/reveal.js/plugin/notes/notes.js', async: true },
{% if mathjax -%}
// LaTeX rendering
{ src: '../_assets/reveal.js/plugin/math/math.js', async: true }
{%- endif %}
]
});
</script>

View File

@ -31,6 +31,7 @@ files.extend(sorted(filter(lambda x: os.path.isfile(os.path.join(directory, x))
config = {
'theme': '../_assets/reveal.js/css/theme/black.css',
'mathjax': False,
'controls': True,
'progress': True,
'history': True,