From f1a6b2d4a669a03da074359a31f49c0e32ed440b Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 24 Sep 2018 20:20:15 +0000 Subject: [PATCH] config option to enable/disable mathjax --- revealjs/_templates/index.html.j2 | 2 ++ revealjs/build.py | 1 + 2 files changed, 3 insertions(+) diff --git a/revealjs/_templates/index.html.j2 b/revealjs/_templates/index.html.j2 index 4516cbf..3e712e4 100644 --- a/revealjs/_templates/index.html.j2 +++ b/revealjs/_templates/index.html.j2 @@ -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 %} ] }); diff --git a/revealjs/build.py b/revealjs/build.py index a586f20..ecff64e 100755 --- a/revealjs/build.py +++ b/revealjs/build.py @@ -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,