[tex4ht-commits] [SCM] tex4ht updated: r890 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Tue Mar 2 09:13:55 CET 2021
Author: michal_h21
Date: 2021-03-02 10:13:54 +0200 (Tue, 02 Mar 2021)
New Revision: 890
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
prevent duplicate entries in TOC with titlesec
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-02-25 21:59:11 UTC (rev 889)
+++ trunk/lit/ChangeLog 2021-03-02 08:13:54 UTC (rev 890)
@@ -1,3 +1,8 @@
+2021-03-02 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (titlesec.4ht): prevent duplicate entries in TOC.
+ https://tex.stackexchange.com/a/585479/2891
+
2021-02-25 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (biblatex.4ht): check for existence of \TE at hook before
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2021-02-25 21:59:11 UTC (rev 889)
+++ trunk/lit/tex4ht-4ht.tex 2021-03-02 08:13:54 UTC (rev 890)
@@ -919,6 +919,13 @@
% \def\ttlh at display#1#2#3#4#5#6#7#8{{[111]#1\ifttl at label #2\fi #4{#8}[/111]}}
% \def\ttlh at runin#1#2#3#4#5#6#7#8{{[333]#1\ifttl at label #2\fi #4{#8}[/333]}}
+TeX4ht handles stuff written to TOC itself, Titlesec caused duplicated entries in TOC,
+so we just disable it's TOC handling.
+
+\<titlesec 2005\><<<
+\def\ttl at addcontentsline#1#2{\nobreak}
+>>>
+
%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{Scientific Word}
More information about the tex4ht-commits
mailing list.