diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/zref-xr.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/zref-xr.sty | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/zref-xr.sty b/Master/texmf-dist/tex/latex/oberdiek/zref-xr.sty index 2b74a8397a2..1fde34c1017 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/zref-xr.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/zref-xr.sty @@ -39,11 +39,12 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-xr}% - [2010/03/29 v2.9 Module xr for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module xr for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} \RequirePackage{keyval} \zref@newprop{url}{}% +\zref@newprop{externaldocument}{}% \providecommand*{\zref@xr@ext}{% \ltx@ifundefined{XR@ext}{pdf}{\XR@ext}% }% @@ -63,7 +64,8 @@ \def\ZREF@xr@externaldocument[#1]#2{% \def\ZREF@xr@prefix{#1}% \let\ZREF@xr@filelist\@empty - \edef\ZREF@xr@file{#2.aux}% + \edef\ZREF@xr@externalfile{#2}% + \edef\ZREF@xr@file{\ZREF@xr@externalfile.aux}% \filename@parse{#2}% \@testopt\ZREF@xr@graburl{#2.\zref@xr@ext}% }% @@ -150,6 +152,12 @@ \expandafter\ZREF@xr@checklist\x\ZREF@nil \expandafter\global\expandafter\let \csname \ZREF@xr@refname\endcsname\x + \expandafter\g@addto@macro + \csname\ZREF@xr@refname\expandafter\endcsname\expandafter{% + \expandafter\externaldocument\expandafter{% + \ZREF@xr@externalfile + }% + }% \fi \ZREF@xr@urlcheck{\ZREF@xr@prefix#1}% }{% @@ -173,6 +181,12 @@ \expandafter\g@addto@macro \csname\ZREF@xr@refname\endcsname{\theotype{#4}}% \fi + \expandafter\g@addto@macro + \csname\ZREF@xr@refname\expandafter\endcsname\expandafter{% + \expandafter\externaldocument\expandafter{% + \ZREF@xr@externalfile + }% + }% \ZREF@xr@urlcheck{\ZREF@xr@prefix#1}% }{% \ZREF@xr@ignorewarning{\ZREF@xr@prefix#1}% |