summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/zref.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/zref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/zref.dtx311
1 files changed, 204 insertions, 107 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/zref.dtx b/Master/texmf-dist/source/latex/oberdiek/zref.dtx
index e195a6fb449..3e379094994 100644
--- a/Master/texmf-dist/source/latex/oberdiek/zref.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/zref.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2006-2008 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
+% Copyright (C) 2006-2009 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -19,9 +19,10 @@
% zref.sty, zref.pdf, zref.ins, zref.drv, zref-base.sty,
% zref-abspage.sty, zref-counter.sty, zref-dotfill.sty,
% zref-hyperref.sty, zref-lastpage.sty, zref-perpage.sty,
-% zref-savepos.sty, zref-titleref.sty, zref-totpages.sty,
-% zref-user.sty, zref-xr.sty, zref-example.tex,
-% zref-example-lastpage.tex, zref-test1.tex.
+% zref-runs.sty, zref-savepos.sty, zref-titleref.sty,
+% zref-totpages.sty, zref-user.sty, zref-xr.sty,
+% zref-example.tex, zref-example-lastpage.tex, zref-test1.tex,
+% zref-test-runs.tex.
%
% Distribution:
% CTAN:macros/latex/contrib/oberdiek/zref.dtx
@@ -62,6 +63,7 @@
% TDS:tex/latex/oberdiek/zref-hyperref.sty
% TDS:tex/latex/oberdiek/zref-lastpage.sty
% TDS:tex/latex/oberdiek/zref-perpage.sty
+% TDS:tex/latex/oberdiek/zref-runs.sty
% TDS:tex/latex/oberdiek/zref-savepos.sty
% TDS:tex/latex/oberdiek/zref-titleref.sty
% TDS:tex/latex/oberdiek/zref-totpages.sty
@@ -71,6 +73,7 @@
% TDS:doc/latex/oberdiek/zref-example.tex
% TDS:doc/latex/oberdiek/zref-example-lastpage.tex
% TDS:doc/latex/oberdiek/test/zref-test1.tex
+% TDS:doc/latex/oberdiek/test/zref-test-runs.tex
% TDS:source/latex/oberdiek/zref.dtx
%
%<*ignore>
@@ -86,7 +89,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: zref 2008/10/01 v2.3 New reference scheme for LaTeX2e (HO)}
+\Msg{* Package: zref 2009/08/07 v2.4 New reference scheme for LaTeX2e (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -97,7 +100,7 @@
This is a generated file.
-Copyright (C) 2006-2008 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
+Copyright (C) 2006-2009 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
@@ -116,9 +119,10 @@ and the derived files
zref.sty, zref.pdf, zref.ins, zref.drv, zref-base.sty,
zref-abspage.sty, zref-counter.sty, zref-dotfill.sty,
zref-hyperref.sty, zref-lastpage.sty, zref-perpage.sty,
- zref-savepos.sty, zref-titleref.sty, zref-totpages.sty,
- zref-user.sty, zref-xr.sty, zref-example.tex,
- zref-example-lastpage.tex, zref-test1.tex.
+ zref-runs.sty, zref-savepos.sty, zref-titleref.sty,
+ zref-totpages.sty, zref-user.sty, zref-xr.sty,
+ zref-example.tex, zref-example-lastpage.tex, zref-test1.tex,
+ zref-test-runs.tex.
\endpreamble
\let\MetaPrefix\DoubleperCent
@@ -135,6 +139,7 @@ and the derived files
\file{zref-hyperref.sty}{\from{zref.dtx}{hyperref}}%
\file{zref-lastpage.sty}{\from{zref.dtx}{lastpage}}%
\file{zref-perpage.sty}{\from{zref.dtx}{perpage}}%
+ \file{zref-runs.sty}{\from{zref.dtx}{runs}}%
\file{zref-savepos.sty}{\from{zref.dtx}{savepos}}%
\file{zref-titleref.sty}{\from{zref.dtx}{titleref}}%
\file{zref-totpages.sty}{\from{zref.dtx}{totpages}}%
@@ -145,6 +150,7 @@ and the derived files
\file{zref-example-lastpage.tex}{\from{zref.dtx}{example-lastpage}}%
\usedir{doc/latex/oberdiek/test}%
\file{zref-test1.tex}{\from{zref.dtx}{test1}}%
+ \file{zref-test-runs.tex}{\from{zref.dtx}{test-runs}}%
}
\obeyspaces
@@ -155,8 +161,9 @@ and the derived files
\Msg{*}
\Msg{* zref.sty, zref-base.sty, zref-abspage.sty, zref-counter.sty,}
\Msg{* zref-dotfill.sty, zref-hyperref.sty, zref-lastpage.sty,}
-\Msg{* zref-perpage.sty, zref-savepos.sty, zref-titleref.sty,}
-\Msg{* zref-totpages.sty, zref-user.sty, zref-xr.sty}
+\Msg{* zref-perpage.sty, zref-runs.sty, zref-savepos.sty,}
+\Msg{* zref-titleref.sty, zref-totpages.sty, zref-user.sty,}
+\Msg{* zref-xr.sty}
\Msg{*}
\Msg{* And install the following script file:}
\Msg{*}
@@ -177,7 +184,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{zref.drv}%
- [2008/10/01 v2.3 New reference scheme for LaTeX2e (HO)]%
+ [2009/08/07 v2.4 New reference scheme for LaTeX2e (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}[2008/08/11]
\begin{document}
@@ -186,7 +193,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{1646}
+% \CheckSum{1697}
%
% \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
@@ -207,7 +214,7 @@ and the derived files
% \GetFileInfo{zref.drv}
%
% \title{The \xpackage{zref} package}
-% \date{2008/10/01 v2.3}
+% \date{2009/08/07 v2.4}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -577,7 +584,7 @@ and the derived files
% \def\VV{\vphantom{\large \"Ag}}
% \def\EMPTY{{\itshape\textless empty\textgreater}}
% \begin{tabular}{@{}>{\sffamily}l|>{\ttfamily}l|>{\ttfamily}l|>{\ttfamily}l@{}}
-% \rmfamily Modul&
+% \rmfamily Module&
% \rmfamily Property&
% \rmfamily Property list&
% \rmfamily Default\\
@@ -622,7 +629,7 @@ and the derived files
% to the \xfile{.aux} file, for example after the last page.
% If the \cs{zlabel} or \cs{label} command is put inside this wrapper,
% immediate writing is enabled. See the implementation for
-% option \xoption{lastpage} for an example of its use.
+% module \xmodule{lastpage} for an example of its use.
%
% \begin{declcs}{zref@wrapper@unexpanded}
% |{|\dots|}|
@@ -647,7 +654,7 @@ and the derived files
%
% \subsection{Counter for unique names}
%
-% Some modules (\xoption{titleref} and \xoption{dotfillmin})
+% Some modules (\xmodule{titleref} and \xmodule{dotfillmin})
% need unique names for automatically generated label names.
%
% \begin{declcs}{zref@require@unique}
@@ -661,10 +668,10 @@ and the derived files
%
% \section{User interface}\label{sec:user}
%
-% \subsection{Module \xoption{user}}
+% \subsection{Module \xmodule{user}}
%
% The user interface for this package and its modules
-% is enabled by \xpackage{zref}'s package option \xoption{user}
+% is enabled by \xpackage{zref}'s package option \xmodule{user}
% or package \xpackage{zref-user}.
% The names of user commands are prefixed by |z| in order
% to avoid name clashes with existing macros of the same
@@ -724,7 +731,7 @@ and the derived files
% is marked as used, undefined ones will generate
% warnings.
%
-% \subsection{Module \xoption{abspage}}
+% \subsection{Module \xmodule{abspage}}
%
% With the help of package \xpackage{atbegshi}
% a new counter |abspage| with absolute page numbers is provided.
@@ -735,9 +742,9 @@ and the derived files
% |Section \zref{foo} is on page \zpageref{foo}.|\\
% |This is page \zref[abspage]{foo} of \zref[abspage]{LastPage}.|
% \end{quote}
-% The example also makes use of option \xoption{lastpage}.
+% The example also makes use of module \xmodule{lastpage}.
%
-% \subsection{Module \xoption{lastpage}}
+% \subsection{Module \xmodule{lastpage}}
%
% Provides the functionality of package \xpackage{lastpage}
% \cite{lastpage} in the new reference scheme.
@@ -794,20 +801,38 @@ and the derived files
%</example-lastpage>
% \end{macrocode}
%
-% \subsection{Module \xoption{totpages}}
+% \subsection{Module \xmodule{totpages}}
%
% For the total number of pages of a document you need to
% know the absolute page number of the last page.
-% Both options \xoption{abspage} and \xoption{lastpage}
+% Both modules \xmodule{abspage} and \xmodule{lastpage}
% are necessary and automatically enabled.
%
% \begin{declcs}{ztotpages}\markexp
% \end{declcs}
% Prints the total number of pages or |0| if this
-% number is not yet known. This command can also used
-% in calculations or counter assignments.
+% number is not yet known. It expands to an explicit number
+% and can also used even in expandable calculations (\cs{numexpr})
+% or counter assignments.
%
-% \subsection{Module \xoption{perpage}}
+% \subsection{Module \xmodule{runs}}
+%
+% Module \xmodule{runs} counts the \LaTeX\ runs since last
+% \xext{aux} file creation and prints the number in the
+% \xext{log} file.
+%
+% \begin{declcs}{zruns}\markexp
+% \end{declcs}
+% Prints the the total number of \LaTeX\ runs including
+% the current one. It expands to an explicit number.
+% Before |begin{document}| the value is zero meaning
+% the \xext{aux} file is not read yet. If a previous
+% \xext{aux} file exists, the value found there increased
+% by one is the new number. Otherwise \cs{zruns} is set to one.
+% \LaTeX~runs where the \xext{aux} files are not rewritten
+% are not counted (see \cs{nofiles}).
+%
+% \subsection{Module \xmodule{perpage}}
%
% With \cs{@addtoreset} or \cs{numberwithin} a counter can be
% reset if another counter is incremented. This do not work
@@ -859,7 +884,7 @@ and the derived files
% The reset mechanism for this counter is deactivated.
%
%
-% \subsection{Module \xoption{counter}}
+% \subsection{Module \xmodule{counter}}
%
% This option just add the property |counter| to the main
% property list. The property stores the counter name,
@@ -869,7 +894,7 @@ and the derived files
% for a reimplementation of the autoref feature,
% see the section \ref{sec:todo} with the todo list.
%
-% \subsection{Module \xoption{titleref}}
+% \subsection{Module \xmodule{titleref}}
%
% This option makes section and caption titles available
% to the reference system similar to packages \xpackage{titleref}
@@ -884,8 +909,8 @@ and the derived files
% \begin{declcs}{ztitlerefsetup}
% |{|\textit{key$_1$=value$_1$, key$_2$=value$_2$, \dots}|}|
% \end{declcs}
-% This command allows to configure the behaviour of modul
-% \xoption{titleref}. The following keys are available:
+% This command allows to configure the behaviour of module
+% \xmodule{titleref}. The following keys are available:
% \begin{description}
% \let\bfseries\relax
% \item[\texttt{title=}\meta{value}]\mbox{}\\*
@@ -903,7 +928,7 @@ and the derived files
% See implementation section for more details.
% \end{description}
%
-% \subsection{Module \xoption{savepos}}
+% \subsection{Module \xmodule{savepos}}
%
% This option supports a feature that \pdfTeX\ provides
% (and Xe\TeX).
@@ -944,7 +969,7 @@ and the derived files
% and \cs{pdflastypos}. They are available in PDF mode and
% since version 1.40.0 also in DVI mode.
%
-% \subsection{Module \xoption{dotfill}}
+% \subsection{Module \xmodule{dotfill}}
%
% \begin{declcs}{zdotfill}
% \end{declcs}
@@ -970,7 +995,7 @@ and the derived files
% the dot in \cs{dotfill}).
% \end{description}
%
-% \subsection{Module \xoption{xr}}
+% \subsection{Module \xmodule{xr}}
%
% This package provides the functionality of package \xpackage{xr},
% see \cite{xr}. It also supports the syntax of \xpackage{xr-hyper}.
@@ -1017,7 +1042,6 @@ and the derived files
% this macro as extension. \cs{XR@ext} is used if
% \xpackage{hyperref} is loaded, otherwise |pdf|.
%
-%
% \section{ToDo}\label{sec:todo}
%
% Among other things the following issues are left for future work:
@@ -1220,13 +1244,13 @@ the height difference of the two baselines is
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref}
- [2008/10/01 v2.3 New reference scheme for LaTeX2e (HO)]%
+ [2009/08/07 v2.4 New reference scheme for LaTeX2e (HO)]%
% \end{macrocode}
%
% \subsubsection{Load basic module}
%
% \begin{macrocode}
-\RequirePackage{zref-base}[2008/10/01]
+\RequirePackage{zref-base}[2009/08/07]
% \end{macrocode}
% Abort package loading if \xpackage{zref-base} could not be
% loaded successfully.
@@ -1241,7 +1265,7 @@ the height difference of the two baselines is
\def\ZREF@temp#1{%
\DeclareOption{#1}{%
\AtEndOfPackage{%
- \RequirePackage{zref-#1}[2008/10/01]%
+ \RequirePackage{zref-#1}[2009/08/07]%
}%
}%
}
@@ -1263,7 +1287,7 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module base}
+% \subsection{Module \xmodule{base}}
%
% \subsubsection{Prefixes}
%
@@ -1287,12 +1311,12 @@ the height difference of the two baselines is
% Data for reference \meta{labelname}.
% \item[\cs{ZREF@org@}:] Original versions of patched commands.
% \item[\cs{z}:] For macros in user land, defined if
-% option \xoption{user} is set.
+% module \xmodule{user} is set.
% \end{description}
% The following family names are used for keys defined
% according to the \xpackage{keyval} package:
% \begin{description}
-% \item[\texttt{ZREF@TR}:] Setup for \xoption{titleref}.
+% \item[\texttt{ZREF@TR}:] Setup for module \xmodule{titleref}.
% \end{description}
%
% \subsubsection{Identification}
@@ -1301,7 +1325,7 @@ the height difference of the two baselines is
%<*base>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-base}%
- [2008/10/01 v2.3 Module base for zref (HO)]%
+ [2009/08/07 v2.4 Module base for zref (HO)]%
% \end{macrocode}
%
% \subsubsection{Utilities}
@@ -2054,18 +2078,18 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module \xoption{user}}
+% \subsection{Module \xmodule{user}}
%
% \begin{macrocode}
%<*user>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-user}%
- [2008/10/01 v2.3 Module user for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module user for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
-% Option \xoption{zuser} enables a small user interface.
+% Module \xmodule{user} enables a small user interface.
% All macros are prefixed by \cs{z}.
%
% First we define the pendants to the standard \LaTeX\ referencing
@@ -2129,18 +2153,18 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module \xoption{abspage}}
+% \subsection{Module \xmodule{abspage}}
%
% \begin{macrocode}
%<*abspage>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-abspage}%
- [2008/10/01 v2.3 Module abspage for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module abspage for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
-% Module \xoption{abspage} adds a new property \verb|abspage|
+% Module \xmodule{abspage} adds a new property \verb|abspage|
% to the \verb|main| property list for absolute page numbers.
% These are recorded by the help of package \xpackage{atbegshi}.
% \begin{macrocode}
@@ -2174,14 +2198,14 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module \xoption{counter}}
+% \subsection{Module \xmodule{counter}}
%
% \begin{macrocode}
%<*counter>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-counter}%
- [2008/10/01 v2.3 Module counter for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module counter for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -2211,21 +2235,21 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module \xoption{lastpage}}
+% \subsection{Module \xmodule{lastpage}}
%
% \begin{macrocode}
%<*lastpage>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-lastpage}%
- [2008/10/01 v2.3 Module lastpage for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module lastpage for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
-% The Module \xoption{lastpage} implements the service
+% The module \xmodule{lastpage} implements the service
% of package \xpackage{lastpage} by setting a reference
% \verb|LastPage| at the end of the document.
-% If option \xoption{abspage} is given, also the absolute
+% If module \xmodule{abspage} is given, also the absolute
% page number is available, because the properties of
% the main property list are used.
% \begin{macrocode}
@@ -2252,22 +2276,23 @@ the height difference of the two baselines is
%</lastpage>
% \end{macrocode}
%
-% \subsection{Module \xoption{totpages}}
+%
+% \subsection{Module \xmodule{totpages}}
%
% \begin{macrocode}
%<*totpages>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-totpages}%
- [2008/10/01 v2.3 Module totpages for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module totpages for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
% The absolute page number of the last page is the total
% page number.
% \begin{macrocode}
-\RequirePackage{zref-abspage}[2008/10/01]
-\RequirePackage{zref-lastpage}[2008/10/01]
+\RequirePackage{zref-abspage}[2009/08/07]
+\RequirePackage{zref-lastpage}[2009/08/07]
% \end{macrocode}
%
% \begin{macro}{\ztotpages}
@@ -2291,14 +2316,49 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module \xoption{perpage}}
+% \subsection{Module \xmodule{runs}}
+%
+% This module does not use the label-reference-system.
+% The reference changes with each \LaTeX~run and would
+% force a rerun warning always.
+% \begin{macrocode}
+%<*runs>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{zref-runs}%
+ [2009/08/07 v2.4 Module runs for zref (HO)]%
+% \end{macrocode}
+%
+% \begin{macro}{\zruns}
+% \begin{macrocode}
+\providecommand*{\zruns}{0}%
+\AtBeginDocument{%
+ \edef\zruns{\number\numexpr\zruns+1}%
+ \begingroup
+ \def\on@line{}%
+ \PackageInfo{zref-runs}{LaTeX runs: \zruns}%
+ \if@filesw
+ \immediate\write\@mainaux{%
+ \string\gdef\string\zruns{\zruns}%
+ }%
+ \fi
+ \endgroup
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macrocode}
+%</runs>
+% \end{macrocode}
+%
+%
+% \subsection{Module \xmodule{perpage}}
%
% \begin{macrocode}
%<*perpage>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-perpage}%
- [2008/10/01 v2.3 Module perpage for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module perpage for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -2307,10 +2367,10 @@ the height difference of the two baselines is
% page counter properties cannot be asked directly,
% references are necessary.
%
-% For detecting changed pages module \xoption{abspage}
+% For detecting changed pages module \xmodule{abspage}
% is loaded.
% \begin{macrocode}
-\RequirePackage{zref-abspage}[2008/10/01]
+\RequirePackage{zref-abspage}[2009/08/07]
% \end{macrocode}
%
% We group the properties for the needed references
@@ -2448,14 +2508,14 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module \xoption{titleref}}
+% \subsection{Module \xmodule{titleref}}
%
% \begin{macrocode}
%<*titleref>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-titleref}%
- [2008/10/01 v2.3 Module titleref for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module titleref for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -2599,7 +2659,7 @@ the height difference of the two baselines is
% \subsubsection{User interface}
%
% \begin{macro}{\ztitlerefsetup}
-% The behaviour of option \xoption{titleref} is controlled
+% The behaviour of module \xmodule{titleref} is controlled
% by switches and a hook. They can be set by \cs{ztitlerefsetup}
% with a key value interface, provided by package \xpackage{keyval}.
% Also the current title can be given explicitly by the key
@@ -2775,14 +2835,14 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module \xoption{xr}}
+% \subsection{Module \xmodule{xr}}
%
% \begin{macrocode}
%<*xr>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-xr}%
- [2008/10/01 v2.3 Module xr for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module xr for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
% \begin{macrocode}
@@ -2872,12 +2932,12 @@ the height difference of the two baselines is
\def\ZREF@xr@checkfile{%
\openin\@inputcheck\ZREF@xr@file\relax
\ifeof\@inputcheck
- \PackageWarning{zref/xr}{%
+ \PackageWarning{zref-xr}{%
File `\ZREF@xr@file' not found or empty,\MessageBreak
labels not imported%
}%
\else
- \PackageInfo{zref/xr}{%
+ \PackageInfo{zref-xr}{%
Label \ifZREF@xr@zreflabel (zref) \fi import from `\ZREF@xr@file'%
}%
\def\ZREF@xr@found{0}%
@@ -2886,7 +2946,7 @@ the height difference of the two baselines is
\closein\@inputcheck
\begingroup
\let\on@line\@empty
- \PackageInfo{zref/xr}{%
+ \PackageInfo{zref-xr}{%
Statistics for `\ZREF@xr@file': %
\ZREF@xr@found\space found, %
\ZREF@xr@ignored\space ignored%
@@ -2949,7 +3009,7 @@ the height difference of the two baselines is
\@ifundefined{\ZREF@xr@refname}{%
\let\ZREF@xr@list\x
\ifx\ZREF@xr@list\@empty
- \PackageWarningNoLine{zref/xr}{%
+ \PackageWarningNoLine{zref-xr}{%
Label `#1' without properties ignored\MessageBreak
in file `\ZREF@xr@file'%
}%
@@ -2995,7 +3055,7 @@ the height difference of the two baselines is
% \begin{macro}{\ZREF@xr@ignorewarning}
% \begin{macrocode}
\def\ZREF@xr@ignorewarning#1{%
- \PackageWarningNoLine{zref/xr}{%
+ \PackageWarningNoLine{zref-xr}{%
Label `#1' is already in use\MessageBreak
in file `\ZREF@xr@file'%
}%
@@ -3117,7 +3177,7 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module \xoption{hyperref}}
+% \subsection{Module \xmodule{hyperref}}
%
% UNFINISHED :-(
%
@@ -3125,8 +3185,8 @@ the height difference of the two baselines is
%<*hyperref>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-hyperref}%
- [2008/10/01 v2.3 Module hyperref for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module hyperref for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -3142,9 +3202,9 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module \xoption{savepos}}
+% \subsection{Module \xmodule{savepos}}
%
-% Option \xoption{savepos} provides an interface for
+% Module \xmodule{savepos} provides an interface for
% \pdfTeX's \cmd{\pdfsavepos}, see the manual for
% \pdfTeX.
%
@@ -3154,8 +3214,8 @@ the height difference of the two baselines is
%<*savepos>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-savepos}%
- [2008/10/01 v2.3 Module savepos for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module savepos for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -3254,24 +3314,24 @@ the height difference of the two baselines is
% \end{macrocode}
%
%
-% \subsection{Module \xoption{dotfill}}
+% \subsection{Module \xmodule{dotfill}}
%
% \begin{macrocode}
%<*dotfill>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-dotfill}%
- [2008/10/01 v2.3 Module dotfill for zref (HO)]%
-\RequirePackage{zref-base}[2008/10/01]
+ [2009/08/07 v2.4 Module dotfill for zref (HO)]%
+\RequirePackage{zref-base}[2009/08/07]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
% For measuring the width of \cs{zdotfill} we use the features
-% provided by module \xoption{savepos}.
+% provided by module \xmodule{savepos}.
% \begin{macrocode}
-\RequirePackage{zref-savepos}[2008/10/01]
+\RequirePackage{zref-savepos}[2009/08/07]
% \end{macrocode}
% For automatically generated label names we use the unique
-% counter of module \xoption{base}.
+% counter of module \xmodule{base}.
% \begin{macrocode}
\zref@require@unique
% \end{macrocode}
@@ -3357,7 +3417,7 @@ the height difference of the two baselines is
\NeedsTeXFormat{LaTeX2e}
\nofiles
\documentclass{article}
-\usepackage{zref-base}[2008/10/01]
+\usepackage{zref-base}[2009/08/07]
\usepackage{qstest}
\IncludeTests{*}
\LogTests{log}{*}{*}
@@ -3381,6 +3441,35 @@ the height difference of the two baselines is
%</test1>
% \end{macrocode}
%
+% \subsection{Module \xmodule{runs}}
+%
+% \begin{macrocode}
+%<*test-runs>
+\NeedsTeXFormat{LaTeX2e}
+\documentclass{article}
+\usepackage{zref-runs}[2009/08/07]
+\usepackage{qstest}
+\IncludeTests{*}
+\LogTests{log}{*}{*}
+
+\begin{qstest}{zruns-preamble}{zruns-preamble}
+ \Expect{0}*{\zruns}%
+\end{qstest}
+
+\AtBeginDocument{%
+ \begin{qstest}{zruns-atbegindocument}{zruns-atbegindocument}%
+ \Expect*{\number\ExpectRuns}*{\zruns}%
+ \end{qstest}%
+}
+
+\begin{document}
+\begin{qstest}{zruns-document}{zruns-document}
+ \Expect*{\number\ExpectRuns}*{\zruns}%
+\end{qstest}
+\end{document}
+%</test-runs>
+% \end{macrocode}
+%
% \section{Installation}
%
% \subsection{Download}
@@ -3448,6 +3537,7 @@ the height difference of the two baselines is
% zref-hyperref.sty & tex/latex/oberdiek/zref-hyperref.sty\\
% zref-lastpage.sty & tex/latex/oberdiek/zref-lastpage.sty\\
% zref-perpage.sty & tex/latex/oberdiek/zref-perpage.sty\\
+% zref-runs.sty & tex/latex/oberdiek/zref-runs.sty\\
% zref-savepos.sty & tex/latex/oberdiek/zref-savepos.sty\\
% zref-titleref.sty & tex/latex/oberdiek/zref-titleref.sty\\
% zref-totpages.sty & tex/latex/oberdiek/zref-totpages.sty\\
@@ -3457,6 +3547,7 @@ the height difference of the two baselines is
% zref-example.tex & doc/latex/oberdiek/zref-example.tex\\
% zref-example-lastpage.tex & doc/latex/oberdiek/zref-example-lastpage.tex\\
% test/zref-test1.tex & doc/latex/oberdiek/test/zref-test1.tex\\
+% test/zref-test-runs.tex & doc/latex/oberdiek/test/zref-test-runs.tex\\
% zref.dtx & source/latex/oberdiek/zref.dtx\\
% \end{tabular}^^A
% }^^A
@@ -3611,16 +3702,17 @@ the height difference of the two baselines is
% \end{Version}
% \begin{Version}{2006/05/03 v1.1}
% \item
-% Module perpage added.
+% Module \xmodule{perpage} added.
% \item
% Module redesign as packages.
% \end{Version}
% \begin{Version}{2006/05/25 v1.2}
% \item
-% Module dotfillmin added.
+% Module \xmodule{dotfillmin} added.
% \item
-% Module base: macros \cs{zref@require@uniqe} and \cs{thezref@unique}
-% added (used by modules titleref and dotfillmin).
+% Module \xmodule{base}: macros \cs{zref@require@uniqe}
+% and \cs{thezref@unique} added
+% (used by modules \xmodule{titleref} and \xmodule{dotfillmin}).
% \end{Version}
% \begin{Version}{2006/09/08 v1.3}
% \item
@@ -3634,14 +3726,15 @@ the height difference of the two baselines is
% \item
% \cs{zref@getcurrent} added (suggestion of Igor Akkerman).
% \item
-% Modul savepos also supports Xe\TeX.
+% Module \xmodule{savepos} also supports Xe\TeX.
% \end{Version}
% \begin{Version}{2007/04/06 v1.6}
% \item
-% Fix in modul abspage and base: Now counter |abspage| and |zref@unique|
+% Fix in modules \xmodule{abspage} and \xmodule{base}:
+% Now counter |abspage| and |zref@unique|
% are not remembered by \cs{include}.
% \item
-% Beamer support for module titleref.
+% Beamer support for module \xmodule{titleref}.
% \end{Version}
% \begin{Version}{2007/04/17 v1.7}
% \item
@@ -3655,7 +3748,7 @@ the height difference of the two baselines is
% \end{Version}
% \begin{Version}{2007/05/02 v1.9}
% \item
-% Module titleref: Some support for \cs{caption} of package
+% Module \xmodule{titleref}: Some support for \cs{caption} of package
% \xpackage{longtable}, but only if \cs{label} is given after
% \cs{caption}.
% \end{Version}
@@ -3665,14 +3758,14 @@ the height difference of the two baselines is
% \end{Version}
% \begin{Version}{2007/05/28 v2.1}
% \item
-% Module titleref supports caption of package \xpackage{listings}.
+% Module \xmodule{titleref} supports caption of package \xpackage{listings}.
% \item
-% Fixes in module titleref for support of packages \xpackage{titlesec}
-% and \xpackage{longtable}.
+% Fixes in module \xmodule{titleref} for support
+% of packages \xpackage{titlesec} and \xpackage{longtable}.
% \end{Version}
% \begin{Version}{2008/09/21 v2.2}
% \item
-% Module base: \cs{zref@iflistcontainsprop} is documented, but
+% Module \xmodule{base}: \cs{zref@iflistcontainsprop} is documented, but
% a broken \cs{zref@listcontainsprop} implemented. Name and
% implementation fixed (thanks Ohad Kammar).
% \end{Version}
@@ -3680,10 +3773,14 @@ the height difference of the two baselines is
% \item
% \cs{zref@localaddprop} added (feature request of Ohad Kammar).
% \item
-% Module lastpage: list `LastPage' added. Label `LastPage' will use
+% Module \xmodule{lastpage}: list `LastPage' added. Label `LastPage' will use
% the properties of this list (default is empty) along with the
% properties of the main list.
% \end{Version}
+% \begin{Version}{2009/08/07 v2.4}
+% \item
+% Module \xmodule{runs} added.
+% \end{Version}
% \end{History}
%
% \PrintIndex