VirtIO html render failure using htlatex
Hi,
I was attempting to re-build the VirtIO specifications since upgrading my main machine to Debian Trixie. The build fails to complete with:
! Undefined control sequence.
\f:HBorder ...border-top:1px solid \#\hline:color
;"></td>
l.867 R
ead / Write & Device Specific & \\ ?
! Emergency stop.
\f:HBorder ...border-top:1px solid \#\hline:color
The final result is an empty html file. I verified this was a regression by running the same build on Bookworm using distrobox. It also works with the latest Ubuntu. I confirmed it fails on the latest texlive image:
📦[alex@texlive virtio-spec.git]> htlatex --version
This is pdfTeX, Version 3.141592653-2.6-1.40.28 (TeX Live 2025) (preloaded format=latex)
I've created a minimal test case that triggers the problem:
--8<---------------cut here---------------start------------->8--- \documentclass{article}
\usepackage{hhline}
\begin{document}
\begin{tabular}{ |l||l|l| }
\hline
Bits & Device Specific & Purpose \\
\cline{1-2}
Read / Write & Device Specific & \\
\cline{1-2}
Purpose & Device Specific & \\
\hline
\end{tabular}
\end{document}
--8<---------------cut here---------------end--------------->8---
save as test.tex and run:
htlatex test.tex
I'm aware make4ht is an alternative which fails with a slightly different set of errors:
📦[alex@texlive virtio-spec.git]> make4ht test.tex "html5"
[STATUS] make4ht: Conversion started [STATUS] make4ht: Input file: test.tex [ERROR] htlatex: Compilation errors in the htlatex run [ERROR] htlatex: Filename Line Message [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.8 R ead / Write & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.8 R ead / Write & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.10 P urpose & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.10 P urpose & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: Compilation errors in the htlatex run [ERROR] htlatex: Filename Line Message [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.8 R ead / Write & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.8 R ead / Write & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.10 P urpose & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.10 P urpose & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: Compilation errors in the htlatex run [ERROR] htlatex: Filename Line Message [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.8 R ead / Write & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.8 R ead / Write & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.10 P urpose & Device Specific & \\ The control sequence at the end of the top line [ERROR] htlatex: ./test.tex ? Undefined control sequence. [STATUS] htlatex: <- ;"></td> l.10 P urpose & Device Specific & \\ The control sequence at the end of the top line [STATUS] make4ht: Conversion finished
Running the same command on Debian Bookworm yields:
📦[alex@debian-bookworm virtio-spec.git]> make4ht test.tex "html5"
[STATUS] make4ht: Conversion started [STATUS] make4ht: Input file: test.tex [STATUS] make4ht: Conversion finished
For references the working versions are:
📦[alex@debian-bookworm virtio-spec.git]> make4ht --version make4ht version v0.3l 📦[alex@debian-bookworm virtio-spec.git]> htlatex --version This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/Debian) (preloaded format=latex)
Any suggestions?
Thanks,
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Quoted 7 lines · Alex Bennée
Hi,
I was attempting to re-build the VirtIO specifications since upgrading my main machine to Debian Trixie. The build fails to complete with:
Quoted 9 lines
! Undefined control sequence.
\f:HBorder ...border-top:1px solid \#\hline:color;"></td> l.867 R ead / Write & Device Specific & \\?
! Emergency stop.
\f:HBorder ...border-top:1px solid \#\hline:color
The problem are the tabular environment's \cline macros in transport-pci.tex, removing them will make compilation work.
Perhaps this tex4ht version does not define it like it defines \hline?
CC'ing tex4ht mailing list.
Signature · 2 lines
Manos Pitsidianakis Emulation and Virtualization Engineer at Linaro Ltd
Quoted 18 lines · Manos Pitsidianakis
Quoted 7 lines · Alex Bennée
Hi,
I was attempting to re-build the VirtIO specifications since upgrading my main machine to Debian Trixie. The build fails to complete with:
Quoted 9 lines
! Undefined control sequence.
\f:HBorder ...border-top:1px solid \#\hline:color;"></td> l.867 R ead / Write & Device Specific & \\?
! Emergency stop.
\f:HBorder ...border-top:1px solid \#\hline:color
Quoted 6 lines
The problem are the tabular environment's \cline macros in transport-pci.tex, removing them will make compilation work.
Perhaps this tex4ht version does not define it like it defines \hline?
CC'ing tex4ht mailing list.
Karl already forwarded it:
https://tug.org/pipermail/tex4ht/2025q4/003775.html
and:
https://svn.gnu.org.ua/viewvc/tex4ht/trunk/lit/tex4ht-html4.tex?r1=1750&r2=1749&pathrev=1750
I'm going to roll the workaround in my virtio spec patches in a bit.
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro