|
@@ -6,37 +6,28 @@
|
|
|
*/
|
|
|
var RevealMath = window.RevealMath || (function(){
|
|
|
|
|
|
- var loaded = false;
|
|
|
-
|
|
|
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';
|
|
|
|
|
|
loadScript( config.host + '?config=' + config.mode, function() {
|
|
|
|
|
|
-
|
|
|
- if( loaded === false ) {
|
|
|
- loaded = true;
|
|
|
-
|
|
|
- MathJax.Hub.Config({
|
|
|
- messageStyle: 'none',
|
|
|
- tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] }
|
|
|
- });
|
|
|
+ MathJax.Hub.Config({
|
|
|
+ messageStyle: 'none',
|
|
|
+ tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] }
|
|
|
+ });
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- Reveal.addEventListener( 'slidechanged', function( event ) {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ Reveal.addEventListener( 'slidechanged', function( event ) {
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- MathJax.Hub.Update( event.currentSlide, function() {
|
|
|
- Reveal.layout();
|
|
|
- } );
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ MathJax.Hub.Update( event.currentSlide );
|
|
|
|
|
|
- } );
|
|
|
- }
|
|
|
+ } );
|
|
|
|
|
|
} );
|
|
|
|