diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tools/xr.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tools/xr.sty | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/tools/xr.sty b/Master/texmf-dist/tex/latex/tools/xr.sty index 2a288dacafc..6fad3d0c7db 100644 --- a/Master/texmf-dist/tex/latex/tools/xr.sty +++ b/Master/texmf-dist/tex/latex/tools/xr.sty @@ -35,10 +35,10 @@ %% The list of all files belonging to the LaTeX `Tools Bundle' is %% given in the file `manifest.txt'. %% -%% File: xr.dtx Copyright (C) 1994-1994 David Carlisle +%% File: xr.dtx Copyright (C) 1994-1994 2018 David Carlisle \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{xr} - [1994/05/28 v5.02 eXternal References (DPC)] + [2018/10/01 v5.03 eXternal References (DPC)] \def\externaldocument{\@ifnextchar[\XR@{\XR@[]}} \def\XR@[#1]#2{{% \makeatletter @@ -62,11 +62,13 @@ \read\@inputcheck to\XR@line \expandafter\XR@test\XR@line...\XR@} \long\def\XR@test#1#2#3#4\XR@{% + \let\XR@next\@gobbletwo \ifx#1\newlabel - \newlabel{\XR@prefix#2}{#3}% + \let\XR@next\@firstoftwo% \else\ifx#1\@input - \edef\XR@list{\XR@list#2\relax}% + \let\XR@next\@secondoftwo \fi\fi + \XR@next{\newlabel{\XR@prefix#2}{#3}}{\edef\XR@list{\XR@list#2\relax}}% \ifeof\@inputcheck\expandafter\XR@aux \else\expandafter\XR@read\fi} |