[tex4ht] How to increase number of strings ? make4ht-lib: Fatal error. Command htlatex returned exit code 1

Michal Hoftich michal.h21 at gmail.com
Fri Apr 22 17:11:10 CEST 2022


Hi Nasser,


> It now compiled the MWE given below. It does take a long
> time. This is another issue for another email. But tex4ht took
> 110 minutes to compile this file, (which is empty, but has
> lots of empty chapters and sections), while lualatex about 2 minutes.
>
> Tex4ht is really slow.
>

The main problem is that your files are so extremely huge. TeX4ht
needs some extra memory, because it declares link destinations for all
sections and for each cut page.

> Now for the issue of losing links.
>
> I used this command
>
> make4ht  -ulm default foo.tex "mathjax,htm,fn-in,4"

Try

make4ht  -ulm draft foo.tex "mathjax,htm,fn-in,3"

It will produce separate files for sections, but not for subsections.
You should save a lot of memory and compilation time using this.

Best regards,
Michal


More information about the tex4ht mailing list.