
我透過 iMac 上的 tlmgr-app 安裝了 tex4ht 和 make4ht。但編譯不成功(見錯誤訊息)
% make4ht mwe-image.tex
[STATUS] make4ht: Conversion started
[STATUS] make4ht: Input file: mwe-image.tex
[ERROR] htlatex: Compilation errors in the htlatex run
[ERROR] htlatex: Filename Line Message
[ERROR] htlatex: ? ? LaTeX Error: File `tex4ht.sty' not found.
[ERROR] htlatex: ? 2 Emergency stop.
[FATAL] make4ht-lib: Fatal error. Command htlatex returned exit code 1
我無法找出發生了什麼原因。它是TeXLive2022更新,Mac OS 13.1更新。我遇到的問題:我不知道程式安裝在哪裡:看看ls /usr/local/texlive/2022/texmf-dist/tex/latex/tex4*
那裡只有tex4ebook-epub3.4ht
,tex4ebook.4ht
並且ex4ebook.sty
那裡/usr/local/texlive/2022/texmf-dist/tex4ht
似乎沒有tex4ht.sty
(或者我忽略了它)。