[tex4ht-commits] [SCM] tex4ht updated: r693 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Fri May 22 14:42:56 CEST 2020
Author: michal_h21
Date: 2020-05-22 15:42:56 +0300 (Fri, 22 May 2020)
New Revision: 693
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
Fixes for the Caption package
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-05-20 14:42:27 UTC (rev 692)
+++ trunk/lit/ChangeLog 2020-05-22 12:42:56 UTC (rev 693)
@@ -1,3 +1,8 @@
+2020-05-22 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (usepackage.4ht, caption.4ht): fixes for the Caption package.
+ https://tex.stackexchange.com/q/545582/2891
+
2020-05-20 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-ooffice.tex (ooffice.4ht): added support for MW classess in the
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2020-05-20 14:42:27 UTC (rev 692)
+++ trunk/lit/tex4ht-4ht.tex 2020-05-22 12:42:56 UTC (rev 693)
@@ -11032,6 +11032,7 @@
% Copyright |CopyYear.2007. Eitan M. Gurari
|<TeX4ht copyright|>
|<caption shared config|>
+|<caption redefine makecaption|>
\Hinput{caption}
\endinput
>>> \AddFile{9}{caption}
@@ -11043,6 +11044,10 @@
\def\:temp{caption}\ifx\@currname\:temp
\:AtEndOfPackage{%
\long\def\caption at If@Package at Loaded#1[#2]#3#4{}
+ \renewcommand*\caption at redefine{%
+ \let\caption\caption at caption%
+ \let\@caption\caption@@caption%
+ }%
}
\fi
>>>
@@ -11078,6 +11083,17 @@
}
>>>
+Handle redefined caption command
+
+\<caption redefine makecaption\><<<
+\long\def\@makecaption#1#2{%
+ \caption at make@above%
+ \cptA:\caption@@make{\cap:ref{#1}\if :#1:\else\cptB:\fi}{\cptC:#2}\cptD:%
+ \caption at make@below%
+}
+>>>
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Chapter{Index and Glossary}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.