[tex4ht] [bug #442] Bugs from cmidrule of booktabs

Alex Watson Alex at caskly.org
Sun Oct 20 22:45:01 CEST 2019


                 Summary: Bugs from cmidrule of booktabs
                 Project: tex4ht
            Submitted by: rotprsl2
            Submitted on: Sun 20 Oct 2019 23:43:11 EEST
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



The attached tex file, and html generated by ` make4ht -uf html5+tidy
ht-tabular-book.tex`, illustrates some issues with \cmidrule from booktabs.

(I did not use the build.lua file from bug #441, to avoid complicating
matters, but it does not affect this bug.)

The first table is 6 columns wide and contains a single \cmidrule{2-3}. There
are two problems:
(1) the cmidrule should be over columns 2-3, but it is over columns 1-3
(2) the HTML is not valid -- the cmidrule produces a tr containing a td
spanning 1 column and a td spanning 2 columns. But the table is 6 columns

I note that 'rule' effect is achieved with a CSS border applied to the tr, not
the relevant td, which might explain (1).

The second table contains multiple non-overlapping \cmidrules, not an uncommon
use-case for booktabs, which should appear side by side. In addition to the
problems above, each \cmidrule gets its own tr, which means that they appear
stacked on top of each other.

Finally - this may be more of a feature request than a bug, and it applies to
the other rules too - is it the right thing semantically to have separate tr
to put rules in? For instance, you would not want a screenreader to read out
an extra row in this situation.


File Attachments:

Date: Sun 20 Oct 2019 23:43:11 EEST  Name: ht-tabular-book.html  Size: 4kB  
By: rotprsl2

Date: Sun 20 Oct 2019 23:43:11 EEST  Name: ht-tabular-book.tex  Size: 471B  
By: rotprsl2



Reply to this item at:


  Message sent via/by Puszcza

More information about the tex4ht mailing list