[tex4ht-commits] [SCM] tex4ht updated: r901 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Thu Apr 15 22:04:43 CEST 2021
Author: michal_h21
Date: 2021-04-15 20:04:43 +0000 (Thu, 15 Apr 2021)
New Revision: 901
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
fixed TOC issue with caption
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-04-11 14:38:12 UTC (rev 900)
+++ trunk/lit/ChangeLog 2021-04-15 20:04:43 UTC (rev 901)
@@ -1,3 +1,8 @@
+2021-04-15 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (caption.4ht): fix for TOC handling.
+ https://tex.stackexchange.com/a/593069/2891
+
2021-04-11 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-html4.4ht (html4-math.4ht): fixed paragraph handling for eqnarray.
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2021-04-11 14:38:12 UTC (rev 900)
+++ trunk/lit/tex4ht-4ht.tex 2021-04-15 20:04:43 UTC (rev 901)
@@ -11440,7 +11440,10 @@
prevent this issue.
\<caption addtocontents\><<<
- \renewcommand*\caption@@@addcontentsline[4]{%
+ \renewcommand*\caption@@@addcontentsline[5]{%
+ \def\temp{#1}\def\tempa{toc}\ifx \temp\tempa\else%
+ \gHAdvance\TitleCount 1%
+ \fi%
\addcontentsline{#1}{#2}{\protect\numberline{#3}{\detokenize{#4}}}%
}
More information about the tex4ht-commits
mailing list.