texlive[63180] Master/texmf-dist: enumitem fixes, tex4ht r1123;

commits+karl at tug.org commits+karl at tug.org
Fri Apr 29 23:38:28 CEST 2022


Revision: 63180
          http://tug.org/svn/texlive?view=revision&revision=63180
Author:   karl
Date:     2022-04-29 23:38:28 +0200 (Fri, 29 Apr 2022)
Log Message:
-----------
enumitem fixes, tex4ht r1123; multicol in html4, tex4ht r1124

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=1123
    http://tug.org/svn/texlive?view=revision&revision=1124

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

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-04-29 21:15:04 UTC (rev 63179)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-04-29 21:38:28 UTC (rev 63180)
@@ -1,3 +1,13 @@
+2022-04-29  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (multicol.4ht),
+	* tex4ht-html4.tex (html4.4ht): moved HTML code for Multicol to
+	from multicol.4ht to html4.4ht. Fixed minor CSS issues.
+	* tex4ht-4ht.tex (enumitem.4ht): execute code stored in the "after"
+	key after closing commands for the environment.
+	* tex4ht-html4.tex (html4.4ht): vertically align enumitem numers and
+	content, provide some vertical spacing.
+
 2022-04-28  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-ooffice.tex (ooffice.4ht): added dummy definition of

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2022-04-29 21:15:04 UTC (rev 63179)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2022-04-29 21:38:28 UTC (rev 63180)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1121 2022-04-28 13:36:29Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1124 2022-04-29 15:04:44Z michal_h21 $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2022 TeX Users Group    
@@ -28378,8 +28378,23 @@
 \endinput
 >>>        \AddFile{9}{enumitem}
 
+If user opens a new environment in Enumitem's "before" key,
+it will prevent execution of the closing command for the 
+original environment, and generated tags will be mismatched.
+
+This code postpones execution of code from the "after" key after
+closing of the Enumitem environment, so it can be correctly closed.
+
+See \Link[https://tex.stackexchange.com/q/642439/2891] this example
+what can go wrong\EndLink.
+
 \<enumitem config\><<<
-
+\AddToHook{env/enumerate/end}{\ifx\enit at after\@empty\else%
+  \let\enit:after\enit at after
+  \let\enit at after\@empty
+  \let\enumerate:executed\@empty
+  \append:def\end:DL{\enit:after}
+\fi}
 >>>
 
 %%%%%%%%%%%%%
@@ -32620,7 +32635,7 @@
 
 \def\columnrulecolor{\a:columnrulecolor}
 \NewConfigure{columnrulecolor}{1}
-\Configure{columnrulecolor}{\#555;}
+\Configure{columnrulecolor}{\#555}
 
 % legal color
 
@@ -32671,37 +32686,19 @@
 \NewConfigure{multicols}{1}
 \Configure{multicols}{columns}
 
-\def\:wr:mcol:css{%
-        \Css{.\a:multicols-\mcolnum\space p:first-child { margin-top: 0em; }}%
-        \Css{.\a:multicols-\mcolnum {%
-           -moz-column-count:\mcolnum; 
-           -webkit-column-count:\mcolnum;
-           column-count:\mcolnum;
-           -moz-column-gap: \a:columngap;
-           -webkit-column-gap: \a:columngap; 
-           column-gap: \a:columngap;
-           -moz-column-rule-width: \a:columnrulewidth; 
-           -webkit-column-rule-width: \a:columnrulewidth; 
-           column-rule-rule-width: \a:columnrulewidth;
-           -moz-column-rule-color: \a:columnrulecolor; 
-           -webkit-column-rule-color: \a:columnrulecolor; 
-           column-rule-color: \a:columnrulecolor;
-           -moz-column-rule-style: \a:columnrulestyle; 
-           -webkit-column-rule-style: \a:columnrulestyle; 
-           column-rule-style: \a:columnrulestyle;
-           -moz-column-fill: \a:columnfill; 
-           -webkit-column-fill: \a:columnfill; 
-           column-fill: \a:columnfill;
-           }%
-        }%
-}
-\def\mult:cols{\IgnorePar\EndP%
-        \HCode{<div class="\a:multicols-\mcolnum">}%
+% CSS needs to be written for every column count
+\NewConfigure{multicolscss}{1}
+\def\:wr:mcol:css{\a:multicolscss }
+
+% this configuration should configure HTML code inserted for multicols environment
+\NewConfigure{multicolscolumn}{2}
+
+\def\mult:cols{\a:multicolscolumn%
         \expandafter\ifx\csname .\a:multicols-\mcolnum\endcsname\relax%
         \:wr:mcol:css
         \expandafter\gdef\csname .\a:multicols-\mcolnum\endcsname{1}%
         \fi\ShowPar\par}
-\append:def\endmulticols{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}} 
+\append:def\endmulticols{\b:multicolscolumn} 
 >>>
 
 \Section{lettrine.sty}

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex	2022-04-29 21:15:04 UTC (rev 63179)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex	2022-04-29 21:38:28 UTC (rev 63180)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1121 2022-04-28 13:36:29Z michal_h21 $
+% $Id: tex4ht-html4.tex 1124 2022-04-29 15:04:44Z michal_h21 $
 % Compile 4 times: latex tex4ht-html4
 % Copy html4.4ht into the work directory before all but the last compilation.
 %
@@ -15672,6 +15672,35 @@
 \<configure html4 multicol\><<<
 \HAssign\MultiCols=0
 \ConfigureEnv{multicols}{}{}{}{}
+
+\Configure{multicolscolumn}
+{\ifvmode\IgnorePar\fi\EndP\HCode{<div class="\a:multicols-\mcolnum">}} 
+{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}
+
+\Configure{multicolscss}{%
+  \Css{.\a:multicols-\mcolnum\space :first-child { margin-top: 0em; }}%
+  \Css{.\a:multicols-\mcolnum {%
+      -moz-column-count:\mcolnum; 
+      -webkit-column-count:\mcolnum;
+      column-count:\mcolnum;
+      -moz-column-gap: \a:columngap;
+      -webkit-column-gap: \a:columngap; 
+      column-gap: \a:columngap;
+      -moz-column-rule-width: \a:columnrulewidth; 
+      -webkit-column-rule-width: \a:columnrulewidth; 
+      column-rule-rule-width: \a:columnrulewidth;
+      -moz-column-rule-color: \a:columnrulecolor; 
+      -webkit-column-rule-color: \a:columnrulecolor; 
+      column-rule-color: \a:columnrulecolor;
+      -moz-column-rule-style: \a:columnrulestyle; 
+      -webkit-column-rule-style: \a:columnrulestyle; 
+      column-rule-style: \a:columnrulestyle;
+      -moz-column-fill: \a:columnfill; 
+      -webkit-column-fill: \a:columnfill; 
+      column-fill: \a:columnfill;
+    }%
+  }%
+}
 %    {\par\IgnorePar\EndP
 %     \gHAdvance\MultiCols by 1\relax
 %     \HCode{<table class="multicols"
@@ -16534,7 +16563,7 @@
    {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
         class="enumerate-enumitem">}\bgroup \bf}
    {\egroup\EndP\HCode{</dt><dd\Hnewline class="enumerate-enumitem">}}
-\Css{dl.enumerate-enumitem{display:grid; grid-template-columns: 3ch 1fr;}}
+\Css{dl.enumerate-enumitem{display:grid; grid-template-columns: 3ch 1fr; align-items: top; row-gap:1ch;}}
 >>>
 
 

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/enumitem.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/enumitem.4ht	2022-04-29 21:15:04 UTC (rev 63179)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/enumitem.4ht	2022-04-29 21:38:28 UTC (rev 63180)
@@ -1,33 +1,30 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% enumitem.4ht                       2009-05-21-09:32 %
-% Copyright (C) 2009             Eitan M. Gurari         %
-%                                                        %
-% This work may be distributed and/or modified under the %
-% conditions of the LaTeX Project Public License, either %
-% version 1.3c of this license or (at your option) any   %
-% later version. The latest version of this license is   %
-% in                                                     %
-%   http://www.latex-project.org/lppl.txt                %
-% and version 1.3c or later is part of all distributions %
-% of LaTeX version 2005/12/01 or later.                  %
-%                                                        %
-% This work has the LPPL maintenance status "maintained".%
-%                                                        %
-% This Current Maintainer of this work                   %
-% is Eitan M. Gurari.                                    %
-%                                                        %
-% If you modify this program your changing its signature %
-% with a directive of the following form will be         %
-% appreciated.                                           %
-%            \message{signature}                         %
-%                                                        %
-%                             gurari at cse.ohio-state.edu  %
-%                 http://www.cse.ohio-state.edu/~gurari  %
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{version 2009-05-21-09:32}
+% enumitem.4ht                       2022-04-29-14:33 %
+% Copyright (C) 2009-2009       Eitan M. Gurari         %
+% Copyright 2009-2022 TeX Users Group
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work
+% is the TeX4ht Project <http://tug.org/tex4ht>.
+%
+% If you modify this program, changing the
+% version identification would be appreciated.
+\AddToHook{env/enumerate/end}{\ifx\enit at after\@empty\else%
+  \let\enit:after\enit at after
+  \let\enit at after\@empty
+  \let\enumerate:executed\@empty
+  \append:def\end:DL{\enit:after}
+\fi}
 
-
-
 \Hinput{enumitem}
 \endinput
 

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2022-04-29 21:15:04 UTC (rev 63179)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2022-04-29 21:38:28 UTC (rev 63180)
@@ -1,4 +1,4 @@
-% html4.4ht (2022-04-28-13:47), generated from tex4ht-html4.tex
+% html4.4ht (2022-04-29-14:33), generated from tex4ht-html4.tex
 % Copyright 2009-2022 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 2022-04-28-13:47}
+\immediate\write-1{version 2022-04-29-14:33}
 
 \exit:ifnot{8859-6,% 
 CJK,% 
@@ -36003,7 +36003,7 @@
    {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
         class="enumerate-enumitem">}\bgroup \bf}
    {\egroup\EndP\HCode{</dt><dd\Hnewline class="enumerate-enumitem">}}
-\Css{dl.enumerate-enumitem{display:grid; grid-template-columns: 3ch 1fr;}}
+\Css{dl.enumerate-enumitem{display:grid; grid-template-columns: 3ch 1fr; align-items: top; row-gap:1ch;}}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
@@ -38153,6 +38153,35 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     \HAssign\MultiCols=0
 \ConfigureEnv{multicols}{}{}{}{}
+
+\Configure{multicolscolumn}
+{\ifvmode\IgnorePar\fi\EndP\HCode{<div class="\a:multicols-\mcolnum">}}
+{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}
+
+\Configure{multicolscss}{%
+  \Css{.\a:multicols-\mcolnum\space :first-child { margin-top: 0em; }}%
+  \Css{.\a:multicols-\mcolnum {%
+      -moz-column-count:\mcolnum;
+      -webkit-column-count:\mcolnum;
+      column-count:\mcolnum;
+      -moz-column-gap: \a:columngap;
+      -webkit-column-gap: \a:columngap;
+      column-gap: \a:columngap;
+      -moz-column-rule-width: \a:columnrulewidth;
+      -webkit-column-rule-width: \a:columnrulewidth;
+      column-rule-rule-width: \a:columnrulewidth;
+      -moz-column-rule-color: \a:columnrulecolor;
+      -webkit-column-rule-color: \a:columnrulecolor;
+      column-rule-color: \a:columnrulecolor;
+      -moz-column-rule-style: \a:columnrulestyle;
+      -webkit-column-rule-style: \a:columnrulestyle;
+      column-rule-style: \a:columnrulestyle;
+      -moz-column-fill: \a:columnfill;
+      -webkit-column-fill: \a:columnfill;
+      column-fill: \a:columnfill;
+    }%
+  }%
+}
 %    {\par\IgnorePar\EndP
 %     \gHAdvance\MultiCols by 1\relax
 %     \HCode{<table class="multicols"

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/multicol.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/multicol.4ht	2022-04-29 21:15:04 UTC (rev 63179)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/multicol.4ht	2022-04-29 21:38:28 UTC (rev 63180)
@@ -1,6 +1,6 @@
-% multicol.4ht (2021-06-20-09:36), generated from tex4ht-4ht.tex
+% multicol.4ht (2022-04-29-14:33), 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-06-20-09:36}
+\immediate\write-1{version 2022-04-29-14:33}
 
 
 \append:def\set at floatcmds{\let\end at dblfloat\end at float}
@@ -56,7 +56,7 @@
 
 \def\columnrulecolor{\a:columnrulecolor}
 \NewConfigure{columnrulecolor}{1}
-\Configure{columnrulecolor}{\#555;}
+\Configure{columnrulecolor}{\#555}
 
 % legal color
 
@@ -107,37 +107,19 @@
 \NewConfigure{multicols}{1}
 \Configure{multicols}{columns}
 
-\def\:wr:mcol:css{%
-        \Css{.\a:multicols-\mcolnum\space p:first-child { margin-top: 0em; }}%
-        \Css{.\a:multicols-\mcolnum {%
-           -moz-column-count:\mcolnum;
-           -webkit-column-count:\mcolnum;
-           column-count:\mcolnum;
-           -moz-column-gap: \a:columngap;
-           -webkit-column-gap: \a:columngap;
-           column-gap: \a:columngap;
-           -moz-column-rule-width: \a:columnrulewidth;
-           -webkit-column-rule-width: \a:columnrulewidth;
-           column-rule-rule-width: \a:columnrulewidth;
-           -moz-column-rule-color: \a:columnrulecolor;
-           -webkit-column-rule-color: \a:columnrulecolor;
-           column-rule-color: \a:columnrulecolor;
-           -moz-column-rule-style: \a:columnrulestyle;
-           -webkit-column-rule-style: \a:columnrulestyle;
-           column-rule-style: \a:columnrulestyle;
-           -moz-column-fill: \a:columnfill;
-           -webkit-column-fill: \a:columnfill;
-           column-fill: \a:columnfill;
-           }%
-        }%
-}
-\def\mult:cols{\IgnorePar\EndP%
-        \HCode{<div class="\a:multicols-\mcolnum">}%
+% CSS needs to be written for every column count
+\NewConfigure{multicolscss}{1}
+\def\:wr:mcol:css{\a:multicolscss }
+
+% this configuration should configure HTML code inserted for multicols environment
+\NewConfigure{multicolscolumn}{2}
+
+\def\mult:cols{\a:multicolscolumn%
         \expandafter\ifx\csname .\a:multicols-\mcolnum\endcsname\relax%
         \:wr:mcol:css
         \expandafter\gdef\csname .\a:multicols-\mcolnum\endcsname{1}%
         \fi\ShowPar\par}
-\append:def\endmulticols{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}
+\append:def\endmulticols{\b:multicolscolumn}
 
 \Hinput{multicol}
 \endinput



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