bugtex4ht - Bugs: bug #636, tex4ht loses table boarders when...

 
 
Show feedback again

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

bug #636: tex4ht loses table boarders when adding color

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Sat Sep 28 04:32:47 2024  
 
Category: NonePriority: 5 - Normal
Severity: 7 - ImportantStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Mon Sep 30 10:57:10 2024, comment #1:

Hi Nasser,

thanks for the report. There were two issues. First is that Longtable tables don't support colored \hline, the other is that \arrayrulecolor used in the document preamble doesn't save the color for TeX4ht. I've fixed the issue in TeX4ht sources, so it should be available in TL soon.

Best,
Michal

Michal Hoftich <michal_h21>
Project Member
Sat Sep 28 04:32:47 2024, original submission:

I wanted to have table with light gray color for its borders.

So I wrote this

-----------------------
\documentclass[12pt]{book}%
\usepackage{longtable}

\usepackage{xcolor,colortbl}
\definecolor{lightgray}{rgb}{0.83, 0.83, 0.83}
\arrayrulecolor{lightgray}

\begin{document}

\begin{longtable}{|p{2in}|p{2in}|p{2in}|}\hline
A&B&C \\ \hline
A&B&C \\ \hline
A&B&C \\ \hline
\end{longtable}
\end{document}
-------------------------

It works OK in pdf.

But Compiled with

make4ht -ulm default -a warning A.tex 'mathjax,htm'

Gives HTML with the table missing all the horizontal table edges between the rows.

Removing the commands

\usepackage{xcolor,colortbl}
\definecolor{lightgray}{rgb}{0.83, 0.83, 0.83}
\arrayrulecolor{lightgray}

Now all the table borders show up. (using default black color).

TL 2024

Nasser M. Abbasi <nma123>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by nma123 (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):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray