bugtex4ht - Bugs: bug #313, Irregular formatting of longtable...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #313: Irregular formatting of longtable entries in list of tables

Submitted by:  Ulrich Müller <ulm>
Submitted on:  Sat 11 Jun 2016 07:20:11 PM EEST  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

(Jump to the original submission Jump to the original submission)

Mon 22 Jun 2020 12:57:21 PM EEST, comment #8:

No, you don't have to. The problem with caption package is that it changes lot of things, so it caused Tex4ht to fail until recently. It is still probably best to not use it with TeX4ht, unless you use specific commands provided by it.

I will look at this issue, but it is quite hard to debug

Michal Hoftich <michal_h21>
Project Member
Mon 22 Jun 2020 12:23:17 PM EEST, comment #7:

Would you prefer if I filed a separate bug for the caption.{sty,4ht} problem?

The longtable problem that I had originally reported is fixed by the new longtable.4ht (file #346).

Ulrich Müller <ulm>
Wed 17 Jun 2020 03:07:20 AM EEST, comment #6:

Indeed, with the minimal example I had attached (bug.tex) the TOC appears to be correct.

Further investigation shows that the bad TOC entries for tables are caused by some interaction with the caption package (version 2020/01/03 v3.4h). I am going to attach a new minimal example.

If I replace the caption package by the one that was shipped with TeX Live 2019 (version 2018/10/06 v3.3-154), the TOC entries are fine.

(file #348)

Ulrich Müller <ulm>
Tue 16 Jun 2020 11:54:56 PM EEST, comment #5:

It is strange, I get correct LOT entries for regular tables with up-to date TL 2020. See the attached image how your sample file is rendered on my machine.

(file #347)

Michal Hoftich <michal_h21>
Project Member
Tue 16 Jun 2020 05:58:13 PM EEST, comment #4:

Yes, now the longtable entries in the TOC look like the section entries, i.e. the link does not include the table's number.

But as I said yesterday, with TeX Live 2020 the TOC entries for normal tables are broken as well. Not sure if that is a regression in tex4ht itself, or caused by some other change from TeX Live 2019 to 2020.

Ulrich Müller <ulm>
Tue 16 Jun 2020 05:43:34 PM EEST, comment #3:

It seems that we didn't handled TOC writing for longtable. I've added the basic support and also fixed the missing colon in longtable caption. You can test the attached longtable.4ht.

(file #346)

Michal Hoftich <michal_h21>
Project Member
Mon 15 Jun 2020 07:55:14 PM EEST, comment #2:

Update: With TeX Live 2020, the table's number is included inside of the link also for normal tables.

In other words, it is now consistent within the list of tables, but it is inconsistent with the table of contents.

Ulrich Müller <ulm>
Sat 11 Jun 2016 07:32:25 PM EEST, comment #1:

Downstream (Gentoo Linux) bug: https://bugs.gentoo.org/580530

Ulrich Müller <ulm>
Sat 11 Jun 2016 07:20:11 PM EEST, original submission:

In the list of tables, entries for longtables include the table's number inside of the link, whereas entries for normal tables (or for figures) don't include it.

The generated HTML for a table entry looks like this:

<span class="lotToc" >1&#x00A0;<a
href="#x1-10011">A table</a></span><br />

Whereas for a longtable it is:

<span class="lotToc" >&#x00A0;<a
href="#x1-1003">2 A longtable</a></span>

I am attaching a minimal example to reproduce the bug in bug.tex and the output generated with "mk4ht xhlatex bug" as bug.html.

Ulrich Müller <ulm>

 

Attached Files
file #348:  bug2.tex added by ulm (223B - text/x-tex)
file #346:  longtable.4ht added by michal_h21 (7kB - application/octet-stream)
file #242:  bug.tex added by ulm (202B - text/x-tex)
file #243:  bug.html added by ulm (3kB - text/html)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Updated the item)
  • -unavailable- added by ulm (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    5 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 17 Jun 2020 03:07:20 AM EESTulmAttached File-=>Added bug2.tex, #348
    Tue 16 Jun 2020 11:54:56 PM EESTmichal_h21Attached File-=>Added Snímek z 2020-06-16 22-48-51.png, #347
    Tue 16 Jun 2020 05:43:34 PM EESTmichal_h21Attached File-=>Added longtable.4ht, #346
    Sat 11 Jun 2016 07:20:11 PM EESTulmAttached File-=>Added bug.tex, #242
      Attached File-=>Added bug.html, #243
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray