[tex4ht] [bug #464] ! Bad register code (65536). because no new line used in long math?

Michal Hoftich michal.h21 at gmail.com
Mon May 11 15:37:57 CEST 2020


> > it seems like issue in the LaTeX regular expression parser. We use it to fix
> > some issues in the code that is passed to MathJax. Your code seems to be too
> > long for that. Couldn't you break your huge equation into smaller pieces?
>
> The regex code uses toks registers to store tokens, and access them
> directly by number where the number is the position. luatex has only
> 65535 toks register. So regex will not be able to handle text longer
> than 65535 character (if the match is at the end).

I expected the issue will be similar.

I guess this can be fixed using some custom verbatim environments, but
these have other issues.

The easiest way to fix that is to change your code in Mathematica to
produce smaller output.

Best regards,
Michal


More information about the tex4ht mailing list.