summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-04-13 21:22:09 +0000
committerKarl Berry <karl@freefriends.org>2022-04-13 21:22:09 +0000
commit5fbdde835cedbab62d0fef554d33770b307839a8 (patch)
treedb6ea7233290ee1e9cf98cdc5feafe4422b61024 /Master/texmf-dist/tex/generic/tex4ht
parent6c42279a36bed48049930270e967663e428a2975 (diff)
\ref* and \Ref support, tex4ht r1109-1110
git-svn-id: svn://tug.org/texlive/trunk@63021 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/latex.4ht18
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/nameref.4ht10
2 files changed, 18 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/latex.4ht b/Master/texmf-dist/tex/generic/tex4ht/latex.4ht
index bb81d084856..176b80528cd 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/latex.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/latex.4ht
@@ -1,4 +1,4 @@
-% latex.4ht (2022-02-01-14:27), generated from tex4ht-4ht.tex
+% latex.4ht (2022-04-13-13:14), generated from tex4ht-4ht.tex
% Copyright 1997-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-02-01-14:27}
+\immediate\write-1{version 2022-04-13-13:14}
\ifx\SaveMkHalignConf:g\:UnDef \else \expandafter\endinput\fi
@@ -430,8 +430,16 @@
\let\o:ref\:ref
\def\::ref#1{{\:SUBOff\:SUPOff\xdef\RefArg{#1}}\expandafter\o:ref
\expandafter{\RefArg}}
-\def\:ref{\Protect\::ref}
+\def\:ref{\@ifstar{\Protect\::ref}{\Protect\::ref}}
\let\ref\:ref
+\def\::Ref#1{%
+ \let\olda:rEfLiNK\rEfLiNK%%
+ \def\rEfLiNK##1##2{\Link{##1}{}\edef\:ref:currentlabel{##2}\expandafter\MakeUppercase\:ref:currentlabel\EndLink}%
+ \::ref{#1}%
+ \let\rEfLiNK\olda:rEfLiNK%
+}
+\def\:Ref{\@ifstar{\Protect\::Ref}{\Protect\::Ref}}
+\let\Ref\:Ref
\let\:newl@bel\@newl@bel
\let\n:wlbl\@newl@bel
\def\@newl@bel#1#2{{\:SUBOff\:SUPOff
@@ -2298,7 +2306,7 @@ $\vcenter
\expandafter\:temp\usepackage!*?:
\def\:tempa{\@latex@e@error}
\ifx \:temp\:tempa
- % latex209.4ht (2022-02-01-14:27), generated from tex4ht-4ht.tex
+ % latex209.4ht (2022-04-13-13:14), generated from tex4ht-4ht.tex
% Copyright 1997-2009 Eitan M. Gurari
% Copyright 2009-2022 TeX Users Group
%
@@ -2317,7 +2325,7 @@ $\vcenter
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2022-02-01-14:27}
+\immediate\write-1{version 2022-04-13-13:14}
\let\:fnsymbol\@fnsymbol
\def\@fnsymbol#1{{\hbox{$\:fnsymbol{#1}$}}}
diff --git a/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht b/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
index 89d00be8106..870920095ec 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
@@ -1,6 +1,6 @@
-% nameref.4ht (2021-02-03-14:57), generated from tex4ht-4ht.tex
+% nameref.4ht (2022-04-13-13:14), generated from tex4ht-4ht.tex
% Copyright 2005-2009 Eitan M. Gurari
-% Copyright 2009-2021 TeX Users Group
+% Copyright 2009-2022 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2021-02-03-14:57}
+\immediate\write-1{version 2022-04-13-13:14}
\let\NR:Type\relax
\let\ltx@label\label
@@ -163,12 +163,12 @@
}
\let\T:ref=\::ref
-\def\::ref{\protect\T@ref}
+\def\::ref{\@ifstar{\protect\T@ref}{\protect\T@ref}}
\def\T@ref#1{%
\@safe@activestrue
\let\::ref \T:ref
\expandafter\@setref\csname r@#1\endcsname\@firstoffive{#1}%
- \def\::ref{\protect\T@ref}%
+ \def\::ref{\@ifstar{\protect\T@ref}{\protect\T@ref}}
\@safe@activesfalse
}