initmathjax.js
16 lines
| 534 B
| application/javascript
|
JavascriptLexer
/ js / initmathjax.js
MinRK
|
r7913 | init_mathjax = function() { | |
if (window.MathJax) { | |||
// MathJax loaded | |||
MathJax.Hub.Config({ | |||
tex2jax: { | |||
inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |||
displayMath: [ ['$$','$$'], ["\\[","\\]"] ] | |||
}, | |||
displayAlign: 'left', // Change this to 'center' to center equations. | |||
"HTML-CSS": { | |||
styles: {'.MathJax_Display': {"margin": 0}} | |||
} | |||
}); | |||
MathJax.Hub.Queue(["Typeset",MathJax.Hub]); | |||
} | |||
} | |||
init_mathjax(); |