config option to enable/disable mathjax
This commit is contained in:
parent
efd7939690
commit
f1a6b2d4a6
|
@ -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>
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Reference in a new issue