On 10/9/2024 4:56 AM, Michal Hoftich wrote:
Hi Nasser,
\usepackage{makecell}
\setcellgapes{3pt} %added march 14,2021
\begin{document}
The issue is with the makecell package, which redefines some tabular
internals. I am surprised that it worked until now. I've fixed this issue
in the sources.
Thanks for the fix Michal. I just did an update of TL
and saw new tex4ht downloaded. Now the compile error is gone.
Just one very minor issue. In HTML the cline remains black
and not gray colored in the table.
Not a big issue for me. I use cline very rarely. But if it
is something easy for you to fix and does not take time,
it will good to correct this also so all lines in the table
are gray like in PDF.
Attached screen shot . You see the line below "multiplicity"
is black and not gray.
Here is the code again just in case.
------------------
\documentclass[12pt]{book}%
\usepackage{xcolor}
\usepackage{colortbl}
\definecolor{lightgray}{rgb}{0.83, 0.83, 0.83}
\arrayrulecolor{lightgray}
\usepackage{makecell} %make sure before arydshln
\setcellgapes{3pt} %added march 14,2021
\begin{document}
\begin{center}
\setcellgapes{5pt}
\makegapedcells
\begin{tabular}{|*{5}{c|} }\hline
& \multicolumn{2}{c|}{ multiplicity} & & \\
\cline{2-3}
eigenvalue & algebraic $m$& geometric $k$& defective? & eigenvectors \\ \hline
$3 i$&$1$&$1$&No&$\left[\begin{array}{c}
i
\\
1
\end{array}\right]$ \\ \hline
$-3 i$&$1$&$1$&No&$\left[\begin{array}{c}
-i
\\
1
\end{array}\right]$ \\ \hline
\end{tabular}
\end{center}
\end{document}
-----------------
Compiled using
make4ht -ulm default -a debug A.tex 'mathjax,htm'
Thanks again for the fix. I switched all my tabled now
to use gray borders, as I think they look better. I also
asked chatGPT and she also agreed:
"In most cases, a gray border for a table is generally considered
better than a black border because it is less visually
jarring and provides a more subtle separation between table
cells, making the content within the table easier to read,
especially on screens with high brightness or for users with
visual sensitivities; while a black border can appear too
harsh and distracting."
--Nasser