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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Feb 27 13:28:37 CET 2025


Author: michal_h21
Date: 2025-02-27 12:28:37 +0000 (Thu, 27 Feb 2025)
New Revision: 1652

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-sty.tex
Log:
don't add page breaks in \Configure{MathClass}

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2025-02-26 11:32:51 UTC (rev 1651)
+++ trunk/lit/ChangeLog	2025-02-27 12:28:37 UTC (rev 1652)
@@ -1,3 +1,10 @@
+2025-02-27  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-sty.tex (tex4ht.sty): don't add page breaks in
+	\Configure{MathClass}. It prevents writing to the aux file for the
+	Acronym package. 
+	https://tex.stackexchange.com/a/737993/2891
+
 2025-02-26  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-mathml.tex (mathml.4ht): declare formatting for \sin etc. 

Modified: trunk/lit/tex4ht-sty.tex
===================================================================
--- trunk/lit/tex4ht-sty.tex	2025-02-26 11:32:51 UTC (rev 1651)
+++ trunk/lit/tex4ht-sty.tex	2025-02-27 12:28:37 UTC (rev 1652)
@@ -9252,7 +9252,7 @@
       \vbox{$${\ht:special
          {t4ht\string^#1}{#5}^{{#5}^{#5}}\ht:special{t4ht\string^}}$$}\egroup
    \fi
-   {\everypar{}\noindent\vfill\break}% 
+   |<math dummy paragraph|>%
    \ht:special{t4ht@]}\EndNoFonts
 }
 \NewConfigure{MathDelimiters}[2]{\NoFonts \ht:special{t4ht@[}%
@@ -9269,14 +9269,26 @@
     \ht:special{t4ht\string^4}{}^{{}^{#1}}\ht:special
                                          {t4ht\string^5}{}^{{}^{#2}}%
     \ht:special{t4ht\string^}}$$}%
-    {\everypar{}\noindent\vfill\break}% 
+    |<math dummy paragraph|>%
     \ht:special{t4ht@]}\egroup
   \EndNoFonts}
 \catcode`\^=12
 >>>
 
+I am not sure why the following code was used in the original code for math classes. 
+It forces new pages during the .4ht file processing, which leads to problems if some
+packages want to write some information to the aux file. I've found this isssue  
+\Link[https://tex.stackexchange.com/a/737993/2891]{}{}this bug report\EndLink. 
 
+\<math dummy paragraph do not use\><<<
+{\everypar{}\noindent\vfill\break} 
+>>>
 
+So instead, we just use a paragraph. It seems to work fine with math class definitions.
+
+\<math dummy paragraph\><<<
+{\everypar{}\noindent}>>>
+
 \<math classes\><<<
 \HAssign\New:MathClass|=7
 \catcode`\/=0



More information about the tex4ht-commits mailing list.