From 5255c37137345163348d22ab46af2304cf9f55a6 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 2 Oct 2020 21:49:18 +0000
Subject: latex2e (2oct20)

git-svn-id: svn://tug.org/texlive/trunk@56514 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/tools/xr.sty | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/tools/xr.sty')

diff --git a/Master/texmf-dist/tex/latex/tools/xr.sty b/Master/texmf-dist/tex/latex/tools/xr.sty
index 0344f194e3d..3f448c9f21a 100644
--- a/Master/texmf-dist/tex/latex/tools/xr.sty
+++ b/Master/texmf-dist/tex/latex/tools/xr.sty
@@ -38,13 +38,14 @@
 %% File: xr.dtx Copyright (C) 1993-2019 David Carlisle
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{xr}
-         [2019/07/22 v5.05 eXternal References (DPC)]
+         [2020-05-10 v5.06 eXternal References (DPC)]
 \def\externaldocument{\@ifnextchar[\XR@{\XR@[]}}
 \let\externalcitedocument\externaldocument
 \def\XR@[#1]#2{{%
   \makeatletter
   \def\XR@prefix{#1}%
-  \XR@next#2.aux\relax\\}}
+  \set@curr@file{#2}%
+  \expandafter\XR@next\@curr@file.aux\relax\\}}
 \def\XR@next#1\relax#2\\{%
   \edef\XR@list{#2}%
   \XR@loop{#1}}
@@ -52,7 +53,7 @@
   \ifx\XR@list\@empty\else\expandafter\XR@explist\fi}
 
 \def\XR@explist{\expandafter\XR@next\XR@list\\}
-\def\XR@loop#1{\openin\@inputcheck#1\relax
+\def\XR@loop#1{\openin\@inputcheck{#1}\relax
   \ifeof\@inputcheck
     \PackageWarning{xr}{^^JNo file #1^^JLABELS NOT IMPORTED.^^J}%
     \expandafter\XR@aux
-- 
cgit v1.2.3

