diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/zref.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/zref.dtx | 124 |
1 files changed, 73 insertions, 51 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/zref.dtx b/Master/texmf-dist/source/latex/oberdiek/zref.dtx index 8735a037298..6226af914cd 100644 --- a/Master/texmf-dist/source/latex/oberdiek/zref.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/zref.dtx @@ -100,7 +100,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: zref 2010/03/29 v2.9 New reference scheme for LaTeX2e (HO)} +\Msg{* Package: zref 2010/04/08 v2.10 New reference scheme for LaTeX2e (HO)} \Msg{************************************************************************} \keepsilent @@ -206,7 +206,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{zref.drv}% - [2010/03/29 v2.9 New reference scheme for LaTeX2e (HO)]% + [2010/04/08 v2.10 New reference scheme for LaTeX2e (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2008/08/11] \begin{document} @@ -215,7 +215,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{2001} +% \CheckSum{2027} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -236,7 +236,7 @@ and the derived files % \GetFileInfo{zref.drv} % % \title{The \xpackage{zref} package} -% \date{2010/03/29 v2.9} +% \date{2010/04/08 v2.10} % \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}} % % \maketitle @@ -948,7 +948,7 @@ and the derived files %<<END_EXAMPLE \documentclass{book} -\usepackage{zref-nextpage}[2010/03/29] +\usepackage{zref-nextpage}[2010/04/08] \znextpagesetup {\thepage}% next page is unknown {\thepage\ (#1)}% this page is last page @@ -1185,6 +1185,8 @@ and the derived files % |[|\meta{url}|]| % \end{declcs} % See \cs{externaldocument} for a description of this option. +% The found labels also get a property |externaldocument| that +% remembers \meta{external document}. % The standard reference scheme and the scheme of this % package use different name spaces for reference names. % If the external document uses both systems. Then one @@ -1424,13 +1426,13 @@ the height difference of the two baselines is %<*package> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref} - [2010/03/29 v2.9 New reference scheme for LaTeX2e (HO)]% + [2010/04/08 v2.10 New reference scheme for LaTeX2e (HO)]% % \end{macrocode} % % \subsubsection{Load basic module} % % \begin{macrocode} -\RequirePackage{zref-base}[2010/03/29] +\RequirePackage{zref-base}[2010/04/08] % \end{macrocode} % Abort package loading if \xpackage{zref-base} could not be % loaded successfully. @@ -1445,7 +1447,7 @@ the height difference of the two baselines is \def\ZREF@temp#1{% \DeclareOption{#1}{% \AtEndOfPackage{% - \RequirePackage{zref-#1}[2010/03/29]% + \RequirePackage{zref-#1}[2010/04/08]% }% }% } @@ -1505,7 +1507,7 @@ the height difference of the two baselines is %<*base> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-base}% - [2010/03/29 v2.9 Module base for zref (HO)]% + [2010/04/08 v2.10 Module base for zref (HO)]% % \end{macrocode} % % \subsubsection{Utilities} @@ -2285,8 +2287,8 @@ the height difference of the two baselines is %<*user> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-user}% - [2010/03/29 v2.9 Module user for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module user for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % @@ -2360,8 +2362,8 @@ the height difference of the two baselines is %<*abspage> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-abspage}% - [2010/03/29 v2.9 Module abspage for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module abspage for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % @@ -2405,8 +2407,8 @@ the height difference of the two baselines is %<*counter> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-counter}% - [2010/03/29 v2.9 Module counter for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module counter for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % @@ -2442,9 +2444,9 @@ the height difference of the two baselines is %<*lastpage> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-lastpage}% - [2010/03/29 v2.9 Module lastpage for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] -\RequirePackage{zref-abspage}[2010/03/29] + [2010/04/08 v2.10 Module lastpage for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] +\RequirePackage{zref-abspage}[2010/04/08] \RequirePackage{atveryend}[2009/12/07] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} @@ -2511,14 +2513,14 @@ the height difference of the two baselines is %<*thepage> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-thepage}% - [2010/03/29 v2.9 Module thepage for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module thepage for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % % \begin{macrocode} \RequirePackage{atbegshi} -\RequirePackage{zref-abspage}[2010/03/29] +\RequirePackage{zref-abspage}[2010/04/08] % \end{macrocode} % \begin{macrocode} \zref@newlist{thepage} @@ -2571,15 +2573,15 @@ the height difference of the two baselines is %<*nextpage> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-nextpage}% - [2010/03/29 v2.9 Module nextpage for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module nextpage for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % % \begin{macrocode} -\RequirePackage{zref-abspage}[2010/03/29] -\RequirePackage{zref-thepage}[2010/03/29] -\RequirePackage{zref-lastpage}[2010/03/29] +\RequirePackage{zref-abspage}[2010/04/08] +\RequirePackage{zref-thepage}[2010/04/08] +\RequirePackage{zref-lastpage}[2010/04/08] \RequirePackage{uniquecounter}[2009/12/18] % \end{macrocode} % \begin{macrocode} @@ -2672,16 +2674,16 @@ the height difference of the two baselines is %<*totpages> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-totpages}% - [2010/03/29 v2.9 Module totpages for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module totpages for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % % The absolute page number of the last page is the total % page number. % \begin{macrocode} -\RequirePackage{zref-abspage}[2010/03/29] -\RequirePackage{zref-lastpage}[2010/03/29] +\RequirePackage{zref-abspage}[2010/04/08] +\RequirePackage{zref-lastpage}[2010/04/08] % \end{macrocode} % % \begin{macro}{\ztotpages} @@ -2711,8 +2713,8 @@ the height difference of the two baselines is %<*marks> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-marks}% - [2010/03/29 v2.9 Module marks for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module marks for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % @@ -2815,7 +2817,7 @@ the height difference of the two baselines is %<*runs> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-runs}% - [2010/03/29 v2.9 Module runs for zref (HO)]% + [2010/04/08 v2.10 Module runs for zref (HO)]% % \end{macrocode} % % \begin{macro}{\zruns} @@ -2847,8 +2849,8 @@ the height difference of the two baselines is %<*perpage> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-perpage}% - [2010/03/29 v2.9 Module perpage for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module perpage for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % @@ -2860,7 +2862,7 @@ the height difference of the two baselines is % For detecting changed pages module \xmodule{abspage} % is loaded. % \begin{macrocode} -\RequirePackage{zref-abspage}[2010/03/29] +\RequirePackage{zref-abspage}[2010/04/08] % \end{macrocode} % % We group the properties for the needed references @@ -3004,8 +3006,8 @@ the height difference of the two baselines is %<*titleref> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-titleref}% - [2010/03/29 v2.9 Module titleref for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module titleref for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} \RequirePackage{gettitlestring}[2009/12/08] % \end{macrocode} @@ -3322,8 +3324,8 @@ the height difference of the two baselines is %<*xr> \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}{} % \end{macrocode} % \begin{macrocode} @@ -3336,7 +3338,9 @@ the height difference of the two baselines is % \begin{macrocode} \zref@newprop{url}{}% % \end{macrocode} -% +% \begin{macrocode} +\zref@newprop{externaldocument}{}% +% \end{macrocode} % % Most code, especially the handling of the \xfile{.aux} % files are taken from David Carlisle's \xpackage{xr} package. @@ -3395,7 +3399,8 @@ the height difference of the two baselines is \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}% }% @@ -3499,6 +3504,12 @@ the height difference of the two baselines is \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}% }{% @@ -3522,6 +3533,12 @@ the height difference of the two baselines is \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}% @@ -3666,8 +3683,8 @@ the height difference of the two baselines is %<*hyperref> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-hyperref}% - [2010/03/29 v2.9 Module hyperref for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module hyperref for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % @@ -3695,8 +3712,8 @@ the height difference of the two baselines is %<*savepos> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-savepos}% - [2010/03/29 v2.9 Module savepos for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module savepos for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % @@ -3798,15 +3815,15 @@ the height difference of the two baselines is %<*dotfill> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zref-dotfill}% - [2010/03/29 v2.9 Module dotfill for zref (HO)]% -\RequirePackage{zref-base}[2010/03/29] + [2010/04/08 v2.10 Module dotfill for zref (HO)]% +\RequirePackage{zref-base}[2010/04/08] \@ifundefined{ZREF@baseok}{\endinput}{} % \end{macrocode} % % For measuring the width of \cs{zdotfill} we use the features % provided by module \xmodule{savepos}. % \begin{macrocode} -\RequirePackage{zref-savepos}[2010/03/29] +\RequirePackage{zref-savepos}[2010/04/08] % \end{macrocode} % For automatically generated label names we use the unique % counter of module \xmodule{base}. @@ -3895,7 +3912,7 @@ the height difference of the two baselines is \NeedsTeXFormat{LaTeX2e} \nofiles \documentclass{article} -\usepackage{zref-base}[2010/03/29] +\usepackage{zref-base}[2010/04/08] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} @@ -3925,7 +3942,7 @@ the height difference of the two baselines is %<*test-runs> \NeedsTeXFormat{LaTeX2e} \documentclass{article} -\usepackage{zref-runs}[2010/03/29] +\usepackage{zref-runs}[2010/04/08] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} @@ -4297,6 +4314,11 @@ the height difference of the two baselines is % \item % Useless \cs{ZREF@ErrorNoLine} removed. % \end{Version} +% \begin{Version}{2010/04/08 v2.10} +% \item +% Module \xmodule{xr} remembers the external document name +% in property `externaldocument'. +% \end{Version} % \end{History} % % \PrintIndex |