[tex4ht-commits] [SCM] tex4ht updated: r1177 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Sat Jul 16 11:21:43 CEST 2022
Author: michal_h21
Date: 2022-07-16 09:21:43 +0000 (Sat, 16 Jul 2022)
New Revision: 1177
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
make \ref and \Ref commands robust
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-07-10 14:24:03 UTC (rev 1176)
+++ trunk/lit/ChangeLog 2022-07-16 09:21:43 UTC (rev 1177)
@@ -1,3 +1,8 @@
+2022-07-16 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (latex.4ht): make \ref and \Ref commands robust.
+ https://tex.stackexchange.com/a/651075/2891
+
2022-07-08 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-jats.tex (jats.4ht): overwrite MathML redefinitions for
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2022-07-10 14:24:03 UTC (rev 1176)
+++ trunk/lit/tex4ht-4ht.tex 2022-07-16 09:21:43 UTC (rev 1177)
@@ -1489,7 +1489,7 @@
\let\o:ref|=\:ref
\def\::ref#1{{\:SUBOff\:SUPOff\xdef\RefArg{#1}}\expandafter\o:ref
\expandafter{\RefArg}}
-\def\:ref{\@ifstar{\Protect\::ref}{\Protect\::ref}}
+\DeclareDocumentCommand\:ref{s}{\IfBooleanTF{#1}{\Protect\::ref}{\Protect\::ref}}
\let\ref|=\:ref
>>>
@@ -1504,7 +1504,7 @@
\::ref{#1}%
\let\rEfLiNK\olda:rEfLiNK%
}
-\def\:Ref{\@ifstar{\Protect\::Ref}{\Protect\::Ref}}
+\DeclareDocumentCommand\:Ref{s}{\IfBooleanTF{#1}{\Protect\::Ref}{\Protect\::Ref}}
\let\Ref\:Ref
>>>
More information about the tex4ht-commits
mailing list.