diff options
author | Karl Berry <karl@freefriends.org> | 2023-05-18 21:59:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-05-18 21:59:51 +0000 |
commit | b81e832079286e5c6f58017a699381769902e3ae (patch) | |
tree | 59ab3186930cd3a91efbbd2518fa44c245e423f2 /Master/texmf-dist/source/generic | |
parent | ffdd4e7bec387ef6f12d7bfaa19e0ca90c5c29e0 (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/source/generic')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 8 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex | 9 |
2 files changed, 13 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 0792e7db667..02e9e5d0c15 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,4 +1,12 @@ +2023-05-18 Michal Hoftich <michal.h21@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@freefriends.org> + + * update-htfonts: also install tex4ht-fonts*.tex and other sources. 2023-05-11 Michal Hoftich <michal.h21@gmail.com> diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex index f4beaa0ac6d..37cefd1942d 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex @@ -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 @@ Support for links from the \Verb|\cref| command. \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 |