I was getting the error
Overfull \vbox (22903.01811pt too high) detected at line 2038
! Dimension too large.
\n:LT@start: ...\ifdim \ht \@arstrutbox >\ht \tw@
\@arstrutbox \else \tw@ \f...
As part of compiling a very large Latex file using tex4ht and this happens inside a longtable
I worked long time to reduce it to the minimum possible example.
The MWE is still too large to post, as it happens on a long longtable
. So at the end of this post, I have link to zip file on my page to download the latex file called KERNEL.tex
and log files it generated.
Using tex4ht and compiling using the command
make4ht -ulm default -a debug KERNEL.tex "htm"
Gives error
make4ht -ulm default -a debug KERNEL.tex "htm"
[INFO] mkparams: Output dir:
[INFO] mkparams: Compiler: dvilualatex
[INFO] mkparams: Latex options: -jobname=KERNEL
[INFO] mkparams: tex4ht.sty: xhtml,htm,charset=utf-8
[INFO] mkparams: tex4ht: -cmozhtf -utf8
[INFO] mkparams: build_file: KERNEL.mk4
[INFO] mkparams: Output format: html5
[STATUS] make4ht: Conversion started
[STATUS] make4ht: Input file: KERNEL.tex
[INFO] mkutils: Load extension common_domfilters
[INFO] mkutils: Cannot open config file KERNEL.mk4
[INFO] make4ht-lib: setting param correct_exit
[INFO] make4ht-lib: setting param correct_exit
[INFO] make4ht-lib: setting param correct_exit
[INFO] make4ht-lib: setting param ext
[INFO] make4ht-lib: Adding: ext dvi
[INFO] htlatex: LaTeX call: dvilualatex --interaction=errorstopmode -jobname=KERNEL '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode xhtml,htm,charset=utf-8,html5.a.b.c.\input "\detokenize{KERNEL.tex}"'
This is LuaTeX, Version 1.13.2 (TeX Live 2021)
restricted system commands enabled.
LaTeX2e <2021-06-01> patch level 1
L3 programming layer <2021-08-27> (./KERNEL.tex
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/article.cls
.......
l.2019 --- TeX4ht warning --- \Link{subsubsection 199}? ---
l.2029 --- TeX4ht warning --- \Link{subsubsection 200}? ---
Overfull \vbox (22903.01811pt too high) detected at line 2038
! Dimension too large.
\n:LT@start: ...\ifdim \ht \@arstrutbox >\ht \tw@
\@arstrutbox \else \tw@ \f...
l.2038 \\\hline
? X
971873 words of node memory still in use:
14934 hlist, 458 vlist, 2076 rule, 2128 disc, 2418 local_par, 1 dir, 840 mat
h, 37921 glue, 5047 kern, 7775 penalty, 45259 glyph, 15325 attribute, 75 glue_s
pec, 15325 attribute_list, 1 if_stack, 413 write, 25686 special nodes
avail lists: 1:1,2:6,3:17,4:11,5:1,6:1,7:17,8:52,9:7,10:10
No pages of output.
Transcript written on KERNEL.log.
[FATAL] make4ht-lib: Fatal error. Command htlatex returned exit code 1
There is no problem compiling using lualatex KERNEL.tex
I also updated my TL installation now to make sure I have latest version on my Linux system.
The problem happens using tex4ht only. It happend when mathjax
mode or the default mode (png) as the above command shows.
Why does this error happen and is there a workaround?
Please find the zip file here (safe link. it is my own page)
Update
I just compiled the same file on a Linux box, using TL 2019 which I did not update for 2 years. On this TL, there is no error.
make4ht -ulm default -a debug KERNEL.tex "htm"
[INFO] mkparams: Output dir:
[INFO] mkparams: Compiler: dvilualatex
[INFO] mkparams: Latex options: -jobname=KERNEL
[INFO] mkparams: tex4ht.sty: xhtml,htm,charset=utf-8
[INFO] mkparams: tex4ht: -cmozhtf -utf8
[INFO] mkparams: build_file: KERNEL.mk4
[INFO] mkparams: Output format: html5
[STATUS] make4ht: Conversion started
[STATUS] make4ht: Input file: KERNEL.tex
[INFO] mkutils: Load extension common_domfilters
[INFO] mkutils: Cannot open config file KERNEL.mk4
[INFO] make4ht-lib: setting param correct_exit
[INFO] make4ht-lib: setting param correct_exit
[INFO] make4ht-lib: setting param correct_exit
[INFO] make4ht-lib: setting param ext
[INFO] make4ht-lib: Adding: ext dvi
[INFO] htlatex: LaTeX call: dvilualatex --interaction=errorstopmode -jobname=KERNEL '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode xhtml,htm,charset=utf-8,html5.a.b.c.\input "\detokenize{KERNEL.tex}"'
This is LuaTeX, Version 1.10.0 (TeX Live 2019)
restricted system commands enabled.
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-02-25> (./KERNEL.tex
...
avail lists: 2:5756,3:3677,4:11,5:634,6:298,7:9571,8:52,9:2195,10:10,11:297
Output written on KERNEL.dvi (21 pages, 372860 bytes).
Transcript written on KERNEL.log.
[INFO] make4ht-lib: executing: tex4ht -cmozhtf -utf8 "KERNEL.dvi"
--- warning --- Too many rows (> 146) for map: `&'
----------------------------
tex4ht.c (2018-07-03-10:36 kpathsea)
tex4ht -cmozhtf
-utf8
KERNEL.dvi
....
INFO] make4ht-lib: parse_lg process file: KE65x.png
[INFO] make4ht: outdir:
[INFO] make4ht-lib: parse_lg process file: KE66x.png
[INFO] make4ht: outdir:
[STATUS] make4ht: Conversion finished
>
Compiles with no error. But noticed
--- warning --- Too many rows (> 146) for map: `&'
above. May be this gives a clue why it fails in latest TL 2021.