texlive[67151] Master/texmf-dist: omit punctuation in cleveref links,
commits+karl at tug.org
commits+karl at tug.org
Thu May 18 23:59:52 CEST 2023
Revision: 67151
http://tug.org/svn/texlive?view=revision&revision=67151
Author: karl
Date: 2023-05-18 23:59:51 +0200 (Thu, 18 May 2023)
Log Message:
-----------
omit punctuation in cleveref links, tex4ht r1332
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1332
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/cleveref.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-05-18 20:07:02 UTC (rev 67150)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-05-18 21:59:51 UTC (rev 67151)
@@ -1,5 +1,13 @@
+2023-05-18 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-4ht.tex (cleveref.4ht): don't include punctuation in links
+ with Cleveref references.
+ https://tex.stackexchange.com/a/686051/2891
+2023-05-14 Karl Berry <karl at freefriends.org>
+
+ * update-htfonts: also install tex4ht-fonts*.tex and other sources.
+
2023-05-11 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-fonts-stix2.tex,
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-05-18 20:07:02 UTC (rev 67150)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-05-18 21:59:51 UTC (rev 67151)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1328 2023-05-07 14:40:45Z karl $
+% $Id: tex4ht-4ht.tex 1332 2023-05-18 14:17:52Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2023 TeX Users Group
@@ -3712,10 +3712,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 at 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
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht 2023-05-18 20:07:02 UTC (rev 67150)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/cleveref.4ht 2023-05-18 21:59:51 UTC (rev 67151)
@@ -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 at 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
More information about the tex-live-commits
mailing list.