diff options
author | Norbert Preining <norbert@preining.info> | 2022-02-24 03:00:45 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-02-24 03:00:45 +0000 |
commit | dc88afec77f198ebb8774f9c87146f2985e8f156 (patch) | |
tree | c2ffe8156173930a3f167b2cdeeb4fc1cd66a6b3 /support/TeX4ht/source | |
parent | d529109bf475e3f1e220ce0e980e104b1a7e3c6b (diff) |
CTAN sync 202202240300
Diffstat (limited to 'support/TeX4ht/source')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 7 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 54 |
2 files changed, 32 insertions, 29 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index e051c4ff77..4bfe3f26b8 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/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/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index 8b2b3e86ac..b1a19e87f3 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/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} |