diff options
author | Karl Berry <karl@freefriends.org> | 2023-09-12 20:52:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-09-12 20:52:32 +0000 |
commit | 81e7d7d99c8606d961d6766e23f223a3a90833ae (patch) | |
tree | 845c9efd81f9fcf71f8118bbde5194ca4e0db4ed | |
parent | b01ebd2fe1384e5e473506c7570b062df54d4667 (diff) |
avoid duplicate toc, tex4ht r1369
git-svn-id: svn://tug.org/texlive/trunk@68260 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 7 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/html4.4ht | 22 |
3 files changed, 30 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 8c8eee18c72..f435205901b 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,5 +1,12 @@ 2023-09-11 Michal Hoftich <michal.h21@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@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 diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex index 8e6c52b3b75..cd4571657a0 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex @@ -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 @@ is the default font size. |<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'}% diff --git a/Master/texmf-dist/tex/generic/tex4ht/html4.4ht b/Master/texmf-dist/tex/generic/tex4ht/html4.4ht index c698c4fe1a8..6aeeaed7d0f 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/html4.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/html4.4ht @@ -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 @@ j{01F0}H{021E}h{021F}\i{01D0}\j{01F0}% \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 @@ j{01F0}H{021E}h{021F}\i{01D0}\j{01F0}% \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 @@ j{01F0}H{021E}h{021F}\i{01D0}\j{01F0}% \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 @@ s{015B}u{00FA}y{00FD}z{017A}j{FFFD}J{FFDD}\i{00ED}\j{FFFD}% \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 @@ s{015B}u{00FA}y{00FD}z{017A}j{FFFD}J{FFDD}\i{00ED}\j{FFFD}% \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 @@ s{015B}u{00FA}y{00FD}z{017A}j{FFFD}J{FFDD}\i{00ED}\j{FFFD}% \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 @@ Y{0178}\i{00EF}% \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 @@ Y{0178}\i{00EF}% \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 @@ Y{0178}\i{00EF}% \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'}% |