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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sat Oct 17 11:36:23 CEST 2020


Author: michal_h21
Date: 2020-10-17 12:36:23 +0300 (Sat, 17 Oct 2020)
New Revision: 820

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Adapted Ctex for the new package mechanism

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-10-17 09:31:53 UTC (rev 819)
+++ trunk/lit/ChangeLog	2020-10-17 09:36:23 UTC (rev 820)
@@ -12,6 +12,8 @@
 	the new package hook mechanism.
 	* tex4ht-4ht.tex (usepackage.4ht, fontspec-hooks.4ht, polyglossia-hooks.4ht): 
 	adapted Fontspec and Polyglossia for the new package hook mechanism.
+	* tex4ht-4ht.tex (usepackage.4ht, ctex-hooks.4ht): adapted Ctex for
+	the new package hook mechanism.
 
 2020-10-16  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2020-10-17 09:31:53 UTC (rev 819)
+++ trunk/lit/tex4ht-4ht.tex	2020-10-17 09:36:23 UTC (rev 820)
@@ -3746,12 +3746,15 @@
 configuration file that caused TeX4ht to fail. We block this file 
 from loading.
 
-\<use package\><<<
-ctex,>>>
 
+\<add to usepackage\><<<
+\Configure{PackageHooks}{ctex.sty}{ctex-hooks.4ht}
+>>>
 
-\<add to usepackage\><<<
-\def\:temp{ctex}\ifx \@currname\:temp
+\<ctex-hooks.4ht\><<<
+% ctex-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2020 TeX Users Group
+|<TeX4ht license text|>
 \PassOptionsToPackage{fontset=none,autoindent=false}{ctex}
 \ExplSyntaxOn
 \let\o:file_input\file_input:n% patch \file_input:n to block
@@ -3771,8 +3774,7 @@
 \let\file_input:n\o:file_input
 }
 \ExplSyntaxOff
-\fi
->>>
+>>> \AddFile{9}{ctex-hooks}
 
 Add dummy .4ht file. We may use it in the future.
 



More information about the tex4ht-commits mailing list.