texlive[71536] Master/texmf-dist: nameref unknown label types, tex4ht
commits+karl at tug.org
commits+karl at tug.org
Sat Jun 15 22:52:42 CEST 2024
Revision: 71536
https://tug.org/svn/texlive?view=revision&revision=71536
Author: karl
Date: 2024-06-15 22:52:42 +0200 (Sat, 15 Jun 2024)
Log Message:
-----------
nameref unknown label types, tex4ht r1529
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1529
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 2024-06-15 19:53:58 UTC (rev 71535)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2024-06-15 20:52:42 UTC (rev 71536)
@@ -1,3 +1,9 @@
+2024-06-15 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (nameref.4ht): use \@currentlabelname if \NR:Title
+ is not set.
+ https://tex.stackexchange.com/a/720647/2891
+
2024-06-10 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (babel-sty-hooks.4ht): use \ProvideDocumentCommand
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2024-06-15 19:53:58 UTC (rev 71535)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2024-06-15 20:52:42 UTC (rev 71536)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1528 2024-06-10 18:18:47Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1529 2024-06-15 17:59:08Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2024 TeX Users Group
@@ -3487,11 +3487,20 @@
into the environment without messing the existing \`|\ConfigureEnv|
definitions.
+% Michal 2024-06-15
+% I've added use of \a:newlabel{\@currentlabelname} if \NR:Type is empty.
+% It seems to add support for name ref labels that are not supported yet
+% We need to empty \NR:Type after \label. I hope this doesn't break anything.
+% https://tex.stackexchange.com/a/720647/2891
+
\<nameref v.2 configurations\><<<
\let\NR:Type\relax
\let\ltx at label\label
-\def\prf:label{{\ifx \NR:Title\:UnDef \else \NR:Title\fi}%
+\def\prf:label{{\ifx \NR:Title\:UnDef \a:newlabel{\@currentlabelname}\else \NR:Title\fi}%
{\ifx \NR:Type\relax \else \NR:Type .1\fi}{}}%
+
+\append:defI\label{\let\NR:Title\undefined}
+
\let\NR:StartSec\:StartSec
\let\NR:no at sect\no at sect
\def\no at sect#1#2#3#4#5#6[#7]#8{\gdef\NR:Title{\a:newlabel{#7}}%
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht 2024-06-15 19:53:58 UTC (rev 71535)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht 2024-06-15 20:52:42 UTC (rev 71536)
@@ -1,6 +1,6 @@
-% nameref.4ht (2022-12-30-15:46), generated from tex4ht-4ht.tex
+% nameref.4ht (2024-06-15-13:36), generated from tex4ht-4ht.tex
% Copyright 2005-2009 Eitan M. Gurari
-% Copyright 2009-2022 TeX Users Group
+% Copyright 2009-2024 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -17,12 +17,15 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2022-12-30-15:46}
+\immediate\write-1{version 2024-06-15-13:36}
\let\NR:Type\relax
\let\ltx at label\label
-\def\prf:label{{\ifx \NR:Title\:UnDef \else \NR:Title\fi}%
+\def\prf:label{{\ifx \NR:Title\:UnDef \a:newlabel{\@currentlabelname}\else \NR:Title\fi}%
{\ifx \NR:Type\relax \else \NR:Type .1\fi}{}}%
+
+\append:defI\label{\let\NR:Title\undefined}
+
\let\NR:StartSec\:StartSec
\let\NR:no at sect\no at sect
\def\no at sect#1#2#3#4#5#6[#7]#8{\gdef\NR:Title{\a:newlabel{#7}}%
More information about the tex-live-commits
mailing list.