add MathJax

This commit is contained in:
Simon Bruder 2018-09-19 17:07:32 +00:00
parent f8f7cc347b
commit 532ee57cb6
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
3 changed files with 11 additions and 0 deletions

3
.gitmodules vendored
View file

@ -7,3 +7,6 @@
[submodule "revealjs/_assets/reveal.js"] [submodule "revealjs/_assets/reveal.js"]
path = revealjs/_assets/reveal.js path = revealjs/_assets/reveal.js
url = https://github.com/hakimel/reveal.js url = https://github.com/hakimel/reveal.js
[submodule "revealjs/_assets/MathJax"]
path = revealjs/_assets/MathJax
url = https://github.com/mathjax/MathJax

@ -0,0 +1 @@
Subproject commit 419b0a6eee7eefc0f85e47f7d4f8227ec28b8e57

View file

@ -38,6 +38,11 @@
transition: '{{ transition }}', transition: '{{ transition }}',
math: {
mathjax: '../_assets/MathJax/unpacked/MathJax.js',
config: 'TeX-AMS_HTML-full'
},
dependencies: [ dependencies: [
// Syntax highlight for <code> elements // Syntax highlight for <code> elements
{ src: '../_assets/reveal.js/plugin/highlight/highlight.js', async: true, callback: () => hljs.initHighlightingOnLoad() }, { 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 }, { 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 },
// LaTeX rendering
{ src: '../_assets/reveal.js/plugin/math/math.js', async: true }
] ]
}); });
</script> </script>