texlive[68722] Master/texmf-dist: decimal points and p-width option,

commits+karl at tug.org commits+karl at tug.org
Wed Nov 1 21:48:09 CET 2023


Revision: 68722
          https://tug.org/svn/texlive?view=revision&revision=68722
Author:   karl
Date:     2023-11-01 21:48:09 +0100 (Wed, 01 Nov 2023)
Log Message:
-----------
decimal points and p-width option, tex4ht r1401

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=1401

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-11-01 20:15:10 UTC (rev 68721)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-11-01 20:48:09 UTC (rev 68722)
@@ -1,3 +1,9 @@
+2023-11-01  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.4ht: fixed support for font sizes with decimal points
+	in the `p-width` option.
+
+
 2023-10-31  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (enotez.4ht),

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex	2023-11-01 20:15:10 UTC (rev 68721)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex	2023-11-01 20:48:09 UTC (rev 68722)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1400 2023-10-31 16:57:08Z michal_h21 $
+% $Id: tex4ht-html4.tex 1401 2023-11-01 11:17:59Z michal_h21 $
 % Compile 4 times: latex tex4ht-html4
 % Copy html4.4ht into the work directory before all but the last compilation.
 %
@@ -19990,12 +19990,14 @@
 
 \<configure html4 latex\><<<
 \:CheckOption{p-width} \if:Option 
+  \ExplSyntaxOn
   \Configure{HColWidth}
      {\ifnum\HRow=1% output CSS only on the first row, to prevent duplication
-      \tmp:dim=\HColWidth \divide\tmp:dim by \f at size\relax
+      \tmp:dim=\fp_to_dim:n{\dim_to_fp:n{\HColWidth}/\f at size}
       \Css{\#TBL-\TableNo\space td:nth-child(\HCol)% CSS selects ID of the current table column
           {width:\strip at pt\tmp:dim em;}}
      \fi}
+  \ExplSyntaxOff
 \else
    \Log:Note{for width specifications of tabular p entries, use
        the `p-width' command line option or a configuration similar

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2023-11-01 20:15:10 UTC (rev 68721)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2023-11-01 20:48:09 UTC (rev 68722)
@@ -1,4 +1,4 @@
-% html4.4ht (2023-10-31-12:28), generated from tex4ht-html4.tex
+% html4.4ht (2023-11-01-13:29), generated from tex4ht-html4.tex
 % Copyright 2009-2023 TeX Users Group
 % Copyright 1997-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2023-10-31-12:28}
+\immediate\write-1{version 2023-11-01-13:29}
 
 \exit:ifnot{8859-6,% 
 CJK,% 
@@ -3402,12 +3402,14 @@
           use the command line option `fonts'}
 \fi
 \:CheckOption{p-width} \if:Option
+  \ExplSyntaxOn
   \Configure{HColWidth}
      {\ifnum\HRow=1% output CSS only on the first row, to prevent duplication
-      \tmp:dim=\HColWidth \divide\tmp:dim by \f at size\relax
+      \tmp:dim=\fp_to_dim:n{\dim_to_fp:n{\HColWidth}/\f at size}
       \Css{\#TBL-\TableNo\space td:nth-child(\HCol)% CSS selects ID of the current table column
           {width:\strip at pt\tmp:dim em;}}
      \fi}
+  \ExplSyntaxOff
 \else
    \Log:Note{for width specifications of tabular p entries, use
        the `p-width' command line option or a configuration similar



More information about the tex-live-commits mailing list.