[tex4ht] DVI error: page count in postamble doesn't match actual number of pages

Nasser M. Abbasi nma at 12000.org
Sat Aug 18 04:50:48 CEST 2018


On 8/17/2018 9:36 PM, Nasser M. Abbasi wrote:
> Hello;
> 
> I am getting this error, using tex live 2018, compiling a
> latex to HTML using make4t:
> 
> --------------------
> ....
> [10454] [10455] [10456] [10457] [10458] [10459] [10460] [10461] [10462] [10463]
> Execute script `index.lg'
> Make4ht: t4ht  -p "index.dvi"
> t4ht.c (2012-07-25-19:28 kpathsea)
> t4ht -p
>     index.dvi
> (/usr/local/texlive/2018/texmf-dist/tex4ht/base/unix/tex4ht.env)
> Entering index.lg
> Entering index.css
> Entering index.tmp
> Make4ht: dvisvgm -v1 -n -c 1.15,1.15 -p 1- index.idv
> DVI error: page count in postamble doesn't match actual number of pages
> Make4ht: tex4ht  -cmozhtf -utf8 "index.dvi" can be executed only 1x
> Make4ht: t4ht  -p "index.dvi" can be executed only 1x
> Parse LG
> Image processing error: max_count exceeded
> Image processing error: max_count exceeded
> Image processing error: max_count exceeded
> Image processing error: max_count exceeded
> Image processing error: max_count exceeded
> Image processing error: max_count exceeded
> ....
> ----------------------------
> 
> The command I use is
> 
> make4ht --lua -u -c nma.cfg  -e main.mk4  index.tex "htm,3,pic-align-notoc*"
> 
> This error only shows on this one large latex file.
> 
> I am using same main.mk4 that Michal was kind enough to provide in
> this post
> 
> http://tug.org/pipermail/tex4ht/2015q4/001335.html
> 
> the nma.cfg file is my .cfg that I use for all builds.
> 
> I've put self contained ZIP file, which include the latex file,
> the nma.cfg and main.mk4 files. This latex file only uses standard
> packages in texlive.
> 
> Could someone please see what causes this erorr to show up?
> 
> unziping the following ZIP file, it will create folder called new
> folder called  "current_version/" and cd to that folder to issue
> the compile command above will show this error
> 
> https://www.12000.org/tmp/081882/current_version.zip
> 
>> which make4ht
> /usr/local/texlive/2018/bin/x86_64-linux/make4ht
> 
>> dvisvgm --version
> dvisvgm 2.3.5
> 
>> make4ht --version
> make4ht version v0.2b
> 
> Using TexLive 2018, under Linux subsystem (Ubuntu) in windows 10.
> 
> Any other information needed, please let me know.
> 
> thank you
> --Nasser
> 

FYI,

Looking at source code for dvisvgm, this error comes from

  http://tug.org/pipermail/tex-live-commits/2016-July/000342.html


DVIReader.cpp
/** Reads and executes DVI postamble command.
  *  Format: post p[4] num[4] den[4] mag[4] ph[4] pw[4] sd[2] np[2] */
void DVIReader::cmdPost (int) {
....
if (numPages != numberOfPages())
		throw DVIException("page count in postamble doesn't match actual number of pages");
....


The question is why it happens on this Latex file?

--Nasser



More information about the tex4ht mailing list