Follow-up Comment #4, bug #315 (project tex4ht):

Thanks for the report. You are right, there are extra elements. Try the
attached version of longtable.4ht, it should fix the issue with <caption>
nested inside <tr>. 

The issue with caption position is more difficult, as tables have always
<colgroup> element inserted at their start by the configuration for the table
start. So we need to do some post-processing to move <caption> to the first
place. This can be done using the build.lua file. I see that you still use
mk4ht, you should use make4ht instead. Like:

$ make4ht -f xhtml -e build.lua bug.tex

I will add the code for caption moving to make4ht, so it should work
automatically after the next update.

(file #567, file #568)
    _______________________________________________________

Additional Item Attachment:

File name: build.lua                      Size:0 KB
File name: longtable.4ht                  Size:6 KB


    _______________________________________________________

Reply to this item at: <https://puszcza.gnu.org.ua/bugs/?315>

_______________________________________________
Message sent via/by Puszcza <https://puszcza.gnu.org.ua/>

Reply via email to