From 13336a56f446bb70cdda6aeb788020d82c1022ae Mon Sep 17 00:00:00 2001
From: bret watson <666900+baradhili@users.noreply.github.com>
Date: Wed, 9 Sep 2026 16:57:23 +0800
Subject: [PATCH] support row shading and border rule colors in
calstable2tabular
- emit \rowcolor when all entries of a row share a background color
- emit \arrayrulecolor switches for colored frame rules (first row border
color at the table start, per-row bottom colors, reset to black)
- derive the TeX color name via tr:color-hex-rgb-to-keyword so it matches
the \definecolor names generated by xml2tex:rgb-to-tex-color
---
xsl/calstable2tabular.xsl | 89 ++++++++++++++++++++++++++++++++-------
1 file changed, 74 insertions(+), 15 deletions(-)
diff --git a/xsl/calstable2tabular.xsl b/xsl/calstable2tabular.xsl
index f5fc22b..9c53278 100755
--- a/xsl/calstable2tabular.xsl
+++ b/xsl/calstable2tabular.xsl
@@ -252,17 +252,49 @@
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
@@ -275,13 +307,16 @@
+
+
+
-
-
+
+
+
+
+
+
@@ -313,20 +354,38 @@
$col-separator),
$col-separator)"/>
+
+
+
+
-
+
+
+
+
+
+
+
-