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.errors
property.unknown-command
\zin
unknown-environment
\begin{foo}
invalid-command
unbalanced-braces
{
or}
unbalanced-environment
\begin{array}
) or the\end
command does not match the\begin
command (\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-string
missing-unit
unexpected-delimiter
unexpected-token
unexpected-end-of-string
improper-alphabetic-constant
`
was not followed by a letter or single character command.