LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Thu, 23 Jul 2020 09:07:23 +0200
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
MIME-Version: 1.0
Message-ID: <[log in to unmask]>
In-Reply-To: <20200723020053.jq6lnwl7k23htouz@vento15post8>
Content-Type: text/plain; charset="UTF-8"
From: Michal Hoftich <[log in to unmask]>
Parts/Attachments: text/plain (49 lines)
Hi all,

> Inspired by issue #900 on the PGF/TikZ repo [1], I'd like to kick off
> the discussion on how to correctly integrate the new hook management
> system into existing LaTeX package codebases.

I've just tested latex-dev with TeX4ht and I can confirm that it
fatally crashes with latex-dev.

Test file sample.tex:

Hello world

build file that requires latex-dev, sample.mk4:

Make:htlatex {htlatex = "lualatex-dev"}

Compile using:

make4ht -a debug sample.tex

The result:

[STATUS]  make4ht: Conversion started
[STATUS]  make4ht: Input file: sample.tex
[ERROR]   htlatex: Compilation errors in the htlatex run
[ERROR]   htlatex: Filename     Line    Message
[ERROR]   htlatex: ./sample.tex         2        Extra \endgroup.
[ERROR]   htlatex: ?    ?        Emergency stop.
[ERROR]   htlatex: ?    ?         ==> Fatal error occurred, no output
PDF file produced!
[FATAL]   make4ht-lib: Fatal error. Command htlatex returned exit code 1

TeX4ht patches \document command on line 166 in tex4ht.sty. When I
comment out this definition, the compilation doesn't fail, but tags
inserted at the beginning of the HTML file are missing. So, the
question is, how can we adapt this existing code for the new LaTeX
hook handling?

Best regards,