summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/README2
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdfbin113461 -> 113735 bytes
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex14
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/lastpage.pdfbin417108 -> 427165 bytes
-rw-r--r--Master/texmf-dist/source/latex/lastpage/lastpage.drv8
-rw-r--r--Master/texmf-dist/source/latex/lastpage/lastpage.dtx234
-rw-r--r--Master/texmf-dist/source/latex/lastpage/lastpage.ins6
-rw-r--r--Master/texmf-dist/tex/latex/lastpage/lastpage.sty78
-rw-r--r--Master/texmf-dist/tex/latex/lastpage/lastpage209.sty2
9 files changed, 271 insertions, 73 deletions
diff --git a/Master/texmf-dist/doc/latex/lastpage/README b/Master/texmf-dist/doc/latex/lastpage/README
index 586a420d2c8..3ab6b32f1ff 100644
--- a/Master/texmf-dist/doc/latex/lastpage/README
+++ b/Master/texmf-dist/doc/latex/lastpage/README
@@ -1,4 +1,4 @@
-README for lastpage package, 2011/08/08, v1.2i
+README for lastpage package, 2011/09/01, v1.2k
TABLE OF CONTENTS
diff --git a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdf b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdf
index db2e7451dd0..82870913e8b 100644
--- a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdf
+++ b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex
index 2f964251824..564075bb36f 100644
--- a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex
+++ b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2011/08/08 v1.2i
+%% Version: 2011/09/01 v1.2k
%%
%% Copyright (C) 2010, 2011 by
%% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>
@@ -50,12 +50,12 @@
%% lastpage.sty, lastpage.pdf, lastpage.ins, lastpage.drv,
%% lastpage-example.tex.
%%
-\documentclass[british]{article}
+\documentclass[british]{article}[2007/10/19]% v1.4h
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\AtEndDocument{\message{^^JLaTeX Info: Executing hook `AtEndDocument'.}}
\usepackage[draft]{showkeys}[2007/08/07]% v3.15
%% Use final instead of draft to hide the keys. %%
-\usepackage{hyperref}[2011/04/17]% v6.82g
+\usepackage{hyperref}[2011/08/19]% v6.82h
\hypersetup{%
extension=pdf,%
plainpages=false,%
@@ -70,11 +70,11 @@
pdfstartview=Fit,%
pdfpagelayout=SinglePage%
}
-\usepackage{lastpage}[2011/08/08]% v1.2i
+\usepackage{lastpage}[2011/09/01]% v1.2k
\makeatletter
\renewcommand{\@evenfoot}{%
- \normalsize\slshape \today\hfil \upshape page \thepage%
- \ of \pageref{LastPage}}
+ \normalsize\slshape \today\hfil \upshape %
+ page \thepage\ of \pageref{LastPage}}
\renewcommand{\@oddfoot}{\@evenfoot}
\makeatother
\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}%
@@ -86,7 +86,7 @@
\markboth{Example for lastpage}{Example for lastpage}
This example demonstrates the use of package\newline
-\textsf{lastpage}, v1.2i as of 2011/08/08 (HMM; JPG).\newline
+\textsf{lastpage}, v1.2k as of 2011/09/01 (HMM; JPG).\newline
The package takes no options.\newline
For more details please see the documentation!\newline
diff --git a/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf b/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
index 60d8bf09beb..f585dc12953 100644
--- a/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
+++ b/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/lastpage/lastpage.drv b/Master/texmf-dist/source/latex/lastpage/lastpage.drv
index b7872a58132..f0ad701e795 100644
--- a/Master/texmf-dist/source/latex/lastpage/lastpage.drv
+++ b/Master/texmf-dist/source/latex/lastpage/lastpage.drv
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2011/08/08 v1.2i
+%% Version: 2011/09/01 v1.2k
%%
%% Copyright (C) 2010, 2011 by
%% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>
@@ -50,8 +50,8 @@
%% lastpage.sty, lastpage.pdf, lastpage.ins, lastpage.drv,
%% lastpage-example.tex.
%%
-\NeedsTeXFormat{LaTeX2e}[2009/09/24]
-\ProvidesFile{lastpage.drv}[2011/08/08 v1.2i
+\NeedsTeXFormat{LaTeX2e}[2011/06/27]
+\ProvidesFile{lastpage.drv}[2011/09/01 v1.2k
Refers to last page's name (HMM)]
\documentclass{ltxdoc}[2007/11/11]% v2.0u
\usepackage{holtxdoc}[2011/02/04]% v0.21
@@ -62,7 +62,7 @@
%% recent version).
\hypersetup{%
pdfsubject={Refers to last page's name (HMM; JPG)},%
- pdfkeywords={LaTeX, lastpage, last page, page number, page name, Hans-Martin Muench, Jeffrey P. Goldberg},%
+ pdfkeywords={LaTeX, lastpage, last page, page number, page name, H.-Martin Muench, Jeffrey P. Goldberg},%
pdfencoding=auto,%
pdflang={en},%
breaklinks=true,%
diff --git a/Master/texmf-dist/source/latex/lastpage/lastpage.dtx b/Master/texmf-dist/source/latex/lastpage/lastpage.dtx
index 139cbed6e70..63148724c70 100644
--- a/Master/texmf-dist/source/latex/lastpage/lastpage.dtx
+++ b/Master/texmf-dist/source/latex/lastpage/lastpage.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%
% File: lastpage.dtx
-% Version: 2011/08/08 v1.2i
+% Version: 2011/09/01 v1.2k
%
% Copyright (C) 2010, 2011 by
% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>
@@ -91,7 +91,7 @@
\input docstrip.tex
\Msg{*********************************************************************}
\Msg{* Installation}
-\Msg{* Package: lastpage 2011/08/08 v1.2i Refers to last page's name (HMM)}
+\Msg{* Package: lastpage 2011/09/01 v1.2k Refers to last page's name (HMM)}
\Msg{*********************************************************************}
\keepsilent
@@ -103,7 +103,7 @@
This is a generated file.
Project: lastpage
-Version: 2011/08/08 v1.2i
+Version: 2011/09/01 v1.2k
Copyright (C) 2010, 2011 by
H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>
@@ -198,8 +198,8 @@ and the derived files
%
% \begin{macrocode}
%<*driver>
-\NeedsTeXFormat{LaTeX2e}[2009/09/24]
-\ProvidesFile{lastpage.drv}[2011/08/08 v1.2i
+\NeedsTeXFormat{LaTeX2e}[2011/06/27]
+\ProvidesFile{lastpage.drv}[2011/09/01 v1.2k
Refers to last page's name (HMM)]
\documentclass{ltxdoc}[2007/11/11]% v2.0u
\usepackage{holtxdoc}[2011/02/04]% v0.21
@@ -210,7 +210,7 @@ and the derived files
%% recent version).
\hypersetup{%
pdfsubject={Refers to last page's name (HMM; JPG)},%
- pdfkeywords={LaTeX, lastpage, last page, page number, page name, Hans-Martin Muench, Jeffrey P. Goldberg},%
+ pdfkeywords={LaTeX, lastpage, last page, page number, page name, H.-Martin Muench, Jeffrey P. Goldberg},%
pdfencoding=auto,%
pdflang={en},%
breaklinks=true,%
@@ -237,7 +237,7 @@ and the derived files
%
% \fi
%
-% \CheckSum{154}
+% \CheckSum{254}
%
% \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
@@ -276,15 +276,16 @@ and the derived files
% \DoNotIndex{\",\-,\,,\\,\noindent}
% \DoNotIndex{\textbf,\textit,\textsf,\texttt,\underline,\mathord,\normalsize}
% \DoNotIndex{\textquotedblleft,\textquotedblright}
-% \DoNotIndex{\ifx,\ifnum,\gdef,\href,\pageref}
+% \DoNotIndex{\ifx,\ifnum,\gdef,\href,\pageref,\empty}
% \DoNotIndex{\newpage,\pagebreak,\newline,\linebreak,\nolinebreak,\MessageBreak}
% \DoNotIndex{\smallskip,\medskip,\bigskip,\space,\hfil,\qquad,\thinspace}
% \DoNotIndex{\listfiles,\section,\today,\the,\arabic}
% \DoNotIndex{\makeatletter,\makeatother,\verb}
% \DoNotIndex{\begin,\end,\enddocument,\mathrm}
+% \DoNotIndex{\lastpage@testa,\lastpage@testb,\lastpage@one}
%
% \title{The \xpackage{lastpage} package}
-% \date{2011/08/08 v1.2i}
+% \date{2011/09/01 v1.2k}
% \author{H.-Martin M\"{u}nch\\\xemail{Martin.Muench at Uni-Bonn.de}\\
% invented by Jeffrey P. Goldberg\\\xemail{jeffrey+news at goldmark.org}}
%
@@ -370,7 +371,7 @@ and the derived files
% \makeatletter
% \renewcommand{\@evenfoot}{%
% \normalsize\slshape DRAFT \today\hfil \upshape %
-% page {\thepage} of \pageref{LastPage}}
+% page \thepage\ of \pageref{LastPage}}
% \renewcommand{\@oddfoot}{\@evenfoot}
% \makeatother
%\end{verbatim}
@@ -455,6 +456,13 @@ and the derived files
% \indent (The \xpackage{pageslts} package puts |\lastpageref{LastPages}|
% (with \textbf{s} at the end) at your disposal for remediation.)
%
+% \subsection{No write access to the \xfile{aux} file}
+%
+% Some packages (e.\,g. \xpackage{tikz} and \xpackage{selectp}) sometimes prevent
+% the output to the \xfile{aux} file. In that case a warning is issued. This is
+% no problem as long as there is another compilation run where the label to the
+% last page can be placed via the \xfile{aux} file.
+%
% \subsection{Wrong last page number with more than one page numbering scheme}
%
% When more than one page numbering scheme is used,
@@ -526,7 +534,7 @@ and the derived files
% page numbering scheme, this package might skrew up --
% and quite totally for that, especially when used together with old versions of the
% \xpackage{hyperref} package (e.\,g. \xpackage{hyperref} v6.80x as of 2010/04/17).
-% When testing with version v6.82g as of 2011/04/17, the hyperlink did not aim
+% When testing with version v6.82h as of 2011/08/19, the hyperlink did not aim
% at the last page, but at least the given name of the last page was right.\\
% \indent (The \xpackage{pageslts} package with |\lastpageref{lastpage}| and
% appropriate package options should cope even with this case.)
@@ -566,7 +574,7 @@ and the derived files
% The \xpackage{hyperref} package redefines the |\lastpage@putlabel| command,
% and the \xpackage{revtex4} class redefines the |\lastpage@putlabel| command,
% and the \xpackage{hyperref} package redefines the |\lastpage@putlabel| command,
-% if the \xpackage{revtex4} class is used, and the \xpackage{pageslts}
+% if the \xpackage{revtex4} class is used, and the \xpackage{pageslts} package
% \textquotedblleft kills\textquotedblright\ the |\lastpage@putlabel| command,
% because that package uses more advanced labels.\\
% In my humble opinion it would be preferably if one package (the original one,
@@ -588,7 +596,8 @@ and the derived files
% There are similar packages, which do (or do not) similar things (or even more).
% As I neither know what exactly you want to accomplish when using this package
% (e.\,g.~page number vs. page name, hyperlinks or not), nor what resources
-% you have (e.\,g.~\eTeX{}), here is a list of some possible alternatives:\\
+% you have (e.\,g.~$\varepsilon$-\TeX{}), here is a list of some possible
+% alternatives:\\
%
% \DescribeMacro{lastpage209.sty}
% \begin{description}
@@ -730,12 +739,12 @@ and the derived files
%
% \begin{macrocode}
%<*example>
-\documentclass[british]{article}
+\documentclass[british]{article}[2007/10/19]% v1.4h
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\AtEndDocument{\message{^^JLaTeX Info: Executing hook `AtEndDocument'.}}
\usepackage[draft]{showkeys}[2007/08/07]% v3.15
%% Use final instead of draft to hide the keys. %%
-\usepackage{hyperref}[2011/04/17]% v6.82g
+\usepackage{hyperref}[2011/08/19]% v6.82h
\hypersetup{%
extension=pdf,%
plainpages=false,%
@@ -750,11 +759,11 @@ and the derived files
pdfstartview=Fit,%
pdfpagelayout=SinglePage%
}
-\usepackage{lastpage}[2011/08/08]% v1.2i
+\usepackage{lastpage}[2011/09/01]% v1.2k
\makeatletter
\renewcommand{\@evenfoot}{%
- \normalsize\slshape \today\hfil \upshape page \thepage%
- \ of \pageref{LastPage}}
+ \normalsize\slshape \today\hfil \upshape %
+ page \thepage\ of \pageref{LastPage}}
\renewcommand{\@oddfoot}{\@evenfoot}
\makeatother
\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}%
@@ -766,7 +775,7 @@ and the derived files
\markboth{Example for lastpage}{Example for lastpage}
This example demonstrates the use of package\newline
-\textsf{lastpage}, v1.2i as of 2011/08/08 (HMM; JPG).\newline
+\textsf{lastpage}, v1.2k as of 2011/09/01 (HMM; JPG).\newline
The package takes no options.\newline
For more details please see the documentation!\newline
@@ -859,10 +868,15 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \end{macrocode}
%
% \begin{macrocode}
-\NeedsTeXFormat{LaTeX2e}[2009/09/24]
-\ProvidesPackage{lastpage}[2011/08/08 v1.2i
+\NeedsTeXFormat{LaTeX2e}[2011/06/27]
+\ProvidesPackage{lastpage}[2011/09/01 v1.2k
Refers to last page's name (HMM; JPG)]%
+%% lastpage may work with earlier versions of LaTeX,
+%% but this was not tested. Please consider updating
+%% your LaTeX (and packages) to the most recent version
+%% (if it is/they are not already the most recent version).
+
% \end{macrocode}
%
% A short description of the \xpackage{lastpage} package:
@@ -932,14 +946,14 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \pagebreak
%
% \begin{macro}{\AtBeginDocument}
-% \indent |\AtBeginDocument| it is checked whether the \xpackage{hyperref} package
-% is loaded.\\
+% \indent |\AtBeginDocument| it is checked whether various packages are loaded.\\
% (|\@ifpackageloaded| cannot be used later than |\AtBeginDocument|.)\\
-% If this is the case, |\lastpage@hyper| is defined as \texttt{1}
-% (otherwise it stays \texttt{0}).
+% If this is the case, |\lastpage@<package abbreviation>| is defined as
+% \texttt{1} (otherwise it stays \texttt{0}).
%
% \begin{macrocode}
\AtBeginDocument{%
+ \@ifpackageloaded{tikz}{\gdef\lastpage@tikz{1}}{}%
\@ifpackageloaded{hyperref}{\gdef\lastpage@hyper{1}}{}%
\@ifpackageloaded{pageslts}{%
\PackageWarning{lastpage}{Package pageslts found.\MessageBreak%
@@ -1048,12 +1062,14 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \end{macrocode}
%
% When \xpackage{hyperref} has not been loaded, we just write the
-% simple label into the \xfile{aux} file:
+% simple label into the \xfile{aux} file (and store the value of the page):
%
% \begin{macrocode}
\begingroup
\addtocounter{page}{-1}%
\immediate\write\@auxout{\string\newlabel{LastPage}{{}{\thepage}}}%
+ \immediate\write\@auxout{\string\xdef\string\lastpage@lastpage{\thepage}}%
+ \immediate\write\@auxout{\string\gdef\string\lastpage@lastpageHy{}}%
\addtocounter{page}{+1}%
\endgroup
\fi%
@@ -1063,6 +1079,8 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \end{macrocode}
% \end{macro}
%
+% \pagebreak
+%
% \begin{macro}{\lastpage@putlabelhyper}%
% \indent When \xpackage{hyperref} has been loaded, the label is set with the
% |\lastpage@putlabelhyper| command. If the \xpackage{hyperref} package is used,
@@ -1154,6 +1172,21 @@ I do NOT think, that it is necessary to print THIS file, really\newline
%% End of code from the hyperref package. %%
% \end{macrocode}
%
+% We also save the values, so that we can later (next rerun) check,
+% whether they have been saved in the \xfile{aux} file.
+%
+% \begin{macrocode}
+ \immediate\write\@auxout{%
+ \string\xdef\string\lastpage@lastpage{\thepage}}%
+ \ifHy@pageanchor%
+ \immediate\write\@auxout{%
+ \string\xdef\string\lastpage@lastpageHy{\Hy@temp}}%
+ \else%
+ \immediate\write\@auxout{%
+ \string\gdef\string\lastpage@lastpageHy{}}%
+ \fi%
+% \end{macrocode}
+%
% After the writeout we restore the page number again,
% since there might be other things still to be done.
%
@@ -1165,13 +1198,87 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \end{macrocode}
% \end{macro}
%
+% \pagebreak
+%
+% \begin{macro}{\lastpage@fileswtest}
+% \indent Later it will be determined whether it is allowed to write
+% to the \xfile{aux} file. If it was \emph{not} allowed, it is checked
+% whether the label was already set via the \xfile{aux} file in some
+% earlier compilation run. (There are packages where the document
+% is compiled with access to the \xfile{aux} file, and then there is
+% an additional compiler run, where the \xfile{aux} file cannot be changed,
+% but in that run there is also no need to change it.) The \xpackage{tikz}
+% package is somewhat different, therefore we only give a warning instead
+% of an error (and hope that there is another compiler run where the
+% \xfile{aux} file can be written).
+%
+% \begin{macrocode}
+\newcommand{\lastpage@fileswtest}[2]{%
+ \edef\lastpage@testa{#1}%
+ \edef\lastpage@testb{#2}%
+ \ifx\lastpage@testa\lastpage@testb% OK
+ \else%
+ \ifx\lastpage@tikz\lastpage@one%
+ \PackageWarning{lastpage}%
+ {The lastpage package was not allowed to write to an\MessageBreak%
+ .aux file. This package does not work without access\MessageBreak%
+ to an .aux file.\MessageBreak%
+ }%
+ \else%
+ \PackageError{lastpage}{No auxiliary file allowed}%
+ {The lastpage package was not allowed to write to an .aux file.\MessageBreak%
+ This package does not work without access to an .aux file.\MessageBreak%
+ Press Ctrl+Z to exit.\MessageBreak%
+ }%
+ \fi%
+ \fi%
+ }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\lastpage@fileswtestHy}
+% \indent When the \xpackage{hyperref} package has been loaded,
+% |\lastpage@lastpageHy| must be tested additionally. (And a
+% |\newcommand| is needed, because |\ifHy@pageanchor| is not even
+% defined when \xpackage{hyperref} has not been loaded.)
+%
+% \begin{macrocode}
+\newcommand{\lastpage@fileswtestHy}{%
+ \ifHy@pageanchor%
+ \lastpage@fileswtest{\Hy@temp}{\lastpage@lastpageHy}%
+ \else%
+ \lastpage@fileswtest{\empty}{\lastpage@lastpageHy}%
+ \fi%
+ }
+
+% \end{macrocode}
+% \end{macro}
+%
+% \pagebreak
+%
% \begin{macro}{\AtEndDocument}
% \indent |\AtEndDocument| we again (re)define |\lastpage@putlabel|
-% to do nothing.
+% to do nothing and define |\lastpage@lastpage| and |\lastpage@lastpageHy|.
+% Without this definition there would happen an |undefined| error when
+% comparing with |\lastpage@lastpage| and |\lastpage@lastpageHy|.
%
% \begin{macrocode}
\AtEndDocument{%
\gdef\lastpage@putlabel{\relax}
+ \ifx\lastpage@LTS\lastpage@one%
+ \else%
+ \@ifundefined{lastpage@lastpage}%
+ {\gdef\lastpage@lastpage{LastpagePackageError}%
+ % If there really is a page numbered (!) "LastpagePackageError",
+ % you will get the rerun warning whether it is necessary or not.
+ \PackageWarning{lastpage}{Rerun to get the references right}%
+ }{% already defined, nothing to be done.
+ }%
+ \@ifundefined{lastpage@lastpageHy}%
+ {\gdef\lastpage@lastpageHy{LastpagePackageError}%
+ }{% already defined, nothing to be done.
+ }%
+ \fi%
% \end{macrocode}
%
% It is checked whether writing to files is allowed
@@ -1195,18 +1302,23 @@ I do NOT think, that it is necessary to print THIS file, really\newline
\clearpage\lastpage@putl@bel%
% \end{macrocode}
%
-% When writing to files is not allowed, only an error message is issued
-% and nothing is done.
+% When writing to files is not allowed, nothing can be done. But when
+% the label was already set via the \xfile{aux} file, nothing needs
+% to be done. We check for this with |\lastpage@fileswtest| and
+% (if \xpackage{hyperref} has been loaded) |\lastpage@fileswtestHy|.
%
% \begin{macrocode}
\else%
- \PackageError{lastpage}{No auxiliary file allowed}%
- {The lastpage package was not allowed to write to an .aux file.\MessageBreak%
- This package does not work without access to an .aux file.\MessageBreak%
- Press Ctrl+Z to exit.\MessageBreak%
- }%
+ \ifx\lastpage@LTS\lastpage@one%
+ \else%
+ \lastpage@fileswtest{\thepage}{\lastpage@lastpage}%
+ \ifx\lastpage@hyper\lastpage@one%
+ \lastpage@fileswtestHy%
+ \fi%
+ \fi%
\fi%
}
+
% \end{macrocode}
% \end{macro}
%
@@ -1249,12 +1361,12 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \begin{description}
% \item[-] \TeX Format \LaTeXe{}, \url{http://www.CTAN.org/}
%
-% \item[-] package \xpackage{lastpage}, 2011/08/08, v1.2i,\\
+% \item[-] package \xpackage{lastpage}, 2011/09/01, v1.2k,\\
% \CTAN{macros/latex/contrib/lastpage/lastpage.dtx}
% \end{description}
% and can use
% \begin{description}
-% \item[-] package \xpackage{hyperref}, 2011/04/17, v6.82g,\\
+% \item[-] package \xpackage{hyperref}, 2011/08/19, v6.82h,\\
% \CTAN{macros/latex/contrib/hyperref.zip}
% \end{description}
%
@@ -1264,7 +1376,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \begin{description}
% \item[-] \TeX Format \LaTeX{}, v2.09
%
-% \item[-] package \xpackage{lastpage209}, 2011/08/08, v1.2i, included in\\
+% \item[-] package \xpackage{lastpage209}, 2011/09/01, v1.2k, included in\\
% \CTAN{macros/latex/contrib/lastpage/lastpage.dtx}%
% \end{description}
% and does not work with \xpackage{hyperref}, which needs \LaTeX2e{}.\\
@@ -1273,7 +1385,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% The \texttt{lastpage-example.tex} requires the same file as all
% documents using the \xpackage{lastpage} package, i.\,e.
% \begin{description}
-% \item[-] package \xpackage{lastpage}, 2011/08/08, v1.2i,\\
+% \item[-] package \xpackage{lastpage}, 2011/09/01, v1.2k,\\
% \CTAN{macros/latex/contrib/lastpage/lastpage.dtx}\\
% (Well, it is the example file for this package, and because you are reading the
% documentation for the \xpackage{lastpage} package, it can be assumed that you already
@@ -1287,7 +1399,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \item[-] package \xpackage{showkeys}, 2007/08/07, v3.15,\\
% \CTAN{macros/latex/required/tools/showkeys.dtx}
%
-% \item[-] package \xpackage{hyperref}, 2011/04/17, v6.82g,\\
+% \item[-] package \xpackage{hyperref}, 2011/08/19, v6.82h,\\
% \CTAN{macros/latex/contrib/hyperref.zip}
% \end{description}
%
@@ -1319,7 +1431,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% For counting the used couters (and other registers), the \xpackage{regstats}
% package was mentioned (it is not required). It can be found at:
% \begin{description}
-% \item[-] package \xpackage{regstats}, 2011/06/18, v1.0d,\\
+% \item[-] package \xpackage{regstats}, 2011/08/23, v1.0f,\\
% \CTAN{macros/latex/contrib/regstats/regstats.dtx}
% \end{description}
%
@@ -1333,7 +1445,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \item[-] package \xpackage{pageslts}, 2011/08/08, v1.2a,\\
% \CTAN{macros/latex/contrib/pageslts/pageslts.dtx}
%
-% \item[-] package \xpackage{papermas}, 2011/08/08, v1.0g; the \xpackage{papermas}
+% \item[-] package \xpackage{papermas}, 2011/08/22, v1.0h; the \xpackage{papermas}
% package can be considered as kind of add-on to the \xpackage{pageslts} package.\\
% \CTAN{macros/latex/contrib/papermas/papermas.dtx}
%
@@ -1347,7 +1459,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \item[-] package \xpackage{totpages}, 2005/09/19, v2.00,\\
% \CTAN{macros/latex/contrib/totpages/totpages.dtx}
%
-% \item[-] package \xpackage{zref}, 2011/03/18, v2.21,\\
+% \item[-] package \xpackage{zref}, 2011/03/18, v2.21,\\
% \CTAN{macros/latex/contrib/oberdiek/zref.dtx},
% requires $\varepsilon$-\TeX{}.
% \end{description}
@@ -1555,7 +1667,8 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% I know about creating a file in \xfile{dtx} format, ok, say it: copying),
% and the \Newsgroup{comp.text.tex} and \Newsgroup{de.comp.text.tex}
% newsgroups for their help in all things \TeX{}. Thanks for bug reports go
-% to \textsc{Ulrike Fischer}, \textsc{Sebastian Bank}, and \textsc{James Hedges}.
+% to \textsc{Ulrike Fischer}, \textsc{Sebastian Bank}, \textsc{James Hedges},
+% and \textsc{Mikhail Titov}.
% Thanks to \textsc{Sven Siegmund} for pointing out a necessary further
% explanation in the documentation.
%
@@ -1589,7 +1702,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% and then the \xpackage{hyperref} package and the \xpackage{revtex4}
% class even redefine\\
% |\lastpage@putlabel| (at least \xpackage{hyperref} version
-% \sout{ 2010/09/13, v6.81n}\uwave{ 2011/04/17, v6.82g}, and
+% \sout{ 2010/09/13, v6.81n}\uwave{ 2011/08/19, v6.82h}, and
% REV\TeX{}4\ version 2010/07/25, v4.1r, still do this).
% \end{Version}
% \begin{Version}{2010/02/18 v1.1}
@@ -1624,10 +1737,10 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% \item Detected another bug: |\ifHy@pageanchor| etc. do not work without
% \xpackage{hyperref}, and |\else| related to |\ifHy@pageanchor| was
% wrongly associated with a preceding |\if|, and everything went wrong.
-% Now everything should work without \xpackage{hyperref} again.
+% Now everything should work again also without \xpackage{hyperref}.
% \item Renamed |\lastpage@putlabel| to |\lastpage@putl@bel| to get rid of
% the conflicts with other classes and packages and resulting
-% multiple definitions of \texttt{lastpage} label.
+% multiple definitions of the \texttt{lastpage} label.
% \end{Version}
% \begin{Version}{2010/08/23 v1.2c}
% \item Bug fix: Additionally to checking for the \xpackage{hyperref} package
@@ -1681,10 +1794,12 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% therefore the warning in \xfile{drv} could be removed.~-- Adapted
% the style of this documentation to new \textsc{Oberdiek} \xfile{dtx}
% style.
-% \item New version of \xpackage{pagesLTS} package, 2011/03/17, v1.1o.
+% \item New version of \xpackage{pagesLTS} package \uwave{was} 2011/03/17, v1.1o.
% \item New version of \xpackage{ulem} package, 2011/03/18.
-% \item There is a new version of the \xpackage{hyperref} package: 2011/04/17, v6.82g.
-% \item There is a new version of the \xpackage{papermas} package: 2011/06/02, v1.0f .
+% \item There \sout{is}\uwave{was} a new version of the \xpackage{hyperref} package:
+% 2011/04/17, v6.82g.
+% \item There \sout{is}\uwave{was} a new version of the \xpackage{papermas} package:
+% 2011/06/02, v1.0f .
% \item The recent version of the Adobe Reader is X (10.1.0; instead of 10.0.0).
% \item Corrected a reference to \xpackage{lastpage} at \CTAN{}.
% \item Corrected a reference to \xpackage{pagesLTS} at \CTAN{}.
@@ -1695,6 +1810,27 @@ I do NOT think, that it is necessary to print THIS file, really\newline
% 2011/08/08, v1.2a.
% \item Some details.
% \end{Version}
+% \begin{Version}{2011/08/31 v1.2j}
+% \item Updated to \TeX live2011 (for compiling the documentation and example)
+% and installed the available updates. Therefore I can no longer test
+% whether \xpackage{lastpage} works with earlier versions of \LaTeX{}.
+% (It probably does, but there is no guarantee.)
+% \item New version of \xpackage{papermas} package, 2011/08/22, v1.0h.
+% \item Adapted for the use together with packages, which sometimes prevent writing
+% to the \xfile{aux} file. (Bug reported by \textsc{Mikhail Titov}, thanks!)
+% \item Minor details.
+% \end{Version}
+% \begin{Version}{2011/09/01 v1.2k}
+% \item Fixed |\thepage{}| to |\thepage\ |, where there should be a space.
+% \item New version of the \xpackage{hyperref} package, 2011/08/19, v6.82h, but
+% still problem with links to pages with
+% page-\textquotedblleft number\textquotedblright\ in \texttt{fnsymbol}
+% pagenumbering scheme.
+% \item Documentation update about \textquotedblleft No write access to the
+% \xfile{aux} file\textquotedblright .
+% \item New version of \xpackage{regstats} package available: 2011/08/23, v1.0f.
+% \item Some small details.
+% \end{Version}
% \end{History}
%
% \bigskip
diff --git a/Master/texmf-dist/source/latex/lastpage/lastpage.ins b/Master/texmf-dist/source/latex/lastpage/lastpage.ins
index 546448fb71d..389c7961d59 100644
--- a/Master/texmf-dist/source/latex/lastpage/lastpage.ins
+++ b/Master/texmf-dist/source/latex/lastpage/lastpage.ins
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2011/08/08 v1.2i
+%% Version: 2011/09/01 v1.2k
%%
%% Copyright (C) 2010, 2011 by
%% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>
@@ -53,7 +53,7 @@
\input docstrip.tex
\Msg{*********************************************************************}
\Msg{* Installation}
-\Msg{* Package: lastpage 2011/08/08 v1.2i Refers to last page's name (HMM)}
+\Msg{* Package: lastpage 2011/09/01 v1.2k Refers to last page's name (HMM)}
\Msg{*********************************************************************}
\keepsilent
@@ -65,7 +65,7 @@
This is a generated file.
Project: lastpage
-Version: 2011/08/08 v1.2i
+Version: 2011/09/01 v1.2k
Copyright (C) 2010, 2011 by
H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>
diff --git a/Master/texmf-dist/tex/latex/lastpage/lastpage.sty b/Master/texmf-dist/tex/latex/lastpage/lastpage.sty
index dc2a7bae9f8..c3ea955e466 100644
--- a/Master/texmf-dist/tex/latex/lastpage/lastpage.sty
+++ b/Master/texmf-dist/tex/latex/lastpage/lastpage.sty
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2011/08/08 v1.2i
+%% Version: 2011/09/01 v1.2k
%%
%% Copyright (C) 2010, 2011 by
%% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>
@@ -50,10 +50,15 @@
%% lastpage.sty, lastpage.pdf, lastpage.ins, lastpage.drv,
%% lastpage-example.tex.
%%
-\NeedsTeXFormat{LaTeX2e}[2009/09/24]
-\ProvidesPackage{lastpage}[2011/08/08 v1.2i
+\NeedsTeXFormat{LaTeX2e}[2011/06/27]
+\ProvidesPackage{lastpage}[2011/09/01 v1.2k
Refers to last page's name (HMM; JPG)]%
+%% lastpage may work with earlier versions of LaTeX,
+%% but this was not tested. Please consider updating
+%% your LaTeX (and packages) to the most recent version
+%% (if it is/they are not already the most recent version).
+
%% Allows for things like
%% Page \thepage\ of \pageref{LastPage}
%% to get
@@ -76,6 +81,7 @@
\def\lastpage@firstpage{1}
\AtBeginDocument{%
+ \@ifpackageloaded{tikz}{\gdef\lastpage@tikz{1}}{}%
\@ifpackageloaded{hyperref}{\gdef\lastpage@hyper{1}}{}%
\@ifpackageloaded{pageslts}{%
\PackageWarning{lastpage}{Package pageslts found.\MessageBreak%
@@ -123,6 +129,8 @@
\begingroup
\addtocounter{page}{-1}%
\immediate\write\@auxout{\string\newlabel{LastPage}{{}{\thepage}}}%
+ \immediate\write\@auxout{\string\xdef\string\lastpage@lastpage{\thepage}}%
+ \immediate\write\@auxout{\string\gdef\string\lastpage@lastpageHy{}}%
\addtocounter{page}{+1}%
\endgroup
\fi%
@@ -184,23 +192,77 @@
\ifHy@pageanchor page.\Hy@temp\fi}{}}%
}%
%% End of code from the hyperref package. %%
+ \immediate\write\@auxout{%
+ \string\xdef\string\lastpage@lastpage{\thepage}}%
+ \ifHy@pageanchor%
+ \immediate\write\@auxout{%
+ \string\xdef\string\lastpage@lastpageHy{\Hy@temp}}%
+ \else%
+ \immediate\write\@auxout{%
+ \string\gdef\string\lastpage@lastpageHy{}}%
+ \fi%
\addtocounter{page}{+1}%
\endgroup
}
+\newcommand{\lastpage@fileswtest}[2]{%
+ \edef\lastpage@testa{#1}%
+ \edef\lastpage@testb{#2}%
+ \ifx\lastpage@testa\lastpage@testb% OK
+ \else%
+ \ifx\lastpage@tikz\lastpage@one%
+ \PackageWarning{lastpage}%
+ {The lastpage package was not allowed to write to an\MessageBreak%
+ .aux file. This package does not work without access\MessageBreak%
+ to an .aux file.\MessageBreak%
+ }%
+ \else%
+ \PackageError{lastpage}{No auxiliary file allowed}%
+ {The lastpage package was not allowed to write to an .aux file.\MessageBreak%
+ This package does not work without access to an .aux file.\MessageBreak%
+ Press Ctrl+Z to exit.\MessageBreak%
+ }%
+ \fi%
+ \fi%
+ }
+\newcommand{\lastpage@fileswtestHy}{%
+ \ifHy@pageanchor%
+ \lastpage@fileswtest{\Hy@temp}{\lastpage@lastpageHy}%
+ \else%
+ \lastpage@fileswtest{\empty}{\lastpage@lastpageHy}%
+ \fi%
+ }
+
\AtEndDocument{%
\gdef\lastpage@putlabel{\relax}
+ \ifx\lastpage@LTS\lastpage@one%
+ \else%
+ \@ifundefined{lastpage@lastpage}%
+ {\gdef\lastpage@lastpage{LastpagePackageError}%
+ % If there really is a page numbered (!) "LastpagePackageError",
+ % you will get the rerun warning whether it is necessary or not.
+ \PackageWarning{lastpage}{Rerun to get the references right}%
+ }{% already defined, nothing to be done.
+ }%
+ \@ifundefined{lastpage@lastpageHy}%
+ {\gdef\lastpage@lastpageHy{LastpagePackageError}%
+ }{% already defined, nothing to be done.
+ }%
+ \fi%
\if@filesw%
\message{^^JAED: lastpage setting LastPage^^J}%
\clearpage\lastpage@putl@bel%
\else%
- \PackageError{lastpage}{No auxiliary file allowed}%
- {The lastpage package was not allowed to write to an .aux file.\MessageBreak%
- This package does not work without access to an .aux file.\MessageBreak%
- Press Ctrl+Z to exit.\MessageBreak%
- }%
+ \ifx\lastpage@LTS\lastpage@one%
+ \else%
+ \lastpage@fileswtest{\thepage}{\lastpage@lastpage}%
+ \ifx\lastpage@hyper\lastpage@one%
+ \lastpage@fileswtestHy%
+ \fi%
+ \fi%
\fi%
}
+
\endinput
%%
%% End of file `lastpage.sty'.
diff --git a/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty b/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty
index 7cb928ceb9a..a6d6610022b 100644
--- a/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty
+++ b/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2011/08/08 v1.2i
+%% Version: 2011/09/01 v1.2k
%%
%% Copyright (C) 2010, 2011 by
%% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>