[tex4ht] what is the fastest way to convert large document to HTML?

Nasser M. Abbasi nma at 12000.org
Tue Aug 21 07:07:57 CEST 2018


This is an update on using Michal new setup to speed make4ht.

I've been trying it and added to it all the options I normally
use in my main build.

Everything is working wonderfully. The command I am using now,
after some trial and error is

make4ht -ulm default
         -e new.mk4
         -c nma.cfg
         -f html5+dvisvgm_hashes try.tex "htm,3,pic-align,notoc*" svg

The speed is AMAZING !!  minutes now instead of hours. It might be due to
the use of

   make -j6 -f try-images.mk

or something else. I do not know what magic Michal did, but now
svg is generated so fast and not only that, the math issue I saw before, are
gone now (may be the pic-align missing before was the cause, or may
be using the draft option was the cause.)

And when I make changes the latex, recompile goes
very fast since the images do not need to be regenerated.

I will change my makefiles to use this new setup.

I will return my Linux PC back to best buys tommorrow since I do not
need it any more :)  Now make4ht is very fast running inside
linux subsystem in windows.

To show the result, I put the HTML page here to give you an idea on
a small try.tex with 2 chapters with some math generated using the
above command.

https://www.12000.org/tmp/try_with_hash/try.htm

I want again to thank Michal so much for this, and also Martin for the
idea of using hashing and Reinhard for the make ideas.

Michal: You should consider writing a paper on this and publish it
in the TUGboat journal as this is a major improvement in performance.

Is there an offical place where the new.mk4 and dvireader.lua and
dvisvgm-hashes.lua will be located? Will these files be part of
texlive for htlatex so they get installed each time automatically?

thanks
--Nasser



More information about the tex4ht mailing list