config option to enable/disable mathjax

This commit is contained in:
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 }, { src: '../_assets/reveal.js/plugin/zoom-js/zoom.js', async: true },
// Speaker notes // Speaker notes
{ src: '../_assets/reveal.js/plugin/notes/notes.js', async: true }, { src: '../_assets/reveal.js/plugin/notes/notes.js', async: true },
{% if mathjax -%}
// LaTeX rendering // LaTeX rendering
{ src: '../_assets/reveal.js/plugin/math/math.js', async: true } { src: '../_assets/reveal.js/plugin/math/math.js', async: true }
{%- endif %}
] ]
}); });
</script> </script>

View file

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