summaryrefslogtreecommitdiff
path: root/support/TeX4ht
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht')
-rw-r--r--support/TeX4ht/source/ChangeLog5
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex10
2 files changed, 13 insertions, 2 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 28e098577f..36d060f784 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,8 @@
+2022-11-18 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (nameref.4ht): disable \index and \label commands
+ in Caption's package version of \caption.
+
2022-11-17 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-4ht.tex (
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index f846cebdac..21a4f041b8 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1241 2022-11-17 18:48:36Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1242 2022-11-18 22:04:51Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -3549,7 +3549,13 @@ definitions.
\@ifpackageloaded{caption}{
\pend:defIII\caption@beginex{%
\gdef\NR:Type{\@currenvir}%
- \gdef\NR:Title{\a:newlabel{##2}}%
+ % handle \label and \index in Caption's package
+ % version of \caption
+ \begingroup%
+ \let\index\:gobble%
+ \let\label\:gobble%
+ \protected@xdef\NR:Title{\a:newlabel{##2}}%
+ \endgroup%
}
}{}