Type Alias ParserErrorCode
ParserErrorCode:
| "unknown-command"
| "invalid-command"
| "unbalanced-braces"
| "unknown-environment"
| "unbalanced-environment"
| "unbalanced-mode-shift"
| "missing-argument"
| "too-many-infix-commands"
| "unexpected-command-in-string"
| "missing-unit"
| "unexpected-delimiter"
| "unexpected-token"
| "unexpected-end-of-string"
| "improper-alphabetic-constant"
Error codes returned by the
mf.errorsproperty.unknown-command\zinunknown-environment\begin{foo}invalid-commandunbalanced-braces{or}unbalanced-environment\begin{array}) or the\endcommand does not match the\begincommand (\begin{array*}\end{array})unbalanced-mode-shift$,$$,\(or\[was not balancedmissing-argument\frac{2}too-many-infix-commands\choose,\atop). In general it's best to avoid infix commands.unexpected-command-in-stringmissing-unitunexpected-delimiterunexpected-tokenunexpected-end-of-stringimproper-alphabetic-constant`was not followed by a letter or single character command.