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

Nasser M. Abbasi nma at 12000.org
Sun Aug 19 04:22:00 CEST 2018


On 8/18/2018 6:10 PM, Michal Hoftich wrote:
> 
> 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
> 
> Best regards,
> Michal
> 

Thank you for your effort. I tried it but found few problems.

On a relatively larger latex input file, it hangs here:

------
....
(/usr/local/texlive/2018/texmf-dist/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr10.htf'
(/usr/local/texlive/2018/texmf-dist/tex4ht/ht-fonts/unicode/lm/lm-rep-cmrm.htf)
[1 file try_1.html
  file try_1.css
  file try_1.tmp
]
[2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
...
[692] [693] [694] [695] [696] [697] [698] [699] [700] [701]
.. it hangs here
------------------

It might be a linux shell piping issue, since your are second large
number of file using >  destination file I noticed.

I made sure the input latex file I gave it try_1.tex is not too
large, so not to run into the dvisvgm overflow problem. This file
has only 1,000 pages and may be 5,000 equations.

When I tried it on a really small file, it worked.  _BUT_ and
this is a big _BUT_, some of the math generated looks really
bad but some look like normal SVG. Here is screen shot

https://www.12000.org/tmp/08182018/image.png

Looking at the HTML, it seems some math was not really
converted to SVG at all, while other was.

--------------------------------
<td
class="align-label">
</td></tr><tr><td
class="align-odd"><span
class="cmex-10x-x-109">∫</span>
    <span
class="cmr-10x-x-109">d</span><span
class="cmmi-10x-x-109">y</span></td>
--------------------------

What is the above doing in the HTML? Should it not be an image?

I put try_1.tex  here if you like to try it

https://www.12000.org/tmp/08182018/try_1.tex

Command I used is what you show

make4ht -um draft -e new.mk4 try_1.tex svg

Using texlive 2018

Thank you again for trying to make htlatex compile faster.

--Nasser





More information about the tex4ht mailing list