[tex4ht] Where to put .lua files so that make4ht sees them?

Nasser M. Abbasi nma at 12000.org
Tue Aug 21 08:10:41 CEST 2018


I've been trying to integrate new make4ht build process using hashing
to my makefiles.

But I can't figure where to put  dvireader.lua and dvisvgm-hashes.lua
so that they will be seen by make4ht.

I do not want to put them in same folder as my latex file, since
I want to build any latex file from anywhere.

I tried putting them in my $TEXINPUT but make4ht still did not see
them. I put them in $HOME/ and it did not see them. I tried to
add LUA_PATH but that also did not work.  I also copied
them as root to

    /usr/local/texlive/2018/texmf-dist/scripts/make4ht/

and make4ht did not see them. I get error

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

Output dir:
Compiler:       dvilualatex
Latex options:   -jobname=try
tex4ht.sty :    /home/me/nma.cfg,htm,3,pic-align,notoc*,charset=utf-8
tex4ht  svg
build_file      /home/me/new.mk4
Output format   html5
Extension       +dvisvgm_hashes
Cannot load extension: dvisvgm_hashes
Using build file        /home/me/new.mk4
[string "require "dvisvgm-hashes"..."]:1: module 'dvisvgm-hashes' not found:
         no field package.preload['dvisvgm-hashes']
         [kpse lua searcher] file not found: 'dvisvgm-hashes'
         [kpse C searcher] file not found: 'dvisvgm-hashes'
...ocal/texlive/2018/texmf-dist/scripts/make4ht/mkutils.lua:388: assertion failed!
>
=========================

Where is the correct place to put these 2 lua files?

Thank you
--Nasser


More information about the tex4ht mailing list