[tex4ht-commits] [SCM] tex4ht updated: r1332 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Thu May 18 16:17:53 CEST 2023
Author: michal_h21
Date: 2023-05-18 14:17:52 +0000 (Thu, 18 May 2023)
New Revision: 1332
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
don't include punctuation in cleveref links
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2023-05-14 16:18:22 UTC (rev 1331)
+++ trunk/lit/ChangeLog 2023-05-18 14:17:52 UTC (rev 1332)
@@ -1,3 +1,9 @@
+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.
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2023-05-14 16:18:22 UTC (rev 1331)
+++ trunk/lit/tex4ht-4ht.tex 2023-05-18 14:17:52 UTC (rev 1332)
@@ -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
More information about the tex4ht-commits
mailing list.