summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-05-18 21:59:51 +0000
committerKarl Berry <karl@freefriends.org>2023-05-18 21:59:51 +0000
commitb81e832079286e5c6f58017a699381769902e3ae (patch)
tree59ab3186930cd3a91efbbd2518fa44c245e423f2 /Master/texmf-dist/tex/generic
parentffdd4e7bec387ef6f12d7bfaa19e0ca90c5c29e0 (diff)
omit punctuation in cleveref links, tex4ht r1332
git-svn-id: svn://tug.org/texlive/trunk@67151 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht11
1 files changed, 6 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht b/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht
index 1ffa05dcdf1..5b67ae39c33 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht
@@ -1,4 +1,4 @@
-% cleveref.4ht (2023-03-10-14:19), generated from tex4ht-4ht.tex
+% cleveref.4ht (2023-05-18-14:15), generated from tex4ht-4ht.tex
% Copyright 2018-2023 TeX Users Group
%
% This work may be distributed and/or modified under the
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2023-03-10-14:19}
+\immediate\write-1{version 2023-05-18-14:15}
@@ -63,10 +63,11 @@
\def\:tempa#1#2{\bgroup%
\def\rEfLiNK##1##2{\Link{##1}{}}%
\def\XRrEfLiNK[##1]##2##3{\Link[##1]{##2}{}}% handle links from Xr and Xr-hyper
- \expandafter\expandafter\expandafter\@firstoffive\csname r@#2\endcsname{}{}{}{}{}%
\cref@getlabel{#2}{\@templabel}%
- #1{\@templabel}{}{}%
- \EndLink\egroup%
+ #1{% add links only around reference numbers, not the previous text, because it can contain punctuation
+ \expandafter\expandafter\expandafter\@firstoffive\csname r@#2\endcsname{}{}{}{}{}%
+ \@templabel\EndLink}{}{}%
+ \egroup%
}%
\HLet\@@@setcref=\:tempa