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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Sep 22 17:05:10 CEST 2023


Author: michal_h21
Date: 2023-09-22 15:05:09 +0000 (Fri, 22 Sep 2023)
New Revision: 1372

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
check for the existence of \au:StartSec

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-09-20 12:19:50 UTC (rev 1371)
+++ trunk/lit/ChangeLog	2023-09-22 15:05:09 UTC (rev 1372)
@@ -1,3 +1,8 @@
+2023-09-22  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): test for the existence of
+	\au:StartSec command before we try to insert it to \tableofcontents.
+
 2023-09-20  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-mathml.tex (mathml.4ht): added support for the \mathvariant

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2023-09-20 12:19:50 UTC (rev 1371)
+++ trunk/lit/tex4ht-html4.tex	2023-09-22 15:05:09 UTC (rev 1372)
@@ -1055,7 +1055,12 @@
     |<object tocs|>     
 \else
   % This should prevent duplication of TOC when document is not split into subpages
-  \pend:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}%
+  \pend:def\tableofcontents{%
+    \ifx \au:StartSec\:UnDef\else%
+      \gdef\:StartSec{\au:StartSec}%
+    \fi%
+  }%
+
     \Log:Note{for automatic sectioning 
         pagination, use the command line option 
                      `1', `2', `3', '4', '5', '6', or '7'}%



More information about the tex4ht-commits mailing list.