From 79d37f30661f7a15a334bfa08d3d9fd061d34596 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 7 Mar 2011 21:09:44 -0500 Subject: [PATCH] Add some extensions, and LoadHooks to show when they load --- test/sample-signals.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/test/sample-signals.html b/test/sample-signals.html index 95cd1eaf8..7d9837270 100644 --- a/test/sample-signals.html +++ b/test/sample-signals.html @@ -18,10 +18,21 @@ // Configure MathJax // MathJax.Hub.Config({ - extensions: ["tex2jax.js"], + extensions: ["tex2jax.js","TeX/noUndefined.js"], jax: ["input/TeX","output/HTML-CSS"], - tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]} + tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}, + TeX: {extensions: ["AMSmath.js","AMSsymbols.js"]} }); + // + // Display messages when these files are loaded + // (Note the difference between extensions and TeX.extensions, + // and the difference between when noUndefind is loaded compared + // to when it signals that it is ready) + // + MathJax.Hub.Register.LoadHook("[MathJax]/extensions/TeX/noUndefined.js", + function () {MathJax.Hub.Startup.signal.Post("*** noUndefined Loaded ***")}); + MathJax.Hub.Register.LoadHook("[MathJax]/extensions/TeX/AMSmath.js", + function () {MathJax.Hub.Startup.signal.Post("*** AMSmath Loaded ***")}); // // Display a message that we are in the configuration code