texlive[68260] Master/texmf-dist: avoid duplicate toc, tex4ht r1369
commits+karl at tug.org
commits+karl at tug.org
Tue Sep 12 22:52:32 CEST 2023
Revision: 68260
http://tug.org/svn/texlive?view=revision&revision=68260
Author: karl
Date: 2023-09-12 22:52:32 +0200 (Tue, 12 Sep 2023)
Log Message:
-----------
avoid duplicate toc, tex4ht r1369
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1369
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-09-12 20:41:16 UTC (rev 68259)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-09-12 20:52:32 UTC (rev 68260)
@@ -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/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex 2023-09-12 20:41:16 UTC (rev 68259)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex 2023-09-12 20:52:32 UTC (rev 68260)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1363 2023-08-31 15:26:11Z michal_h21 $
+% $Id: tex4ht-html4.tex 1369 2023-09-12 12:36:05Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -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'}%
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht 2023-09-12 20:41:16 UTC (rev 68259)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht 2023-09-12 20:52:32 UTC (rev 68260)
@@ -1,4 +1,4 @@
-% html4.4ht (2023-08-31-15:04), generated from tex4ht-html4.tex
+% html4.4ht (2023-09-12-13:42), generated from tex4ht-html4.tex
% Copyright 2009-2023 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 2023-08-31-15:04}
+\immediate\write-1{version 2023-09-12-13:42}
\exit:ifnot{8859-6,%
CJK,%
@@ -5501,6 +5501,8 @@
\fi
\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'}%
@@ -8200,6 +8202,8 @@
\fi
\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'}%
@@ -10831,6 +10835,8 @@
\fi
\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'}%
@@ -14109,6 +14115,8 @@
\fi
\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'}%
@@ -16688,6 +16696,8 @@
\fi
\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'}%
@@ -19315,6 +19325,8 @@
\fi
\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'}%
@@ -23409,6 +23421,8 @@
\fi
\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'}%
@@ -25897,6 +25911,8 @@
\fi
\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'}%
@@ -28385,6 +28401,8 @@
\fi
\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 tex-live-commits
mailing list.