diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index 998a21722f..8c5eca3dc9 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -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 @@ configuration until now. It seems to be useful when we need to inject something 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@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@sect\no@sect \def\no@sect#1#2#3#4#5#6[#7]#8{\gdef\NR:Title{\a:newlabel{#7}}% |