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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Sep 23 12:50:11 CEST 2024


Author: michal_h21
Date: 2024-09-23 10:50:11 +0000 (Mon, 23 Sep 2024)
New Revision: 1556

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-info.tex
   trunk/lit/tex4ht-sty.tex
   trunk/lit/tex4ht-t4ht.tex
   trunk/lit/wripro.tex
Log:
renamed internal TeX4ht \Ref to \XRef to prevent clashes with LaTeX \Ref

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-09-23 10:16:04 UTC (rev 1555)
+++ trunk/lit/ChangeLog	2024-09-23 10:50:11 UTC (rev 1556)
@@ -1,5 +1,11 @@
 2024-09-23  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (th4.4ht),
+	* tex4ht-info.tex (info4ht.4ht),
+	* tex4ht-sty.tex (tex4ht.sty),
+	* wripro.tex: renamed internal TeX4ht command \Ref to \XRef, to
+	prevent clashes with \Ref provided by LaTeX.
+
 	* tex4ht-4ht.tex (latex.4ht): fixed support for superscripts and
 	subscripts that are used values in labels (like in
 	\tag{$e_{1}$}\label{eq1}). Thanks to Linas Stonys.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-09-23 10:16:04 UTC (rev 1555)
+++ trunk/lit/tex4ht-4ht.tex	2024-09-23 10:50:11 UTC (rev 1556)
@@ -37123,25 +37123,25 @@
 
 \<non-html TeX4ht divs\><<<
 \def\TagCh#1{\Tag{#1|<Ch tag|>}{\theChapterCounter}}
-\def\RefCh#1{Chapter\ \Ref{#1|<Ch tag|>}}
+\def\RefCh#1{Chapter\ \XRef{#1|<Ch tag|>}}
 \def\TagApp#1{\Tag{#1|<Ap tag|>}{\theChapterCounter}}
-\def\RefApp#1{Appendix\ \Ref{#1|<Ap tag|>}}
+\def\RefApp#1{Appendix\ \XRef{#1|<Ap tag|>}}
 \def\TagSec#1{\Tag{#1|<Sec tag|>}{\theSectionCounter}}
-\def\RefSec#1{Section\ \Ref{#1|<Sec tag|>}}
+\def\RefSec#1{Section\ \XRef{#1|<Sec tag|>}}
 >>>
 
 \<html TeX4ht divs\><<<
 \def\TagCh#1{\Tag{#1|<Ch tag|>}{\theChapterCounter}\Tag
                                                {#1|<hCh tag|>}{\:curch}}
-\def\RefCh#1{\Link{\LikeRef{#1|<hCh tag|>}}{}Chapter\ \Ref
+\def\RefCh#1{\Link{\LikeRef{#1|<hCh tag|>}}{}Chapter\ \XRef
                                                {#1|<Ch tag|>}\EndLink}
 \def\TagApp#1{\Tag{#1|<Ap tag|>}{\theChapterCounter}\Tag
                                                {#1|<hAp tag|>}{\:curch}}
-\def\RefApp#1{\Link{\LikeRef{#1|<hAp tag|>}}{}Appendix\ \Ref
+\def\RefApp#1{\Link{\LikeRef{#1|<hAp tag|>}}{}Appendix\ \XRef
                                                {#1|<Ap tag|>}\EndLink}
 \def\TagSec#1{\Tag{#1|<Sec tag|>}{\theSectionCounter}\Tag
                                                {#1|<hSec tag|>}{\:cursec}}
-\def\RefSec#1{\Link{\LikeRef{#1|<hSec tag|>}}{}Section\ \Ref
+\def\RefSec#1{\Link{\LikeRef{#1|<hSec tag|>}}{}Section\ \XRef
                                                {#1|<Sec tag|>}\EndLink}
 >>>
 
@@ -37153,12 +37153,12 @@
 \<html TeX4ht divs\><<<
 \def\TagPage#1{%
    \Link{}{page#1}\EndLink\Tag{#1}{}}
-\def\RefPage#1{\Link{page#1}{}\Ref{#1}\EndLink}
+\def\RefPage#1{\Link{page#1}{}\XRef{#1}\EndLink}
 >>>
 
 \<non-html TeX4ht divs\><<<
 \def\TagPage#1{\Tag{#1}{}}
-\def\RefPage{\Ref}
+\def\RefPage{\XRef}
 >>>
 
 %\SubSection{Standard}

Modified: trunk/lit/tex4ht-info.tex
===================================================================
--- trunk/lit/tex4ht-info.tex	2024-09-23 10:16:04 UTC (rev 1555)
+++ trunk/lit/tex4ht-info.tex	2024-09-23 10:50:11 UTC (rev 1556)
@@ -654,15 +654,15 @@
    #1  label
    #2  content
 
-\Ref.....................................1
+\XRef.....................................1
 \LikeRef.................................1
 
    #1  label
    
-   \Tag and \Ref are tex4ht.sty commands introduced cross-referencing
+   \Tag and \XRef are tex4ht.sty commands introduced cross-referencing
    content through .xref auxiliary files.  
 
-   \LikeRef is a variant of \Ref which doesn't verify whether the 
+   \LikeRef is a variant of \XRef which doesn't verify whether the 
    labels exit.  It is mainly used in \Link and \edef environments.
 
 \ifTag ..................................3
@@ -676,7 +676,7 @@
    Load the named xref-type file
 
    .xref      optional--`.xref' is assume for a default
-   +          optional-- asks \Ref and \LikeRef commands
+   +          optional-- asks \XRef and \LikeRef commands
               to use expanded tags `filename::tag', instead of just `tag'
    [prefix]   optional--asks just for tags starting with the 
               specified prefix. 
@@ -688,7 +688,7 @@
    Example:
 
         % a.tex
-        \LoadRef-[to:]{b}{from:#1}      \Ref{from:filename}
+        \LoadRef-[to:]{b}{from:#1}      \XRef{from:filename}
                                         \LikeRef{from:filename}
 
         % b.tex

Modified: trunk/lit/tex4ht-sty.tex
===================================================================
--- trunk/lit/tex4ht-sty.tex	2024-09-23 10:16:04 UTC (rev 1555)
+++ trunk/lit/tex4ht-sty.tex	2024-09-23 10:50:11 UTC (rev 1556)
@@ -2162,11 +2162,11 @@
 
 \SubSection{Ref}
 
-The implementations of \''\Ref' and \''\Tag' view the crosswords $\alpha$ as 
+The implementations of \''\XRef' and \''\Tag' view the crosswords $\alpha$ as 
 pointers to macros that carry  the names `\''\cw:'$\alpha$'. 
 
 \<common cross references\><<<
-\def\Ref#1{\expandafter\ifx
+\def\XRef#1{\expandafter\ifx
                  \csname |<tag of Tag|>#1\endcsname \relax \:NoTag{#1}%
            \else \csname |<tag of Tag|>#1\endcsname    \fi}
 >>>
@@ -2186,7 +2186,7 @@
 \SubSection{LikeRef}
 
 The \`'\:LikeRef' command is a stripped down version of
-\`'\Ref'; it doesn't check whether the tag is defined.
+\`'\XRef'; it doesn't check whether the tag is defined.
 
 The space in \`'\space' is needed for carrying MAME tags
 in (mosaic) html files.
@@ -2272,7 +2272,7 @@
 \openin15=\jobname.xref 
 \ifeof15  \def\:NoTag#1{\hbox{$???$}}
 \else     \def\:NoTag#1{\hbox{$???$}
-              \:warning{\string\Ref\string{\string#1\string}?}}
+              \:warning{\string\XRef\string{\string#1\string}?}}
   |<warnings for missing /Link|>
 \fi
 \closein15
@@ -2312,11 +2312,11 @@
 is empty the component \`'{...}' should also be omitted (and the
 comamnd assume the form \`'\LoadRef{filename.ext}').
 
-A \`'+' asks that \`'\Ref' and \`'LikeRef' commands will refer to
+A \`'+' asks that \`'\XRef' and \`'LikeRef' commands will refer to
 expanded tags of the form \`'filename::tag' instead of just \`'tag'.
 A \`'[prefix]' asks that only tags which start with the given prefix
 will be loaded. When \`'[prefix]' is omitted, an empty prefix is
-assumed and all the tags are loaded. A \`'-' asks that \`'\Ref' and
+assumed and all the tags are loaded. A \`'-' asks that \`'\XRef' and
 \`'LikeRef' commands will refer to truncated tags in which the
 specified prefixes are omitted.
 
@@ -2920,7 +2920,7 @@
 >>>
 
 
-\`'\def\RefFile#1{\Ref{#1|<File tag|>}}
+\`'\def\RefFile#1{\XRef{#1|<File tag|>}}
 \def\LikeRefFile#1{\LikeRef{#1|<File tag|>}}'
 
 \<html file commands\><<<

Modified: trunk/lit/tex4ht-t4ht.tex
===================================================================
--- trunk/lit/tex4ht-t4ht.tex	2024-09-23 10:16:04 UTC (rev 1555)
+++ trunk/lit/tex4ht-t4ht.tex	2024-09-23 10:50:11 UTC (rev 1556)
@@ -2351,7 +2351,7 @@
 
 The htfcss records are stored in the following linked list, and used
 when the  font entries `Font("key","...","...","...")' are loaded
-(Section~'\Link{usehtfcc}{}\Ref{usehtfcc}\EndLink').
+(Section~'\Link{usehtfcc}{}\XRef{usehtfcc}\EndLink').
 
 \<vars\><<<
 static struct htf_struct *htf_rec = (struct htf_struct *) 0;

Modified: trunk/lit/wripro.tex
===================================================================
--- trunk/lit/wripro.tex	2024-09-23 10:16:04 UTC (rev 1555)
+++ trunk/lit/wripro.tex	2024-09-23 10:50:11 UTC (rev 1556)
@@ -181,9 +181,9 @@
 
 
 A \`'\Link-{..}{b}' asks that a \''\Tag' will not be produced for `b'.
-A \`'\Link[\empty]{b}{..}' asks that a \''\Ref' will not be produced for
+A \`'\Link[\empty]{b}{..}' asks that a \''\XRef' will not be produced for
 `a'. The same is true for any other non-empty replacement to \''\empty'
-A `b' for which we neither have a \''\Tag' and a \''\Ref' provides
+A `b' for which we neither have a \''\Tag' and a \''\XRef' provides
 a memory save in `strings out of', `string characters out of', and
 `multiletter control sequences' (see log files).
 



More information about the tex4ht-commits mailing list.