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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Aug 17 13:45:35 CEST 2022


Author: michal_h21
Date: 2022-08-17 11:45:35 +0000 (Wed, 17 Aug 2022)
New Revision: 1184

Modified:
   trunk/lit/ChangeLog
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
Log:
Fixed support for the early^ option with Babel and Graphics

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-08-17 10:03:42 UTC (rev 1183)
+++ trunk/lit/ChangeLog	2022-08-17 11:45:35 UTC (rev 1184)
@@ -1,5 +1,9 @@
 2022-08-17  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (babel-hooks.4ht, graphics-hooks.4ht): fixed
+	support for the early^ option with Babel and Graphics packages.
+	https://tex.stackexchange.com/q/654236/2891
+
 	* tex4ht-mathml.tex (html-mml.4ht): test argument of \mathopen in
 	Amsmath equation.
 	https://tex.stackexchange.com/q/654236/2891

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2022-08-17 10:03:42 UTC (rev 1183)
+++ trunk/lit/mktex4ht-cnf.tex	2022-08-17 11:45:35 UTC (rev 1184)
@@ -140,6 +140,7 @@
 \AddFile{9}{scrjura}
 \AddFile{7}{natbib}
 \AddFile{5}{babel}
+\AddFile{9}{babel-sty-hooks}
 \AddFile{7}{csquotes}
 \AddFile{7}{CJK}
 \AddFile{8}{arabicore}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-08-17 10:03:42 UTC (rev 1183)
+++ trunk/lit/tex4ht-4ht.tex	2022-08-17 11:45:35 UTC (rev 1184)
@@ -23760,6 +23760,20 @@
 \renewcommand{\mkenddispquote}[2]{#1\b:displayquote#2\c:displayquote}
 >>>
 
+Handle circumflex catcodes when the \Verb|early^| option is used.
+
+\<add to usepackage\><<<
+\Configure{PackageHooks}{babel.sty}{babel-sty-hooks.4ht}
+>>>
+
+\<babel-sty-hooks.4ht\><<<
+% babel-sty-hooks.4ht, generated from |jobname.tex
+% Copyright 2022 TeX Users Group
+|<TeX4ht license text|>
+|<disable early sup|>
+>>> 
+\AddFile{9}{babel-sty-hooks}
+
 %%%%%%%%%%%%%%%%%%%%%%
 \Section{CJK}
 %%%%%%%%%%%
@@ -26820,8 +26834,23 @@
 \ifdefined\XeTeXversion
   \PassOptionsToPackage{dvips}{graphics}
 \fi
+|<disable early sup|>
 >>> \AddFile{9}{graphics-hooks}
 
+The \Verb|early^| option can break some packages that changes catcode of 
+circumflex too. We need to revert to the original definition for the package
+processing, and then return to the TeX4ht definition after the package 
+is processed.
+
+\<disable early sup\><<<
+\ifdefined\recall:sup
+\recall:sup
+\:AtEndOfPackage{
+  \early:sup
+}
+\fi
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%%
 \SubSection{graphicx}
 %%%%%%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.