Sun May 10 08:19:59 2020, original submission:
I have one \begin{align}...\end{align} which contains few equations.
This is auto-generated from Mathematica. Now the only thing, is that there is no new line between the equations. So it looks like this
\begin{align} .....\\ &=.. \\ ... &= ....\\ .. \end{align}
All on one LONG line.
This causes no problem at all to lualatex. It compiles OK and the output is correct.
But when I do
make4ht -ulm default -a debug foo.tex "htm,mathjax"
I get
----------------------
(/usr/local/texlive/2020/texmf-dist/tex/generic/tex4ht/html5.4ht)) (./foo.aux)
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/ts1cmr.fd)
! Bad register code (65536).
\__regex_query_set:nnn ... \l__regex_curr_pos_int
{#1}\int_incr:N \l__regex_...
l.8 ...4 \left(7+2 \sqrt{14}\right)}}\\ \end{align*}
?
----------------------
Since the file is long, I can not put it here (actually the file is only few lines, but the line is over 110,000 characters long. It looks like
==========================
\documentclass[11pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{align} .....\\ \end{align}
\end{document}
==================================
So I put foo.tex and also foo.pdf (generated from lualatex) in this folder
https://www.12000.org/tmp/051020/
Also, when I tried to compile it using
>make4ht -ulm default -a debug foo.tex "htm"
i.e. no mathjax, it did not crash, but tex4ht generated hundreds of image .png files.
Question is, why does it crash like this? Is there a limit on how long a line can be in Latex for use with tex4ht/mathjax?
Using TL 2020.
|