commit 79d37f30661f7a15a334bfa08d3d9fd061d34596
parent c9dbc8a708e2b99e6e182ee0de395535a43a98ff
Author: Davide P. Cervone <dpvc@union.edu>
Date: Mon, 7 Mar 2011 21:09:44 -0500
Add some extensions, and LoadHooks to show when they load
Diffstat:
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git 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