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.dtx114
1 files changed, 77 insertions, 37 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/zref.dtx b/Master/texmf-dist/source/latex/oberdiek/zref.dtx
index 39b20839f2f..e2a04d2c7b8 100644
--- a/Master/texmf-dist/source/latex/oberdiek/zref.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/zref.dtx
@@ -84,7 +84,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: zref 2007/04/22 v1.8 New reference scheme for LaTeX2e (HO)}
+\Msg{* Package: zref 2007/05/06 v2.0 New reference scheme for LaTeX2e (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -166,7 +166,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{zref.drv}%
- [2007/04/22 v1.8 New reference scheme for LaTeX2e (HO)]%
+ [2007/05/06 v2.0 New reference scheme for LaTeX2e (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}
\begin{document}
@@ -175,7 +175,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{1513}
+% \CheckSum{1537}
%
% \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
@@ -196,7 +196,7 @@ and the derived files
% \GetFileInfo{zref.drv}
%
% \title{The \xpackage{zref} package}
-% \date{2007/04/22 v1.8}
+% \date{2007/05/06 v2.0}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -1157,13 +1157,13 @@ the height difference of the two baselines is
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref}
- [2007/04/22 v1.8 New reference scheme for LaTeX2e (HO)]%
+ [2007/05/06 v2.0 New reference scheme for LaTeX2e (HO)]%
% \end{macrocode}
%
% \subsubsection{Load basic module}
%
% \begin{macrocode}
-\RequirePackage{zref-base}[2007/04/22]
+\RequirePackage{zref-base}[2007/05/06]
% \end{macrocode}
% Abort package loading if \xpackage{zref-base} could not be
% loaded successfully.
@@ -1178,7 +1178,7 @@ the height difference of the two baselines is
\def\ZREF@temp#1{%
\DeclareOption{#1}{%
\AtEndOfPackage{%
- \RequirePackage{zref-#1}[2007/04/22]%
+ \RequirePackage{zref-#1}[2007/05/06]%
}%
}%
}
@@ -1238,7 +1238,7 @@ the height difference of the two baselines is
%<*base>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-base}%
- [2007/04/22 v1.8 Module base for zref (HO)]%
+ [2007/05/06 v2.0 Module base for zref (HO)]%
% \end{macrocode}
%
% \subsubsection{Utilities}
@@ -1315,6 +1315,22 @@ the height difference of the two baselines is
\endgroup
% \end{macrocode}
%
+% \begin{macrocode}
+\RequirePackage{etexcmds}
+\ifetex@unexpanded
+\else
+ \ZREF@ErrorNoLine{%
+ Missing e-TeX's \string\unexpanded.\MessageBreak
+ Add \string\RequirePackage\string{etexcmds\string} before %
+ \string\documentclass%
+ }{%
+ Probably you are using some package (e.g. ConTeXt) that %
+ redefines \string\unexpanded%
+ }%
+ \expandafter\endinput
+\fi
+% \end{macrocode}
+%
% \subsubsection{Auxiliary file stuff}
%
% We are using some commands in the \xfile{.aux} files.
@@ -1787,7 +1803,7 @@ the height difference of the two baselines is
% \begin{macro}{\zref@wrapper@unexpanded}
% \begin{macrocode}
\long\def\zref@wrapper@unexpanded#1{%
- \let\ZREF@unexpanded\unexpanded
+ \let\ZREF@unexpanded\etex@unexpanded
#1%
\let\ZREF@unexpanded\@firstofone
}
@@ -1930,8 +1946,8 @@ the height difference of the two baselines is
%<*user>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-user}%
- [2007/04/22 v1.8 Module user for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module user for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -2005,8 +2021,8 @@ the height difference of the two baselines is
%<*abspage>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-abspage}%
- [2007/04/22 v1.8 Module abspage for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module abspage for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -2050,8 +2066,8 @@ the height difference of the two baselines is
%<*counter>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-counter}%
- [2007/04/22 v1.8 Module counter for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module counter for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -2087,8 +2103,8 @@ the height difference of the two baselines is
%<*lastpage>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-lastpage}%
- [2007/04/22 v1.8 Module lastpage for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module lastpage for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -2121,16 +2137,16 @@ the height difference of the two baselines is
%<*totpages>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-totpages}%
- [2007/04/22 v1.8 Module totpages for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module totpages for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
% The absolute page number of the last page is the total
% page number.
% \begin{macrocode}
-\RequirePackage{zref-abspage}[2007/04/22]
-\RequirePackage{zref-lastpage}[2007/04/22]
+\RequirePackage{zref-abspage}[2007/05/06]
+\RequirePackage{zref-lastpage}[2007/05/06]
% \end{macrocode}
%
% \begin{macro}{\ztotpages}
@@ -2160,8 +2176,8 @@ the height difference of the two baselines is
%<*perpage>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-perpage}%
- [2007/04/22 v1.8 Module perpage for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module perpage for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -2173,7 +2189,7 @@ the height difference of the two baselines is
% For detecting changed pages module \xoption{abspage}
% is loaded.
% \begin{macrocode}
-\RequirePackage{zref-abspage}[2007/04/22]
+\RequirePackage{zref-abspage}[2007/05/06]
% \end{macrocode}
%
% We group the properties for the needed references
@@ -2317,8 +2333,8 @@ the height difference of the two baselines is
%<*titleref>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-titleref}%
- [2007/04/22 v1.8 Module titleref for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module titleref for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -2599,7 +2615,21 @@ the height difference of the two baselines is
}%
}%
}{}%
-}%
+% \end{macrocode}
+%
+% Package \xpackage{longtable}: some support for its \cs{caption}.
+% However \cs{label} inside the caption is not supported.
+%
+% \begin{macrocode}
+ \@ifpackageloaded{longtable}{%
+ \ZREF@patch{LT@c@ption}{%
+ \def\LT@c@ption#1[#2]#3{%
+ \ZREF@org@LT@c@ption{#1}[{#2}]{#3}%
+ \zref@titlesec@setcurrent{#2}%
+ }%
+ }%
+ }{}%
+}
% \end{macrocode}
%
% \begin{macrocode}
@@ -2613,8 +2643,8 @@ the height difference of the two baselines is
%<*xr>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-xr}%
- [2007/04/22 v1.8 Module xr for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module xr for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
% \begin{macrocode}
@@ -2765,7 +2795,7 @@ the height difference of the two baselines is
\fi
\ifx\x\ZREF@xr@@input
\edef\ZREF@xr@filelist{%
- \unexpanded\expandafter{\ZREF@xr@filelist}%
+ \etex@unexpanded\expandafter{\ZREF@xr@filelist}%
{\filename@area\the\toks@}%
}%
\fi
@@ -2957,8 +2987,8 @@ the height difference of the two baselines is
%<*hyperref>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-hyperref}%
- [2007/04/22 v1.8 Module hyperref for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module hyperref for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -2986,8 +3016,8 @@ the height difference of the two baselines is
%<*savepos>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-savepos}%
- [2007/04/22 v1.8 Module savepos for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module savepos for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
@@ -3092,15 +3122,15 @@ the height difference of the two baselines is
%<*dotfill>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{zref-dotfill}%
- [2007/04/22 v1.8 Module dotfill for zref (HO)]%
-\RequirePackage{zref-base}[2007/04/22]
+ [2007/05/06 v2.0 Module dotfill for zref (HO)]%
+\RequirePackage{zref-base}[2007/05/06]
\@ifundefined{ZREF@baseok}{\endinput}{}
% \end{macrocode}
%
% For measuring the width of \cs{zdotfill} we use the features
% provided by module \xoption{savepos}.
% \begin{macrocode}
-\RequirePackage{zref-savepos}[2007/04/22]
+\RequirePackage{zref-savepos}[2007/05/06]
% \end{macrocode}
% For automatically generated label names we use the unique
% counter of module \xoption{base}.
@@ -3395,6 +3425,16 @@ the height difference of the two baselines is
% if babel is not used or \cs{if@safe@actives} is already set to true.
% (Feature request of Josselin Noirel)
% \end{Version}
+% \begin{Version}{2007/05/02 v1.9}
+% \item
+% Module titleref: Some support for \cs{caption} of package
+% \xpackage{longtable}, but only if \cs{label} is given after
+% \cs{caption}.
+% \end{Version}
+% \begin{Version}{2007/05/06 v2.0}
+% \item
+% Uses package \xpackage{etexcmds} for accessing \eTeX's \cs{unexpanded}.
+% \end{Version}
% \end{History}
%
% \PrintIndex