[tex4ht-commits] [SCM] tex4ht updated: r1337 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Wed Jun 7 22:53:51 CEST 2023
Author: michal_h21
Date: 2023-06-07 20:53:50 +0000 (Wed, 07 Jun 2023)
New Revision: 1337
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
fixed numbering of subfigures and subtables
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2023-06-07 07:00:35 UTC (rev 1336)
+++ trunk/lit/ChangeLog 2023-06-07 20:53:50 UTC (rev 1337)
@@ -1,5 +1,9 @@
2023-06-07 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-4ht.tex (subcaption.4ht): fixed numbering of subfigures and
+ subtables.
+ https://tex.stackexchange.com/a/687996/2891
+
* tex4ht-4ht.tex (xecjk-hooks.4ht): allow xeCJK to be executed with
LuaLaTeX.
https://github.com/michal-h21/make4ht/issues/123
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2023-06-07 07:00:35 UTC (rev 1336)
+++ trunk/lit/tex4ht-4ht.tex 2023-06-07 20:53:50 UTC (rev 1337)
@@ -12675,11 +12675,15 @@
\<subcaption.4ht\><<<
% subcaption.4ht (|version), generated from |jobname.tex
-% Copyright 2021 TeX Users Group
+% Copyright 2021-2023 TeX Users Group
|<TeX4ht license text|>
\NewConfigure{subfigure}{2}
\ConfigureEnv{subfigure}{\a:subfigure}{\b:subfigure}{}{}
\ConfigureEnv{subtable}{\a:subfigure}{\b:subfigure}{}{}
+% these counters are not reset with TeX4ht, which leads to
+% wrong numbering of subfigures
+\AddToHook{env/figure/begin}{\setcounter{subfigure}{0}}
+\AddToHook{env/table/begin}{\setcounter{subtable}{0}}
\Hinput{subcaption}
\endinput
>>> \AddFile{9}{subcaption}
More information about the tex4ht-commits
mailing list.