[latex3-commits] [latex3/hyperref] develop: use \set at curr@file to support files with spaces (6e1c61e)

github at latex-project.org github at latex-project.org
Sat Jan 20 18:41:51 CET 2024


Repository : https://github.com/latex3/hyperref
On branch  : develop
Link       : https://github.com/latex3/hyperref/commit/6e1c61e6849228fb48b1f99f0d0ec8c2df64052a

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

commit 6e1c61e6849228fb48b1f99f0d0ec8c2df64052a
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jan 20 18:41:31 2024 +0100

    use \set at curr@file to support files with spaces


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

6e1c61e6849228fb48b1f99f0d0ec8c2df64052a
 testfiles/xr-space.lvt | 17 +++++++++++++++++
 testfiles/xr-space.tlg |  6 ++++++
 xr-hyper.dtx           |  5 +++--
 3 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/testfiles/xr-space.lvt b/testfiles/xr-space.lvt
new file mode 100644
index 0000000..2b50003
--- /dev/null
+++ b/testfiles/xr-space.lvt
@@ -0,0 +1,17 @@
+\documentclass{book}
+\input{regression-test}
+\begin{filecontents}[force]{test with space.aux}
+\newlabel{A}{{1.1}{1}{title}{section.title}{}}
+\end{filecontents}
+
+\usepackage{xr-hyper}
+
+\externaldocument{ test with space }
+\begin{document}
+\START \showoutput
+
+\makeatletter 
+
+ \show\r at A
+
+\end{document}
diff --git a/testfiles/xr-space.tlg b/testfiles/xr-space.tlg
new file mode 100644
index 0000000..84e4455
--- /dev/null
+++ b/testfiles/xr-space.tlg
@@ -0,0 +1,6 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+> \r at A=macro:
+->{1.1}{1}{title}{section.title}{ test with space .pdf}.
+l. ... \show\r at A
+(xr-space.aux)
diff --git a/xr-hyper.dtx b/xr-hyper.dtx
index f6b5513..fa92d4f 100644
--- a/xr-hyper.dtx
+++ b/xr-hyper.dtx
@@ -238,8 +238,9 @@
      \let\XR at bibcite\bibcite
    \fi
   \def\XR at URL{#4}%
-  \filename at parse{#3}%
-  \XR at next#3.aux\relax\\}}
+  \set at curr@file{#3}% 
+  \filename at parse\@curr at file 
+  \XR at next\@curr at file.aux\relax\\}}
 %    \end{macrocode}
 %
 % Process the next |aux| file in the list and remove it from the head of





More information about the latex3-commits mailing list.