[tex4ht] ! TeX capacity exceeded, sorry [save size=100000]. with tex4ht only

Nasser M. Abbasi nma at 12000.org
Sun Aug 23 05:29:13 CEST 2020


After updating TL 2020 yesterday, now this file I have no longer compiles
with tex4ht now. It used to compile OK before. It does compile OK to pdf.

It is a large file (about 7,300 pages of PDF).

Here is the error message on the screen.

It gives this error if I use mathml or not. This is the command from
makefile I am using

make4ht --shell-escape -ulm default -a debug
    -e ~/new.mk4 -c ~/nma_mathjax.cfg $filename.tex
    "mathjax,htm,$SPLIT,notoc*,p-width,charset=utf-8" " -cunihtf -utf8"

Here is the error
! TeX capacity exceeded, sorry [save size=100000].
\__tl_analysis_a_space_test:w ->\if_meaning:w \l__tl_analysis_char_token \c_space_token \tex_toks:D
\l__tl_analysis_index_int {\exp_not:n { }}
                                                                                                                                                \__tl_analysis_a_store: \else: \int_incr:N \l__tl_analysis_normal_int \fi: \__tl_analysis_a_loop:w

   17634 words of node memory still in use:
     84 hlist, 4 vlist, 13 rule, 28 disc, 21 local_par, 1 dir, 8 math, 202 glue, 28 kern, 42 penalty, 522 glyph, 134 attribute, 1959 glue_spec, 134 attribute_list, 1 temp, 1 if_stack, 9 write, 156 special nodes
     avail lists: 1:5,2:22936,3:12687,4:36,5:1196,6:1022,7:106363,8:1,9:9099,10:35,11:1491
!  ==> Fatal error occurred, bad output DVI file produced!
Output written on index.dvi (8102 pages, 63571360 bytes).
Transcript written on index.log.

I fixed this by editing /usr/local/texlive/2020/texmf.cnf as root and adding
this new entry


And now the file compiles OK with tex4ht. (it takes about 2 hrs to compile)

It is strange, that I never had to use this before except now. Something changed
in tex4ht to cause the need to increse save size, which I have no idea
what it does.

So if someone gets this new error with tex4ht, the above seems to have
fixed it.

I found another problem in HTML after updating TL last night. Will leave
that for different post until I make MWE for it.


More information about the tex4ht mailing list.