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

Nasser M. Abbasi puszcza-hackers at gnu.org.ua
Sun May 10 10:20:02 CEST 2020


URL:
  <http://puszcza.gnu.org.ua/bugs/?464>

                 Summary: ! Bad register code (65536). because no new line
used in long math?
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Sun 10 May 2020 11:19:59 AM EEST
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.






    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?464>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/


More information about the tex4ht mailing list.