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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Apr 29 16:10:44 CEST 2022


Author: michal_h21
Date: 2022-04-29 14:10:43 +0000 (Fri, 29 Apr 2022)
New Revision: 1123

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Fixed some enumitem issues

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-04-28 15:04:04 UTC (rev 1122)
+++ trunk/lit/ChangeLog	2022-04-29 14:10:43 UTC (rev 1123)
@@ -1,3 +1,10 @@
+2022-04-29  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* 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/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-04-28 15:04:04 UTC (rev 1122)
+++ trunk/lit/tex4ht-4ht.tex	2022-04-29 14:10:43 UTC (rev 1123)
@@ -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}
 >>>
 
 %%%%%%%%%%%%%

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2022-04-28 15:04:04 UTC (rev 1122)
+++ trunk/lit/tex4ht-html4.tex	2022-04-29 14:10:43 UTC (rev 1123)
@@ -16534,7 +16534,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;}}
 >>>
 
 



More information about the tex4ht-commits mailing list.