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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Jul 28 20:30:37 CEST 2023


Author: michal_h21
Date: 2023-07-28 18:30:37 +0000 (Fri, 28 Jul 2023)
New Revision: 1352

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed issues with \mainline and \newchessgame in xskak

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-07-28 18:19:42 UTC (rev 1351)
+++ trunk/lit/ChangeLog	2023-07-28 18:30:37 UTC (rev 1352)
@@ -1,5 +1,8 @@
 2023-07-28  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (xskak.4ht): removed redefiniton of \mainline and
+	added optional argument for \newchessgame.
+
 	* tex4ht-fonts-noncjk.tex (
 	./tex4ht.dir/texmf/tex4ht/ht-fonts/unicode/misc/SkakNew.htf
 	): fixed some wrong characters.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2023-07-28 18:19:42 UTC (rev 1351)
+++ trunk/lit/tex4ht-4ht.tex	2023-07-28 18:30:37 UTC (rev 1352)
@@ -34228,7 +34228,7 @@
 
 \<xskak.4ht\><<<
 % xskak.4ht (|version), generated from |jobname.tex
-% Copyright 2022 TeX Users Group
+% Copyright 2022-2023 TeX Users Group
 |<TeX4ht license text|>
 |<xskak depth|>
 |<xskak inline elements|>
@@ -34259,7 +34259,10 @@
   %\a:mainline\Picture*[\detokenize{#1}]{ style="\:xskakdepth"}\box0\EndPicture\b:mainline%
   \a:mainline\box0\b:mainline%
 }
-\HLet\mainline\:tempa
+% I've found that mainline redefinition can lead to compilation errors
+% As it prints text and chess symbols are retrieved from SkakNew.htf, maybe we don't need
+% to compile it to image at all, unless we get further bug reports.
+% \HLet\mainline\:tempa
 
 \NewConfigure{xskakget}{2}
 \def\:tempa#1{%
@@ -34278,15 +34281,15 @@
 >>>
 
 \<xskak.sty\><<<
-\def\:tempa{%
+\newcommand\:newchessgame[1][]{%
   % reset to the original version of \chessboard
   \let\:currchesboard\chessboard
   \let\chessboard\o:chessboard:%
-  \o:newchessgame:%
+  \o:newchessgame:[#1]%
   % set the TeX4ht version of \chessboard back
   \let\chessboard\:currchesboard
 }
-\HLet\newchessgame\:tempa
+\HLet\newchessgame\:newchessgame
 >>>
 
 



More information about the tex4ht-commits mailing list.