// A trigger which is queried by the script // render-math-and-dump.js in PhantomJS var MathJaxFinished = false; // A sample MathJax setup MathJax.Hub.Config({ displayAlign: "left", displayIndent: "3em", extensions: ["tex2jax.js","mml2jax.js"], // HTML Output jax: ["input/TeX", "input/MathML", "output/HTML-CSS"], imageFont: null, messageStyle: "none", showProcessingMessages: false, showMathMenu: false, delayStartupUntil: "onload", tex2jax: { ignoreClass: "tex2jax_ignore", processClass: "math", inlineMath: [ ["$","$"], ["\\(","\\)"] ], displayMath: [ ["$$","$$"], ["\\[","\\]"] ], processEscapes: false }, TeX: { extensions: ["AMSmath.js","AMSsymbols.js"], TagSide: "right", TagIndent: "1em", MultLineWidth: "85%", equationNumbers: { autoNumber: "AMS" }, unicode: { fonts: "STIXGeneral,'Arial Unicode MS'" } }, "HTML-CSS": { scale: 100, minScaleAdjust: 50, linebreaks: { automatic: true }, // Anchors in formulas in black styles: { ".MathJax a": { color: "#000000" }, ".MathJax": { "vertical-align": "baseline" } }, mtextFontInherit: true, matchFontHeight: true, availableFonts: ["TeX"], preferredFont: "TeX", webFont: "TeX", imageFont: null } }); // This function will be called when MathJax has finished *all* rendering MathJax.Hub.Queue( function () { MathJaxFinished = true; } );