[latex3-commits] [latex3/hyperref] xrhyper-properties: add support for properties, issue latex3/latex2e#1180 (bcd78c2)

github at latex-project.org github at latex-project.org
Sun Dec 3 16:52:38 CET 2023


Repository : https://github.com/latex3/hyperref
On branch  : xrhyper-properties
Link       : https://github.com/latex3/hyperref/commit/bcd78c22142512086e0f32959439cd2a9aca8aa4

>---------------------------------------------------------------

commit bcd78c22142512086e0f32959439cd2a9aca8aa4
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Dec 3 16:52:38 2023 +0100

    add support for properties, issue latex3/latex2e#1180


>---------------------------------------------------------------

bcd78c22142512086e0f32959439cd2a9aca8aa4
 ChangeLog.txt |  3 +++
 xr-hyper.sty  | 24 +++++++++++++++---------
 2 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/ChangeLog.txt b/ChangeLog.txt
index 7704baf..b27b9d5 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,6 @@
+2023-12-03  Ulrike Fischer
+	* xr-hyper.sty: add support for properties, issue latex3/latex2e#1180
+
 Version: 2023-11-26 v7.01g 
 		nameref 2023-11-26 v2.56 
 		backref 2023-11-26 v1.44
diff --git a/xr-hyper.sty b/xr-hyper.sty
index d1f931a..6adb768 100644
--- a/xr-hyper.sty
+++ b/xr-hyper.sty
@@ -84,10 +84,11 @@
 \def\XR at aux{%
   \ifx\XR at list\@empty\else\expandafter\XR at explist\fi}
 
-\long\def\@gobblethree  #1#2#3{}
-\long\def\@firstofthree #1#2#3{#1}
-\long\def\@secondofthree#1#2#3{#2}
-\long\def\@thirdofthree #1#2#3{#3}
+\long\def\@gobblefour  #1#2#3#4{}
+\long\def\@firstoffour #1#2#3#4{#1}
+\long\def\@secondoffour#1#2#3#4{#2}
+\long\def\@thirdoffour #1#2#3#4{#3}
+\long\def\@fourthoffour #1#2#3#4{#4}
 
 % 2023-05-13 we need to handle \newlabel's with two arguments differently
 % to \newlabel's with five argument. For this we make use of  
@@ -112,20 +113,25 @@
   \expandafter\XR at test\XR at line...\XR@}
 % 2019 update to match xr
 \long\def\XR at test#1#2#3#4\XR@{%
-  \let\XR at tempa\@gobblethree
+  \let\XR at tempa\@gobblefour
   \ifx#1\newlabel
-    \let\XR at tempa\@firstofthree
+    \let\XR at tempa\@firstoffour
   \else\ifx#1\XR at bibcite
-    \let\XR at tempa\@secondofthree
+    \let\XR at tempa\@secondoffour
   \else\ifx#1\@input
-     \let\XR at tempa\@thirdofthree
-  \fi\fi\fi
+     \let\XR at tempa\@thirdoffour
+  \else\ifx#1\new at label@record
+     \let\XR at tempa\@fourthoffour    
+  \fi\fi\fi\fi
    \XR at tempa
     {%
      \expandafter\protected at xdef\csname r@\XR at prefix#2\endcsname{\XR at addURL{#3}}%     
     }%
     {\expandafter\bibcite\expandafter{\XR at prefix#2}{#3}}%
     {\edef\XR at list{\XR at list\filename at area#2\relax}}%
+    {%
+      \expandafter\new at label@record\expandafter{\XR at prefix#2}{#3}%
+    }
   \ifeof\@inputcheck\expandafter\XR at aux
   \else\expandafter\XR at read\fi}
 





More information about the latex3-commits mailing list.