texlive[63740] Master/texmf-dist: disable index and label inside
commits+karl at tug.org
commits+karl at tug.org
Mon Jun 27 23:10:01 CEST 2022
Revision: 63740
http://tug.org/svn/texlive?view=revision&revision=63740
Author: karl
Date: 2022-06-27 23:10:01 +0200 (Mon, 27 Jun 2022)
Log Message:
-----------
disable index and label inside caption with nameref, tex4ht r1161
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1161
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2022-06-27 20:22:56 UTC (rev 63739)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2022-06-27 21:10:01 UTC (rev 63740)
@@ -1,3 +1,8 @@
+2022-06-27 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (nameref.4ht): disable \index and \label inside
+ \caption, to prevent fatal errors.
+
2022-06-24 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-jats.4ht (jats.4ht): added support for pictures.
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2022-06-27 20:22:56 UTC (rev 63739)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2022-06-27 21:10:01 UTC (rev 63740)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1158 2022-06-21 15:56:07Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1161 2022-06-27 10:03:53Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -3475,9 +3475,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}]%
}
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht 2022-06-27 20:22:56 UTC (rev 63739)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht 2022-06-27 21:10:01 UTC (rev 63740)
@@ -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 at 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}]%
}
More information about the tex-live-commits
mailing list.