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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Mar 27 15:06:23 CEST 2023


Author: michal_h21
Date: 2023-03-27 13:06:23 +0000 (Mon, 27 Mar 2023)
New Revision: 1312

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
prevent redefiniton of \chapter commands with Titlesec

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-03-27 07:25:44 UTC (rev 1311)
+++ trunk/lit/ChangeLog	2023-03-27 13:06:23 UTC (rev 1312)
@@ -1,5 +1,9 @@
 2023-03-27  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (titlesec-hooks.4ht): prevent redefinition of
+	\chapter commands
+	https://tex.stackexchange.com/a/680943/2891
+
 	* tex4ht-unicode.tex (unicode.4ht): disabled redefinition of
 	accents, in order to get pictured accents in default HTML math
 	output.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2023-03-27 07:25:44 UTC (rev 1311)
+++ trunk/lit/tex4ht-4ht.tex	2023-03-27 13:06:23 UTC (rev 1312)
@@ -937,6 +937,8 @@
 >>> \AddFile{9}{titlesec-hooks}
 
 \<titlesec-packagehooks\><<<
+\let\ttl:@makechapterhead\@makechapterhead
+\let\ttl:@makeschapterhead\@makeschapterhead
 \let\ttl:chapter\chapter
 \let\ttl:section\section
 \let\ttl:subsection\subsection
@@ -950,6 +952,8 @@
   \let\subsubsection\ttl:subsubsection
   \let\paragraph\ttl:paragraph
   \let\subparagraph\ttl:subparagraph
+  \let\@makechapterhead\ttl:@makechapterhead
+  \let\@makeschapterhead\ttl:@makeschapterhead
 }
 >>>
 



More information about the tex4ht-commits mailing list.