I recently posted something on math.stackexchange.com, and was astonished by the behavior of the auto-renderer on undefined sequences. Instead of stopping the compilation right here, it would display in the rendered text the name of the sequence in red, and just carry on processing the rest of the document.
Needless to say, such a feature could prove incredibly useful for some usages of *TeX. One simple example is live-texing lecture notes, where a lot of spelling mistakes are likely to appear, but where one will prefer a successfully-compiled, badly-rendered document to a perfect, but half-compiled document.
--nonstopmode option of
pdflatex already offers some kind of such behavior, but then that's the opposite problem : the document is too well compiled, and the only way to find the errors is to either carefully proof-read the document, or to search through the log file.
Hence the question: is there a way to get latex to replace "Undefined control sequence" errors with simple warnings, and in that case print the name of the faulty macro verbatim (with its arguments, expanded or not) in red (for example)?
Or is it something too deeply buried in the core features of *TeX or mathjax, which would require to build a brand new engine?