texlive[63804] Master/texmf-dist: \arrayrulecolor outside tabular,
commits+karl at tug.org
commits+karl at tug.org
Sun Jul 3 23:53:51 CEST 2022
Revision: 63804
http://tug.org/svn/texlive?view=revision&revision=63804
Author: karl
Date: 2022-07-03 23:53:50 +0200 (Sun, 03 Jul 2022)
Log Message:
-----------
\arrayrulecolor outside tabular, tex4ht r1165
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1165
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/colortbl.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2022-07-03 20:59:22 UTC (rev 63803)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2022-07-03 21:53:50 UTC (rev 63804)
@@ -1,3 +1,9 @@
+2022-07-03 Michal Hoftich <michal.h21 at gmail.com>
+
+ * 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 <michal.h21 at gmail.com>
* tex4ht-4ht.tex (hyperref.4ht): fixed handling of undefined
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2022-07-03 20:59:22 UTC (rev 63803)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2022-07-03 21:53:50 UTC (rev 63804)
@@ -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,7 +27773,7 @@
\NewConfigure{rowcolor}{1}
>>>
-Fixes for colored hlines
+Fixes for colored hlines. The \`|\hline:color| can be used in CSS, for instance.
\<fix colortbl\><<<
% default hline color is black
@@ -27780,7 +27780,11 @@
\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
>>>
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/colortbl.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/colortbl.4ht 2022-07-03 20:59:22 UTC (rev 63803)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/colortbl.4ht 2022-07-03 21:53:50 UTC (rev 63804)
@@ -1,6 +1,6 @@
-% colortbl.4ht (2021-05-06-14:12), generated from tex4ht-4ht.tex
+% colortbl.4ht (2022-07-03-14:21), generated from tex4ht-4ht.tex
% Copyright 1997-2009 Eitan M. Gurari
-% Copyright 2009-2021 TeX Users Group
+% Copyright 2009-2022 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2021-05-06-14:12}
+\immediate\write-1{version 2022-07-03-14:21}
\RequirePackage{xcolor}
@@ -99,7 +99,11 @@
\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
\def\convert:colorspec#1 #2 #3 #4{%
More information about the tex-live-commits
mailing list.