From 532ee57cb67da03e09c66fca676998a5fb9f217d Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 19 Sep 2018 17:07:32 +0000 Subject: [PATCH] add MathJax --- .gitmodules | 3 +++ revealjs/_assets/MathJax | 1 + revealjs/_templates/index.html.j2 | 7 +++++++ 3 files changed, 11 insertions(+) create mode 160000 revealjs/_assets/MathJax diff --git a/.gitmodules b/.gitmodules index 4450a0e..c9a9ecf 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "revealjs/_assets/reveal.js"] path = revealjs/_assets/reveal.js url = https://github.com/hakimel/reveal.js +[submodule "revealjs/_assets/MathJax"] + path = revealjs/_assets/MathJax + url = https://github.com/mathjax/MathJax diff --git a/revealjs/_assets/MathJax b/revealjs/_assets/MathJax new file mode 160000 index 0000000..419b0a6 --- /dev/null +++ b/revealjs/_assets/MathJax @@ -0,0 +1 @@ +Subproject commit 419b0a6eee7eefc0f85e47f7d4f8227ec28b8e57 diff --git a/revealjs/_templates/index.html.j2 b/revealjs/_templates/index.html.j2 index cd46e83..604234e 100644 --- a/revealjs/_templates/index.html.j2 +++ b/revealjs/_templates/index.html.j2 @@ -38,6 +38,11 @@ transition: '{{ transition }}', + math: { + mathjax: '../_assets/MathJax/unpacked/MathJax.js', + config: 'TeX-AMS_HTML-full' + }, + dependencies: [ // Syntax highlight for elements { src: '../_assets/reveal.js/plugin/highlight/highlight.js', async: true, callback: () => hljs.initHighlightingOnLoad() }, @@ -45,6 +50,8 @@ { src: '../_assets/reveal.js/plugin/zoom-js/zoom.js', async: true }, // Speaker notes { src: '../_assets/reveal.js/plugin/notes/notes.js', async: true }, + // LaTeX rendering + { src: '../_assets/reveal.js/plugin/math/math.js', async: true } ] });