Just tried again using a fresh manual install of Texlive, it builds just fine! So there is some incompatibility with the older version that ships with Mint 22.

Best,

Jérôme


On 11/18/25 15:36, Jérôme Hénin wrote:

That was using the unmodified files from your repo.

the standard output:

tex4ht-booksite (main)$  make4ht -e build.lua -c config.cfg -lj index -d out document.tex
[STATUS] make4ht: Conversion started
[STATUS] make4ht: Input file: document.tex
[WARNING] tocid: char-def module not found
[WARNING] tocid: cannot fix section id's
[ERROR] htlatex: Compilation errors in the htlatex run
[ERROR] htlatex: Filename     Line    Message
[ERROR] htlatex: ./config.cfg         22       LaTeX Error: Missing \begin{document} in `config.cfg'. [ERROR] htlatex: ./config.cfg         24       LaTeX Error: Missing \begin{document} in `config.cfg'.
[ERROR] htlatex: Compilation errors in the htlatex run
[ERROR] htlatex: Filename     Line    Message
[ERROR] htlatex: ./config.cfg         22       LaTeX Error: Missing \begin{document} in `config.cfg'. [ERROR] htlatex: ./config.cfg         24       LaTeX Error: Missing \begin{document} in `config.cfg'.
[ERROR] htlatex: Compilation errors in the htlatex run
[ERROR] htlatex: Filename     Line    Message
[ERROR] htlatex: ./config.cfg         22       LaTeX Error: Missing \begin{document} in `config.cfg'. [ERROR] htlatex: ./config.cfg         24       LaTeX Error: Missing \begin{document} in `config.cfg'.
[WARNING] collapsetoc: Cannot find TOC level for: toclof
[WARNING] collapsetoc: Cannot find TOC element using query: nav.TOC
[WARNING] collapsetoc: Cannot find TOC element using query: nav.TOC
[WARNING] collapsetoc: Cannot find TOC element using query: nav.TOC
[WARNING] collapsetoc: Cannot find TOC element using query: nav.TOC
[WARNING] collapsetoc: Cannot find TOC element using query: nav.TOC
[WARNING] collapsetoc: Cannot find TOC element using query: nav.TOC
[STATUS] make4ht: Conversion finished


And texput.log contains:

This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Debian) (preloaded format=latex 2025.11.17)  18 NOV 2025 14:42
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**

! Emergency stop.
<*>

End of file on the terminal!


Here is how much of TeX's memory you used:
17 strings out of 476081
381 string characters out of 5792769
1922972 words of memory out of 5000000
22136 multiletter control sequences out of 15000+600000
558069 words of font info for 36 fonts, out of 8000000 for 9000
59 hyphenation exceptions out of 8191
11i,0n,13p,500b,8s stack positions out of 10000i,1000n,20000p,200000b,200000s
No pages of output.

Best,

Jérôme


On 11/18/25 15:31, Michal Hoftich wrote:
Hi Jérôme,

do you use the unmodified template file or your own file? Can you send me the TeX file if it is your own, or the log file if you use the original template?

Best regards,
Michal

On Tue, Nov 18, 2025 at 3:00 PM Jérôme Hénin <[email protected]> wrote:

    Hi Michal,

    Which version of tex4ht are you using to build? I get these errors:

    [ERROR] htlatex: Compilation errors in the htlatex run
    [ERROR] htlatex: Filename     Line    Message
    [ERROR] htlatex: ./config.cfg         22       LaTeX Error:
    Missing \begin{document} in `config.cfg'.
    [ERROR] htlatex: ./config.cfg         24       LaTeX Error:
    Missing \begin{document} in `config.cfg'.

    It seems to be caused by this:

    
https://tex.stackexchange.com/questions/748777/tex4ht-xr-package-in-texlive-2025

    but the fix they suggest there doesn't change anything for me.

    I am using the Texlive packages in Linux Mint 22, which has a
    fairly old version of tex4ht it seems:

    tex4ht.c (2018-07-03-10:36 kpathsea)

    I am installing a new Texlive to try that.

    Best,

    Jérôme


    On 11/18/25 11:28, Michal Hoftich wrote:
    Hi Jérôme,

    I've found that there is a wrong link to the Github repo in that
    project, the correct link is this:
    https://github.com/michal-h21/tex4ht-booksite

    Also see this presentation (I hope Google Translate or DeepL
    will be able to translate it to English) for some more
    information:
    
https://www.kodymirus.cz/presentations/ossconf2025.html#sablona-pro-webove-verze-knih

    Best regards,
    Michal

    On Tue, Nov 18, 2025 at 10:51 AM Jérôme Hénin
    <[email protected]> wrote:

        Hi Michal,

        This is beautiful!

        I will give it a try, thank you!

        Jérôme

Reply via email to