[tex4ht-commits] [SCM] tex4ht updated: r773 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Jul 16 22:46:07 CEST 2020


Author: michal_h21
Date: 2020-07-16 23:46:07 +0300 (Thu, 16 Jul 2020)
New Revision: 773

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Fixed tocdepth handling

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-07-16 20:09:10 UTC (rev 772)
+++ trunk/lit/ChangeLog	2020-07-16 20:46:07 UTC (rev 773)
@@ -2,6 +2,9 @@
 
 	* tex4ht-4ht.tex (usepackage.4ht): fixed eso-pic support.
 	https://puszcza.gnu.org.ua/bugs/?231
+	* tex4ht-4ht.tex (article.4ht,book.4ht,report.4ht,
+	scrbook.4ht,scrreprt.4ht): fixed tocdepth handling.
+	https://puszcza.gnu.org.ua/bugs/?228
 
 2020-07-13 Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2020-07-16 20:09:10 UTC (rev 772)
+++ trunk/lit/tex4ht-4ht.tex	2020-07-16 20:46:07 UTC (rev 773)
@@ -13154,13 +13154,13 @@
    \ifnum \c at tocdepth >\z@  section,\fi
 \else
    \ifnum \c at tocdepth >\m at ne chapter,appendix,\fi
-   \ifnum \z@>\c at tocdepth\else section,\fi
-   \ifnum 1>\c at tocdepth \else subsection,\fi
+   \ifnum \c at tocdepth>0 section,\fi
+   \ifnum \c at tocdepth>1 subsection,\fi
 \fi
-\ifnum 2>\c at tocdepth \else subsection,\fi
-\ifnum 3>\c at tocdepth \else subsubsection,\fi
-\ifnum 4>\c at tocdepth \else paragraph,\fi
-\ifnum 5>\c at tocdepth \else subparagraph,\fi
+\ifnum \c at tocdepth>2 subsection,\fi
+\ifnum \c at tocdepth>3 subsubsection,\fi
+\ifnum \c at tocdepth>4 paragraph,\fi
+\ifnum \c at tocdepth>5 subparagraph,\fi
 UnDFexyz>>>
 
 \Verbatim
@@ -16585,13 +16585,13 @@
    \ifnum \c at tocdepth >\z@  section,\fi
 \else
    \ifnum \c at tocdepth >\m at ne chapter,appendix,addchap,\fi
-   \ifnum \z@>\c at tocdepth\else section,\fi
-   \ifnum 1>\c at tocdepth \else subsection,\fi
+    \ifnum \c at tocdepth>0 section,\fi
+   \ifnum \c at tocdepth>1 subsection,\fi
 \fi
-\ifnum 2>\c at tocdepth \else subsection,\fi
-\ifnum 3>\c at tocdepth \else subsubsection,\fi
-\ifnum 4>\c at tocdepth \else paragraph,\fi
-\ifnum 5>\c at tocdepth \else subparagraph,\fi
+\ifnum \c at tocdepth>2 subsection,\fi
+\ifnum \c at tocdepth>3 subsubsection,\fi
+\ifnum \c at tocdepth>4 paragraph,\fi
+\ifnum \c at tocdepth>5 subparagraph,\fi
 UnDFexyz}%
    \noexpand\fi}
 \def\:tableofcontents{\futurelet\:temp\:TOC}
@@ -16974,12 +16974,12 @@
    \noexpand\else
       \noexpand\Auto:ent{\ifnum \c at tocdepth >-2 part,\fi
    \ifnum \c at tocdepth >\m at ne chapter,appendix,addchap,\fi
-   \ifnum \z@>\c at tocdepth\else section,\fi
-   \ifnum 1>\c at tocdepth \else subsection,\fi
-\ifnum 2>\c at tocdepth \else subsection,\fi
-\ifnum 3>\c at tocdepth \else subsubsection,\fi
-\ifnum 4>\c at tocdepth \else paragraph,\fi
-\ifnum 5>\c at tocdepth \else subparagraph,\fi
+   \ifnum \c at tocdepth>0 section,\fi
+   \ifnum \c at tocdepth>1 subsection,\fi
+\ifnum \c at tocdepth>2 subsection,\fi
+\ifnum \c at tocdepth>3 subsubsection,\fi
+\ifnum \c at tocdepth>4 paragraph,\fi
+\ifnum \c at tocdepth>5 subparagraph,\fi
 UnDFexyz}%
    \noexpand\fi}
 \def\:tableofcontents{\futurelet\:temp\:TOC}



More information about the tex4ht-commits mailing list.