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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Apr 3 12:35:23 CEST 2023


Author: michal_h21
Date: 2023-04-03 10:35:23 +0000 (Mon, 03 Apr 2023)
New Revision: 1316

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Disable declaration of titlesec formatting

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-04-03 09:36:53 UTC (rev 1315)
+++ trunk/lit/ChangeLog	2023-04-03 10:35:23 UTC (rev 1316)
@@ -1,5 +1,9 @@
 2023-04-03  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (titlesec-hooks.4ht): disable declaration of title
+	formatting.
+	https://tex.stackexchange.com/a/680943/2891
+
 	* tex4ht-html4.tex (html4.4ht): fixed paragraph handling for the
 	Verse package.
 	https://tex.stackexchange.com/a/681694/2891

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2023-04-03 09:36:53 UTC (rev 1315)
+++ trunk/lit/tex4ht-4ht.tex	2023-04-03 10:35:23 UTC (rev 1316)
@@ -954,9 +954,24 @@
   \let\subparagraph\ttl:subparagraph
   \let\@makechapterhead\ttl:@makechapterhead
   \let\@makeschapterhead\ttl:@makeschapterhead
+  |<disable titlesec format|>
 }
 >>>
 
+Titlesec formatting can cause various issues, 
+so it is best to disable it completely.
+
+\<disable titlesec format\><<<
+\def\ttl at format@si#1#2#3#4#5#6#7{}
+\def\ttl at format@ii#1[#2]#3#4#5#6{
+  \@ifnextchar[{%
+    \ttl at format@iii{#2}%
+  }{%
+  \ttl at format@iii{#2}[]}
+}
+\def\ttl at format@iii#1[#2]{}
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%
 \Section{Scientific Word}
 



More information about the tex4ht-commits mailing list.