diff --git a/js/revealmathjax.js b/js/revealmathjax.js deleted file mode 100644 index b0a8003..0000000 --- a/js/revealmathjax.js +++ /dev/null @@ -1,17 +0,0 @@ -reveal_mathjax = function() { - if (window.MathJax) { - // MathJax loaded - MathJax.Hub.Config({ - tex2jax: { - inlineMath: [ ['$','$'], ["\\(","\\)"] ], - displayMath: [ ['$$','$$'], ["\\[","\\]"] ] - }, - displayAlign: 'center', // Change this to 'center' to center equations. - "HTML-CSS": { - styles: {'.MathJax_Display': {"margin": 0}} - } - }); - MathJax.Hub.Queue(["Typeset",MathJax.Hub]); - } -} -reveal_mathjax(); \ No newline at end of file diff --git a/templates/reveal_base.html b/templates/reveal_base.html index 82a21a9..9a8a850 100644 --- a/templates/reveal_base.html +++ b/templates/reveal_base.html @@ -32,6 +32,21 @@ + + + + @@ -54,7 +69,6 @@ { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true}, - { src: 'js/revealmathjax.js', async: true}, { src: 'js/mathjax-onload.js', async: true} ] }); diff --git a/tests/ipynbref/reveal.orig_slides.html b/tests/ipynbref/reveal.orig_slides.html index 2446b37..c03a0d4 100644 --- a/tests/ipynbref/reveal.orig_slides.html +++ b/tests/ipynbref/reveal.orig_slides.html @@ -3841,6 +3841,31 @@ X07vG9Z4QUTEBQ4dOkRpaSklJSVnnQPx/xV9BfkfDyZLAAAAAElFTkSuQmCC + +
+ + + + + +
+ + + + + + @@ -3862,8 +3887,8 @@ dependencies: [ { src: 'reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, -{ src: 'https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML', async: true }, -{ src: 'js/revealmathjax.js', async: true} +{ src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true}, +{ src: 'js/mathjax-onload.js', async: true} ] });