From 0edf694883aed2ed9db72ac1cb621d26b5bc5f45 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 25 Feb 2023 23:10:06 +0000 Subject: \tableofcontents generation with subpages, tex4ht r1300 git-svn-id: svn://tug.org/texlive/trunk@66161 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/generic/tex4ht/ChangeLog | 8 ++++++++ Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex | 4 ++-- Master/texmf-dist/tex/generic/tex4ht/amsart.4ht | 8 ++++---- Master/texmf-dist/tex/generic/tex4ht/amsbook.4ht | 8 ++++---- Master/texmf-dist/tex/generic/tex4ht/amsproc.4ht | 8 ++++---- Master/texmf-dist/tex/generic/tex4ht/article.4ht | 8 ++++---- Master/texmf-dist/tex/generic/tex4ht/book.4ht | 8 ++++---- Master/texmf-dist/tex/generic/tex4ht/mwart.4ht | 6 +++--- Master/texmf-dist/tex/generic/tex4ht/mwbk.4ht | 6 +++--- Master/texmf-dist/tex/generic/tex4ht/mwrep.4ht | 6 +++--- Master/texmf-dist/tex/generic/tex4ht/report.4ht | 8 ++++---- Master/texmf-dist/tex/generic/tex4ht/scrbook.4ht | 6 +++--- Master/texmf-dist/tex/generic/tex4ht/scrreprt.4ht | 6 +++--- 13 files changed, 49 insertions(+), 41 deletions(-) diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 4a734b08d1b..78ef708e33d 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,11 @@ +2023-02-25 Michal Hoftich + * tex4ht-4ht.tex (amsart.4ht.4ht, amsbook.4ht, amsproc.4ht, + article.4ht, book.4ht, mwart.4ht, mwbk.4ht, mwrep.4ht, + report.4ht, scrbook.4ht, scrreprt.4ht): print table of contents when + \tableofcontents command is used and the document is split to + subpages. + https://tex.stackexchange.com/a/676531/2891 + 2023-02-22 Michal Hoftich * tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): don't restore the diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex index e308f92ae24..57e5e215b99 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1298 2023-02-19 13:05:01Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1300 2023-02-25 21:15:50Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2023 TeX Users Group @@ -15780,7 +15780,7 @@ any of the options is on. \let\au:StartSec|=\:StartSec \def\:StartSec{\:tableofcontents \global\let\auto:toc|=\:UnDef \global\let\:StartSec\au:StartSec\:StartSec}% - \pend:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% + \append:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% \fi \fi } >>> diff --git a/Master/texmf-dist/tex/generic/tex4ht/amsart.4ht b/Master/texmf-dist/tex/generic/tex4ht/amsart.4ht index 3961c8b100e..03506f1bc5b 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/amsart.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/amsart.4ht @@ -1,6 +1,6 @@ -% amsart.4ht (2022-12-16-13:29), generated from tex4ht-4ht.tex +% amsart.4ht (2023-02-25-15:08), generated from tex4ht-4ht.tex % Copyright 1997-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \pend:defII\@starttoc{\par} \append:def\quote{\par\@totalleftmargin\z@} @@ -344,7 +344,7 @@ UnDFexyz \let\au:StartSec\:StartSec \def\:StartSec{\:tableofcontents \global\let\auto:toc\:UnDef \global\let\:StartSec\au:StartSec\:StartSec}% - \pend:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% + \append:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% \fi \fi } diff --git a/Master/texmf-dist/tex/generic/tex4ht/amsbook.4ht b/Master/texmf-dist/tex/generic/tex4ht/amsbook.4ht index b1ffc2756d6..ceb2157c0e9 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/amsbook.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/amsbook.4ht @@ -1,6 +1,6 @@ -% amsbook.4ht 2022-12-16-13:29, generated from tex4ht-4ht.tex +% amsbook.4ht 2023-02-25-15:08, generated from tex4ht-4ht.tex % Copyright 1997-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \pend:defII\@starttoc{\par} \append:def\quote{\par\@totalleftmargin\z@} @@ -402,7 +402,7 @@ UnDFexyz \let\au:StartSec\:StartSec \def\:StartSec{\:tableofcontents \global\let\auto:toc\:UnDef \global\let\:StartSec\au:StartSec\:StartSec}% - \pend:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% + \append:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% \fi \fi } diff --git a/Master/texmf-dist/tex/generic/tex4ht/amsproc.4ht b/Master/texmf-dist/tex/generic/tex4ht/amsproc.4ht index 0847aa17b8b..ff24c266dba 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/amsproc.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/amsproc.4ht @@ -1,7 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% amsproc.4ht (2022-12-16-13:29), generated from tex4ht-4ht.tex +% amsproc.4ht (2023-02-25-15:08), generated from tex4ht-4ht.tex % Copyright (C) 1997-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -18,7 +18,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \append:def\quote{\par\@totalleftmargin\z@} @@ -366,7 +366,7 @@ UnDFexyz \let\au:StartSec\:StartSec \def\:StartSec{\:tableofcontents \global\let\auto:toc\:UnDef \global\let\:StartSec\au:StartSec\:StartSec}% - \pend:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% + \append:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% \fi \fi } diff --git a/Master/texmf-dist/tex/generic/tex4ht/article.4ht b/Master/texmf-dist/tex/generic/tex4ht/article.4ht index ce67e622bd9..6da356a34b7 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/article.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/article.4ht @@ -1,6 +1,6 @@ -% article.4ht (2022-12-16-13:29), generated from tex4ht-4ht.tex +% article.4ht (2023-02-25-15:08), generated from tex4ht-4ht.tex % Copyright 1997-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \Configure{UndefinedSec}{likepart} @@ -196,7 +196,7 @@ UnDFexyz}% \let\au:StartSec\:StartSec \def\:StartSec{\:tableofcontents \global\let\auto:toc\:UnDef \global\let\:StartSec\au:StartSec\:StartSec}% - \pend:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% + \append:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% \fi \fi } diff --git a/Master/texmf-dist/tex/generic/tex4ht/book.4ht b/Master/texmf-dist/tex/generic/tex4ht/book.4ht index 4987cbeeaa8..34f685995d3 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/book.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/book.4ht @@ -1,6 +1,6 @@ -% book.4ht (2022-12-16-13:29), generated from tex4ht-4ht.tex +% book.4ht (2023-02-25-15:08), generated from tex4ht-4ht.tex % Copyright 1997-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \Configure{UndefinedSec}{likepart} \Configure{UndefinedSec}{likechapter} @@ -122,7 +122,7 @@ UnDFexyz}% \let\au:StartSec\:StartSec \def\:StartSec{\:tableofcontents \global\let\auto:toc\:UnDef \global\let\:StartSec\au:StartSec\:StartSec}% - \pend:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% + \append:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% \fi \fi } diff --git a/Master/texmf-dist/tex/generic/tex4ht/mwart.4ht b/Master/texmf-dist/tex/generic/tex4ht/mwart.4ht index 8899ddbb2a4..48efb4c5dd5 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/mwart.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/mwart.4ht @@ -1,6 +1,6 @@ -% mwart.4ht (2022-12-16-13:29), generated from tex4ht-4ht.tex +% mwart.4ht (2023-02-25-15:08), generated from tex4ht-4ht.tex % Copyright 2003-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \NewConfigure{caption}[4]{\c:def\cptA:{#1}\c:def\cptB:{#2}% \c:def\cptC:{#3}\c:def\cptD:{#4}} diff --git a/Master/texmf-dist/tex/generic/tex4ht/mwbk.4ht b/Master/texmf-dist/tex/generic/tex4ht/mwbk.4ht index cb1ceeb3a66..abade68e950 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/mwbk.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/mwbk.4ht @@ -1,6 +1,6 @@ -% mwbk.4ht (2022-12-16-13:29), generated from tex4ht-4ht.tex +% mwbk.4ht (2023-02-25-15:08), generated from tex4ht-4ht.tex % Copyright (C) 2003-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \NewConfigure{caption}[4]{\c:def\cptA:{#1}\c:def\cptB:{#2}% \c:def\cptC:{#3}\c:def\cptD:{#4}} diff --git a/Master/texmf-dist/tex/generic/tex4ht/mwrep.4ht b/Master/texmf-dist/tex/generic/tex4ht/mwrep.4ht index e1459805785..46bcdc5dcd8 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/mwrep.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/mwrep.4ht @@ -1,6 +1,6 @@ -% mwrep.4ht (2022-12-16-13:29), generated from tex4ht-4ht.tex +% mwrep.4ht (2023-02-25-15:08), generated from tex4ht-4ht.tex % Copyright 2003-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \NewConfigure{caption}[4]{\c:def\cptA:{#1}\c:def\cptB:{#2}% \c:def\cptC:{#3}\c:def\cptD:{#4}} diff --git a/Master/texmf-dist/tex/generic/tex4ht/report.4ht b/Master/texmf-dist/tex/generic/tex4ht/report.4ht index 8adc37f76ff..776c1b09a7c 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/report.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/report.4ht @@ -1,6 +1,6 @@ -% report.4ht (2022-12-16-13:29), generated from tex4ht-4ht.tex +% report.4ht (2023-02-25-15:08), generated from tex4ht-4ht.tex % Copyright 1997-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \Configure{UndefinedSec}{likepart} @@ -237,7 +237,7 @@ UnDFexyz}% \let\au:StartSec\:StartSec \def\:StartSec{\:tableofcontents \global\let\auto:toc\:UnDef \global\let\:StartSec\au:StartSec\:StartSec}% - \pend:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% + \append:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}% \fi \fi } diff --git a/Master/texmf-dist/tex/generic/tex4ht/scrbook.4ht b/Master/texmf-dist/tex/generic/tex4ht/scrbook.4ht index f3536c3b226..c92f93b13c1 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/scrbook.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/scrbook.4ht @@ -1,6 +1,6 @@ -% scrbook.4ht (2022-12-16-13:29), generated from tex4ht-4ht.tex +% scrbook.4ht (2023-02-25-15:08), generated from tex4ht-4ht.tex % Copyright 1999-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \let\o:maketitle:\maketitle \let\o:maketitle:\maketitle diff --git a/Master/texmf-dist/tex/generic/tex4ht/scrreprt.4ht b/Master/texmf-dist/tex/generic/tex4ht/scrreprt.4ht index 2b21f5c0831..bb39caf2408 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/scrreprt.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/scrreprt.4ht @@ -1,6 +1,6 @@ -% scrreprt.4ht (2022-12-16-13:29), generated from tex4ht-4ht.tex +% scrreprt.4ht (2023-02-25-15:08), generated from tex4ht-4ht.tex % Copyright (C) 1999-2009 Eitan M. Gurari -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-12-16-13:29} +\immediate\write-1{version 2023-02-25-15:08} \let\o:maketitle:\maketitle \def\maketitle{\bgroup -- cgit v1.2.3