revealmathjax.js
16 lines
| 540 B
| application/javascript
|
JavascriptLexer
/ js / revealmathjax.js
damianavila
|
r9508 | reveal_mathjax = function() { | |
damianavila
|
r8832 | 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]); | |||
} | |||
} | |||
damianavila
|
r9508 | reveal_mathjax(); |