[tex4ht] [bug #636] tex4ht loses table boarders when adding color

Nasser M. Abbasi nma at 12000.org
Tue Oct 8 14:06:55 CEST 2024


On 10/6/2024 11:46 AM, Michal Hoftich wrote:
> 
> You are right. The vertical lines should be coloured too. I've fixed that
> in TeX4ht sources, it should work soon.
> 

Hello Michal;

I found small problem. Using latest tex4ht, the borders now
all becomes gray OK as expected. But when adding

       \usepackage{booktabs}

They go back to black again. in PDF they remain gray.

It looks like something in booktabs package overrides your fix.

For now, I removed booktabs from my latex. But thought
to let you know about this conflict.

Below is MWE which shows the problem

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

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

\usepackage{longtable} %2/24/16  does not work in two columns

\usepackage{booktabs}%comment this and now border become gray as expected

\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}
-----------------------------

Compiled using

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

Now borders are solid black, not gray because of adding the
booktabs packages.

Regards,
--Nasser



More information about the tex4ht mailing list.