[tex4ht] what is the fastest way to convert large document to HTML?
michal.h21 at gmail.com
Sun Aug 19 01:10:56 CEST 2018
> However, technically it shouldn't be necessary to convert all math fragments
> every time the document is processed. In the (proprietary) infrastructure at
> our university we only convert the portions that have actually changed. This
> is simply done by using md5-based file names computed from the corresponding
> LaTeX code. Before starting the actual conversion, the system checks if
> there's already an SVG file present which matches the hash value of the
> LaTeX code. If so, running LaTeX and dvisvgm can be skipped. This also has
> the advantage that every fragment is created only once even if it's
> referenced multiple times in the document.
This is actually great idea. I've created simple Lua package which can
process DVI pages and calculate MD5 hashes for their contents. make4ht
can then rename files generated by Dvisvgm according to the hashes and
replace the image names in HTML files. Zip file with all necessary
files is attached. It can be executed with
make4ht -um draft -e new.mk4 small.tex svg
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3811 bytes
Desc: not available
More information about the tex4ht