
我需要對幾個大型、複雜的 LaTeX 文件進行 HTML 化。環顧四周,我看到了對 的讚揚make4ht
。但是有幾個障礙,文件指出可以透過.mk4
該文件的配置來迴避。閱讀 TeXlive 中與其捆綁的文檔,我編寫了一個測試配置文件poly-zero.mk4
,就像poly-zero.tex
文檔似乎建議的那樣:
Make:latexmk
(我完全打算對此添加更多內容)。但我只是得到:
Output dir:
Compiler: latex
Latex options: -jobname=poly-zero
tex4ht.sty : xhtml,
tex4ht
build_file poly-zero.mk4
Output format html5
Using build file poly-zero.mk4
[string "Make:latexmk_build..."]:2: function arguments expected near <eof>
/usr/share/texlive/texmf-dist/scripts/make4ht/mkutils.lua:417: assertion failed!
因此,文件強制要求Make:latexmk
是完全錯誤的。
任何可靠的(希望也完整)關於如何配置make4ht的源碼?順便說一句,我對 lua 完全一無所知。