public inbox for virtio-comment@lists.linux.dev
 help / color / mirror / Atom feed
* VirtIO html render failure using htlatex
@ 2025-10-03 17:19 Alex Bennée
  2025-10-07  8:33 ` Manos Pitsidianakis
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Bennée @ 2025-10-03 17:19 UTC (permalink / raw)
  To: tex-live; +Cc: virtio-comment


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,

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: VirtIO html render failure using htlatex
  2025-10-03 17:19 VirtIO html render failure using htlatex Alex Bennée
@ 2025-10-07  8:33 ` Manos Pitsidianakis
  2025-10-07 13:14   ` Alex Bennée
  0 siblings, 1 reply; 3+ messages in thread
From: Manos Pitsidianakis @ 2025-10-07  8:33 UTC (permalink / raw)
  To: Alex Bennée; +Cc: tex-live, virtio-comment, tex4ht

On Fri, Oct 3, 2025 at 8:19 PM Alex Bennée <alex.bennee@linaro.org> wrote:
>
>
> 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 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.

-- 
Manos Pitsidianakis
Emulation and Virtualization Engineer at Linaro Ltd

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: VirtIO html render failure using htlatex
  2025-10-07  8:33 ` Manos Pitsidianakis
@ 2025-10-07 13:14   ` Alex Bennée
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Bennée @ 2025-10-07 13:14 UTC (permalink / raw)
  To: Manos Pitsidianakis; +Cc: tex-live, virtio-comment, tex4ht

Manos Pitsidianakis <manos.pitsidianakis@linaro.org> writes:

> On Fri, Oct 3, 2025 at 8:19 PM Alex Bennée <alex.bennee@linaro.org> wrote:
>>
>>
>> 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 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.

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-07 13:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-03 17:19 VirtIO html render failure using htlatex Alex Bennée
2025-10-07  8:33 ` Manos Pitsidianakis
2025-10-07 13:14   ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox