|
@@ -7,25 +7,26 @@
|
|
|
var RevealMath = window.RevealMath || (function(){
|
|
|
|
|
|
var config = Reveal.getConfig().math || {};
|
|
|
- config.host = config.host || 'http://cdn.mathjax.org/mathjax/latest/MathJax.js';
|
|
|
- config.mode = config.mode || 'TeX-AMS_HTML-full';
|
|
|
+ config.mathjax = config.mathjax || 'http://cdn.mathjax.org/mathjax/latest/MathJax.js';
|
|
|
+ config.dialect = config.dialect || 'TeX-AMS_HTML-full';
|
|
|
|
|
|
- loadScript( config.host + '?config=' + config.mode, function() {
|
|
|
+ loadScript( config.mathjax + '?config=' + config.dialect, function() {
|
|
|
|
|
|
MathJax.Hub.Config({
|
|
|
messageStyle: 'none',
|
|
|
- tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] }
|
|
|
+ tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] },
|
|
|
+ skipStartupTypeset: true
|
|
|
});
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] );
|
|
|
+ MathJax.Hub.Queue( Reveal.layout );
|
|
|
+
|
|
|
+
|
|
|
Reveal.addEventListener( 'slidechanged', function( event ) {
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- MathJax.Hub.Update( event.currentSlide );
|
|
|
+ MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] );
|
|
|
|
|
|
} );
|
|
|
|