revealmathjax.js
16 lines
| 536 B
| application/javascript
|
JavascriptLexer
/ js / revealmathjax.js
|
r8832 | init_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]); | |||
} | |||
} | |||
init_mathjax(); |