[tex4ht-commits] [SCM] tex4ht updated: r522 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Tue Feb 19 15:56:07 CET 2019


Author: michal_h21
Date: 2019-02-19 16:56:07 +0200 (Tue, 19 Feb 2019)
New Revision: 522

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
cleveref: added support for reference hyperlinks

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-02-03 18:33:49 UTC (rev 521)
+++ trunk/lit/ChangeLog	2019-02-19 14:56:07 UTC (rev 522)
@@ -1,3 +1,7 @@
+2019-02-19  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (cleveref.4ht): added support for reference hyperlinks.
+
 2019-01-30  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht): horizontally center longtables.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2019-02-03 18:33:49 UTC (rev 521)
+++ trunk/lit/tex4ht-4ht.tex	2019-02-19 14:56:07 UTC (rev 522)
@@ -3268,7 +3268,7 @@
 %%%%%%%%%%%%%%%%%%
 \Section{cleveref}
 
-This basic support for the cleveref package. 
+This is a  basic support for the cleveref package. 
 \Link[https://tex.stackexchange.com/a/220345/2891]{}{}Source.\EndLink
 
 \<cleveref.4ht\><<<
@@ -3296,9 +3296,29 @@
     [\@tempa][\arabic{#2}][\cref at result]%
     \csname p@#2\endcsname\csname the#2\endcsname}}%
 \Hinput{cleveref}
+
+|<cleveref links|>
 \endinput
 >>> \AddFile{8}{cleveref}
 
+
+Support for links from the \Verb|\cref| command. 
+\Link[https://tex.stackexchange.com/a/475664/2891]{}{}More information.\EndLink
+
+\<cleveref links\><<<
+\ifdefined\@firstoffive\else%
+  \def\@firstoffive#1#2#3#4#5{#1}
+\fi
+\def\:tempa#1#2{\bgroup%
+  \def\rEfLiNK##1##2{\Link{##1}{}}%
+  \expandafter\expandafter\expandafter\@firstoffive\csname r@#2\endcsname{}{}{}{}{}%
+  \o:@@@setcref:{#1}{#2}%
+  \EndLink\egroup%
+}%
+
+\HLet\@@@setcref=\:tempa
+>>>
+
 %%%%%%%%%%%%%%%%%%
 \Section{authblk}
 



More information about the tex4ht-commits mailing list