summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-06-27 21:10:01 +0000
committerKarl Berry <karl@freefriends.org>2022-06-27 21:10:01 +0000
commitd9c30dba5e926831d7fa333d624e12208e850bc6 (patch)
treecec2f88f67c9f377502862dfffdd7dac8ef9bd7e /Master/texmf-dist/tex
parentf53463f85287ae39aca758fb293f1de82dcb0580 (diff)
disable index and label inside caption with nameref, tex4ht r1161
git-svn-id: svn://tug.org/texlive/trunk@63740 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/nameref.4ht12
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht b/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
index 870920095ec..264739db7bd 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
@@ -1,4 +1,4 @@
-% nameref.4ht (2022-04-13-13:14), generated from tex4ht-4ht.tex
+% nameref.4ht (2022-06-27-13:57), generated from tex4ht-4ht.tex
% Copyright 2005-2009 Eitan M. Gurari
% Copyright 2009-2022 TeX Users Group
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2022-04-13-13:14}
+\immediate\write-1{version 2022-06-27-13:57}
\let\NR:Type\relax
\let\ltx@label\label
@@ -86,9 +86,15 @@
% \NR:Type threw an undefined control sequence error. I think
% \@currenvir is safe, there is nothing special about \@captype.
%
+% use of \index and \label inside caption results in a fatal error
+% we need to disable them in \NR:Title
\long\def\@caption#1[#2]{%
\gdef\NR:Type{\@currenvir}%
- \gdef\NR:Title{\a:newlabel{#2}}%
+ \begingroup%
+ \let\index\:gobble%
+ \let\label\:gobble%
+ \xdef\NR:Title{\a:newlabel{#2}}%
+ \endgroup%
\o:NR@@caption{#1}[{#2}]%
}