From 8ea6d3f1b5089ae779b34b8e47768a28731f6274 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 3 Jul 2022 21:53:50 +0000 Subject: \arrayrulecolor outside tabular, tex4ht r1165 git-svn-id: svn://tug.org/texlive/trunk@63804 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/generic/tex4ht/ChangeLog | 6 ++++++ Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/source/generic') diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 7f361c46d9b..c01b437555c 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,9 @@ +2022-07-03 Michal Hoftich + + * tex4ht-4ht.tex (colortbl.4ht): fixed error when \arrayrulecolor is + used outside of Tabular. + https://tex.stackexchange.com/a/649734/2891 + 2022-07-01 Michal Hoftich * tex4ht-4ht.tex (hyperref.4ht): fixed handling of undefined diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex index bd8a32515b1..e5c61d58e4a 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1164 2022-07-01 14:16:09Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1165 2022-07-03 18:18:19Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2022 TeX Users Group @@ -27773,14 +27773,18 @@ need also a treatment similar to \''\CT@column@color'? \NewConfigure{rowcolor}{1} >>> -Fixes for colored hlines +Fixes for colored hlines. The \`|\hline:color| can be used in CSS, for instance. \<<< % default hline color is black \def\hline:color{000} % save rule color in format usable in CSS \newcommand\tmp:arrayrulecolor[2][named]{% -\noalign{\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp}% +\ifvoid\@arstrutbox% test if we are inside a tabular environment +\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp% we are not +\else% +\noalign{\convertcolorspec{#1}{#2}{HTML}\:tmp\global\let\hline:color\:tmp}% we are +\fi } \HLet\arrayrulecolor\tmp:arrayrulecolor >>> -- cgit v1.2.3