{{ message }}

Instantly share code, notes, and snippets.

# tiarno/mathjax_error_flags.html

Last active Dec 20, 2015
JavaScript/MathJax method to flag for errors on a page containing TeX math: Flags for either TeX errors (undefined control sequence) or Math errors (for example, missing brace). Code stolen from a couple of threads on MathJax Users Google Group: https://groups.google.com/forum/#!msg/mathjax-users/ct4drdifuyI/h61GSTt_-bAJ https://groups.google.co…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 Encapsulate Trapping of Math and TeX errors

The rule tag is undefined: $\rule{3in}{1pt}x+1\over {1-x}$

The math has a missing brace: $x+1\over {1-x$

The math is defined and is well-formed: $x+1\over {1-x}$

### tiarno commented Jul 30, 2013

Learned from this example and the MathJax Google group; created an enhanced version here:

https://gist.github.com/tiarno/6116323