I'll have to investigate exactly how this is being handled. For the most part we have a accepted list of keywords, that we know are reliable, like \frac{..}{..} etc. Anything outside that, and we through LaTeX into strict mode so it stops with the slightest error. This way we have a staggeringly stable system.
Login