         skipTags: ["script","noscript","style","textarea","pre","code"]
 
     TeX:
-        extensions: ["autoload-all.js"]
+        extensions: ["autoload-all.js", "noUndefined.js", "noErrors.js"]
         Macros:  # get these from sage/misc/latex.py
             Bold:  ["\\mathbb{#1}",1]
             ZZ:    ["\\Bold{Z}",0]

            Zp:    ["\\ZZ_{#1}",1]
            Qp:    ["\\QQ_{#1}",1]
            Zmod:  ["\\ZZ/#1\\ZZ",1]

    # do not use "xypic.js", frequently causes crash!
    "HTML-CSS":

window.MathJax = exports.MathJaxConfig =
    skipStartupTypeset: true
    extensions: ["tex2jax.js","asciimath2jax.js"]  # "static/mathjax_extensions/xypic.js"
    # common html is the output default: http://docs.mathjax.org/en/latest/output.html
    jax: ["input/TeX","input/AsciiMath", "output/CommonHTML"]
    # http://docs.mathjax.org/en/latest/options/tex2jax.html
    tex2jax:
        inlineMath: [ ['$','$'], ["\\(","\\)"] ]
