[tex4ht-commits] [SCM] tex4ht updated: r1529 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Sat Jun 15 19:59:08 CEST 2024
Author: michal_h21
Date: 2024-06-15 17:59:08 +0000 (Sat, 15 Jun 2024)
New Revision: 1529
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
enhanced support for unknown label types with nameref
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2024-06-10 18:18:47 UTC (rev 1528)
+++ trunk/lit/ChangeLog 2024-06-15 17:59:08 UTC (rev 1529)
@@ -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/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2024-06-10 18:18:47 UTC (rev 1528)
+++ trunk/lit/tex4ht-4ht.tex 2024-06-15 17:59:08 UTC (rev 1529)
@@ -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}}%
More information about the tex4ht-commits
mailing list.