summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-22 23:14:32 +0000
committerKarl Berry <karl@freefriends.org>2022-02-22 23:14:32 +0000
commit8a332606cb996f688cd1ef3517d43dfc3208e53e (patch)
treead051b8d76adbc4eeb34f1069c282fefea99ed69 /Master/texmf-dist/source
parent49e0ddfbe8cefc4c83c1812a1c26affe957f2b8f (diff)
tocdepth fix, texrht r1084
git-svn-id: svn://tug.org/texlive/trunk@62147 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/ChangeLog7
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex54
2 files changed, 32 insertions, 29 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
index e051c4ff772..4bfe3f26b81 100644
--- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog
+++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
@@ -1,3 +1,10 @@
+2022-02-22 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (
+ article.4ht, book.4ht, mwart.4ht, mwbk.4ht,
+ mwrep.4ht, report.4ht, scrbook.4ht, scrreprt.4ht
+ ): corrected handling of the tocdepth counter.
+
2022-02-19 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-4ht.tex (hyperref-hooks.4ht): define autoref captions, so
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
index 8b2b3e86ace..b1a19e87f36 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 1082 2022-02-19 21:28:26Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1084 2022-02-22 13:19:45Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -5179,7 +5179,7 @@ We can load nameref from the early hook file
\<hyperref-hooks.4ht\><<<
% hyperref-hooks.4ht (|version), generated from |jobname.tex
-% Copyright 2021 TeX Users Group
+% Copyright 2022 TeX Users Group
|<TeX4ht license text|>
\:AtEndOfPackage{%
|<load nameref in hyperref hooks|>
@@ -13900,12 +13900,11 @@ Do we need \`' \Configure{cite}{}{}{}{}%' in the following?
\else
\ifnum \c@tocdepth >\m@ne chapter,appendix,\fi
\ifnum \c@tocdepth>0 section,\fi
- \ifnum \c@tocdepth>1 subsection,\fi
\fi
-\ifnum \c@tocdepth>2 subsection,\fi
-\ifnum \c@tocdepth>3 subsubsection,\fi
-\ifnum \c@tocdepth>4 paragraph,\fi
-\ifnum \c@tocdepth>5 subparagraph,\fi
+\ifnum \c@tocdepth>1 subsection,\fi
+\ifnum \c@tocdepth>2 subsubsection,\fi
+\ifnum \c@tocdepth>3 paragraph,\fi
+\ifnum \c@tocdepth>4 subparagraph,\fi
UnDFexyz>>>
\Verbatim
@@ -16185,12 +16184,11 @@ Hfootnote counter, which isn't declared.
\else
\ifnum \c@tocdepth >\m@ne chapter,appendix,\fi
\ifnum \z@>\c@tocdepth\else section,\fi
- \ifnum 1>\c@tocdepth \else subsection,\fi
\fi
-\ifnum 2>\c@tocdepth \else subsection,\fi
-\ifnum 3>\c@tocdepth \else subsubsection,\fi
-\ifnum 4>\c@tocdepth \else paragraph,\fi
-\ifnum 5>\c@tocdepth \else subparagraph,\fi
+\ifnum 1>\c@tocdepth \else subsection,\fi
+\ifnum 2>\c@tocdepth \else subsubsection,\fi
+\ifnum 3>\c@tocdepth \else paragraph,\fi
+\ifnum 4>\c@tocdepth \else subparagraph,\fi
UnDFexyz}%
\noexpand\fi}
\def\:tableofcontents{\futurelet\:temp\:TOC}
@@ -16387,10 +16385,10 @@ it introduces an error in the .xref file for each caption used in the document.
\<entries for mwart tocs\><<<
\ifnum \c@tocdepth >-2 part,likepart,\fi
\ifnum \c@tocdepth >\z@ section,likesection,\fi
-\ifnum 2>\c@tocdepth \else subsection,likesubsection,\fi
-\ifnum 3>\c@tocdepth \else subsubsection,likesubsubsection,\fi
-\ifnum 4>\c@tocdepth \else paragraph,likeparagraph,\fi
-\ifnum 5>\c@tocdepth \else subparagraph,likesubparagraph,\fi
+\ifnum 1>\c@tocdepth \else subsection,likesubsection,\fi
+\ifnum 2>\c@tocdepth \else subsubsection,likesubsubsection,\fi
+\ifnum 3>\c@tocdepth \else paragraph,likeparagraph,\fi
+\ifnum 4>\c@tocdepth \else subparagraph,likesubparagraph,\fi
UnDFexyz>>>
\<mwart tocs\><<<
@@ -16582,10 +16580,10 @@ UnDFexyz>>>
\ifnum \c@tocdepth >-2 part,likepart,\fi
\ifnum \c@tocdepth >\m@ne chapter,likechapter,appendix,\fi
\ifnum \z@>\c@tocdepth\else section,likesection,\fi
-\ifnum 2>\c@tocdepth \else subsection,likesubsection,\fi
-\ifnum 3>\c@tocdepth \else subsubsection,likesubsubsection,\fi
-\ifnum 4>\c@tocdepth \else paragraph,likeparagraph,\fi
-\ifnum 5>\c@tocdepth \else subparagraph,likesubparagraph,\fi
+\ifnum 1>\c@tocdepth \else subsection,likesubsection,\fi
+\ifnum 2>\c@tocdepth \else subsubsection,likesubsubsection,\fi
+\ifnum 3>\c@tocdepth \else paragraph,likeparagraph,\fi
+\ifnum 4>\c@tocdepth \else subparagraph,likesubparagraph,\fi
UnDFexyz>>>
\<mwrep,mwbk tocs\><<<
@@ -17396,12 +17394,11 @@ Support for subtitles:
\else
\ifnum \c@tocdepth >\m@ne chapter,appendix,addchap,\fi
\ifnum \c@tocdepth>0 section,\fi
- \ifnum \c@tocdepth>1 subsection,\fi
\fi
-\ifnum \c@tocdepth>2 subsection,\fi
-\ifnum \c@tocdepth>3 subsubsection,\fi
-\ifnum \c@tocdepth>4 paragraph,\fi
-\ifnum \c@tocdepth>5 subparagraph,\fi
+\ifnum \c@tocdepth>1 subsection,\fi
+\ifnum \c@tocdepth>2 subsubsection,\fi
+\ifnum \c@tocdepth>3 paragraph,\fi
+\ifnum \c@tocdepth>4 subparagraph,\fi
UnDFexyz}%
\noexpand\fi}
\def\:tableofcontents{\futurelet\:temp\:TOC}
@@ -17792,10 +17789,9 @@ TeX4ht now loads before class files. We reuse the code used in Koma classes
\ifnum \c@tocdepth >\m@ne chapter,appendix,addchap,\fi
\ifnum \c@tocdepth>0 section,\fi
\ifnum \c@tocdepth>1 subsection,\fi
-\ifnum \c@tocdepth>2 subsection,\fi
-\ifnum \c@tocdepth>3 subsubsection,\fi
-\ifnum \c@tocdepth>4 paragraph,\fi
-\ifnum \c@tocdepth>5 subparagraph,\fi
+\ifnum \c@tocdepth>2 subsubsection,\fi
+\ifnum \c@tocdepth>3 paragraph,\fi
+\ifnum \c@tocdepth>4 subparagraph,\fi
UnDFexyz}%
\noexpand\fi}
\def\:tableofcontents{\futurelet\:temp\:TOC}