[tex4ht-commits] [SCM] tex4ht updated: r1359 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Aug 18 13:54:13 CEST 2023


Author: michal_h21
Date: 2023-08-18 11:54:13 +0000 (Fri, 18 Aug 2023)
New Revision: 1359

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
simplified setting of table column widths

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-08-16 14:04:38 UTC (rev 1358)
+++ trunk/lit/ChangeLog	2023-08-18 11:54:13 UTC (rev 1359)
@@ -1,3 +1,9 @@
+2023-08-18  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): simplified setting of table column
+	widths with the `p-width` option.
+	https://tex.stackexchange.com/a/693816/2891
+
 2023-08-16  Michal Hoftich  <michal.h21 at gmail.com>
 	
 	* tex4ht-4ht.tex (memoir.4ht): added indexing support for Memoir.

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2023-08-16 14:04:38 UTC (rev 1358)
+++ trunk/lit/tex4ht-html4.tex	2023-08-18 11:54:13 UTC (rev 1359)
@@ -20046,13 +20046,11 @@
 
 \<configure html4 latex\><<<
 \:CheckOption{p-width} \if:Option 
-  |<10 em constant|>
   \Configure{HColWidth}
      {\ifnum\HRow=1% output CSS only on the first row, to prevent duplication
-      \tmp:dim=\HColWidth \divide\tmp:dim by \ten:Em\relax
-      \tmp:dim=10\tmp:dim
-      \Css{\#TBL-\TableNo-\HCol% CSS selects ID of the current table column
-          {width:\expandafter\x:Em \the\tmp:dim em;}}
+      \tmp:dim=\HColWidth \divide\tmp:dim by \f at size\relax
+      \Css{\#TBL-\TableNo\space td:nth-child(\HCol)% CSS selects ID of the current table column
+          {width:\strip at pt\tmp:dim em;}}
      \fi}
 \else
    \Log:Note{for width specifications of tabular p entries, use



More information about the tex4ht-commits mailing list.