Re: [PATCH v3 08/11] virtio-html.cfg: implement workaround for htlatex regression

Manos Pitsidianakis <[email protected]> Thu, 30 Oct 2025 09:25:43 +0200
Newsgroups dev.linux.lists.virtio-comment
Message-ID <CAAjaMXZuV=efU0tMpHC9+yw=W5TXCHH+HRg-REmz8fOV6WdF7w@mail.gmail.com>
On Fri, Oct 10, 2025 at 7:29 PM Alex Bennée <[email protected]> wrote:
>
> A regression in htlatex broke the building of html in new Debian
> Trixie systems. The bug has been reported upstream:
>
>   https://tug.org/pipermail/tex4ht/2025q4/003774.html
>
> and the following change is a suggested workaround until the eventual
> fix is reaches the texlive (and by implication distro) repos:
>
>   https://svn.gnu.org.ua/viewvc/tex4ht/trunk/lit/tex4ht-html4.tex?r1=1750&r2=1749&pathrev=1750
>
> Signed-off-by: Alex Bennée <[email protected]>
> ---
>  virtio-html.cfg | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/virtio-html.cfg b/virtio-html.cfg
> index c5b9a94..63bf9af 100644
> --- a/virtio-html.cfg
> +++ b/virtio-html.cfg
> @@ -1,4 +1,5 @@
> -\Preamble{html}
> +\Preamble{html}
> +\expandafter\providecommand\csname hline:color\endcsname{000}
>  \begin{document}
>         \ConfigureMark{chapter}{\HCode{<hr><span class="titlemark">}\thechapter\HCode{</span>}}
>         \ConfigureMark{paragraph}{\HCode{<span class="titlemark">}\theparagraph\HCode{</span>}}
> --
> 2.47.3
>
>

This fixes the problem for me.

Reviewed-by: Manos Pitsidianakis <[email protected]>
Tested-by: Manos Pitsidianakis <[email protected]>