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