window.MathJax.Ajax.config.path["extensionName"] = "url-to-extension"
window.MathJax.Ajax.Require("[extensionName]/scriptName.js"); // need to require here
window.MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$', '$'], ["\(", "\)"]],
displayMath: [['$$', '$$'], ["\[", "\]"]],
processEscapes: true
},
TeX: {
extensions: ["[extensionName]/scriptName.js"]
}
});
Mathjax will typeset all page when initial, pass skipStartupTypeset: false to config to disable it