123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- (function(){
- var config = Reveal.getConfig().math || {};
- config.mode = config.mode || 'TeX-AMS_HTML-full';
- var head = document.querySelector( 'head' );
- var script = document.createElement( 'script' );
- script.type = 'text/javascript';
- script.src = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=' + config.mode;
-
- script.onload = onScriptLoad;
- script.onreadystatechange = function() {
- if ( this.readyState === 'loaded' ) {
- onScriptLoad.call();
- }
- }
- head.appendChild( script );
- function onScriptLoad() {
- MathJax.Hub.Config({
- messageStyle: 'none',
- tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] }
- });
-
-
-
- Reveal.addEventListener( 'slidechanged', function( event ) {
-
-
-
- MathJax.Hub.Update( event.currentSlide );
- } );
- }
- })();
|