blefloch / latex-unravel

Watching TeX digest tokens
24 stars 1 forks source link

TeX's error recovery in scan_something_internal #21

Closed blefloch closed 8 years ago

blefloch commented 8 years ago
\dimen0\relax

gives "Missing number" and "Illegal unit" errors, while

\dimen0\tenrm

gives only the first error (assuming \font\tenrm=cmr10\relax). Similarly, \muskip0\relax gives "Missing number" and "Illegal unit", while \musip0\tenrm gives "Missing number" and "Incompatible glue units" errors.

This is due to the fact that \tenrm is "something internal" hence is scanned by the TeX procedure scan_something_internal, which throws a "Missing number" error then inserts the equivalent of \c_zero_dim.