[tex4ht-commits] [SCM] tex4ht updated: r1369 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Tue Sep 12 14:36:05 CEST 2023
Author: michal_h21
Date: 2023-09-12 12:36:05 +0000 (Tue, 12 Sep 2023)
New Revision: 1369
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
Prevent duplicate TOC with \tableofcontents
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2023-09-11 09:02:15 UTC (rev 1368)
+++ trunk/lit/ChangeLog 2023-09-12 12:36:05 UTC (rev 1369)
@@ -1,5 +1,12 @@
2023-09-11 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-html4.tex (html4.4ht): prevent duplicate TOC when the
+ \tableofcontents command is used in the document which is not split
+ into subpages.
+ https://tex.stackexchange.com/a/695831/2891
+
+2023-09-11 Michal Hoftich <michal.h21 at gmail.com>
+
* tex4ht-4ht.tex (hyperref-hooks.4ht): undefine the \@chapter
command to prevent wrong cutting of pages with numeric options.
https://puszcza.gnu.org.ua/bugs/?608
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2023-09-11 09:02:15 UTC (rev 1368)
+++ trunk/lit/tex4ht-html4.tex 2023-09-12 12:36:05 UTC (rev 1369)
@@ -1054,6 +1054,8 @@
|<cutat: part|>
|<object tocs|>
\else
+ % This should prevent duplication of TOC when document is not split into subpages
+ \pend:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}%
\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.