From ce4bd6f3eabb2198671dda93907e2837d14eeb4e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 13 Aug 2011 22:17:19 +0000 Subject: lastpage (12aug11) git-svn-id: svn://tug.org/texlive/trunk@23536 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/source/latex/lastpage/lastpage.drv | 47 +- .../texmf-dist/source/latex/lastpage/lastpage.dtx | 1114 ++++++++++---------- .../texmf-dist/source/latex/lastpage/lastpage.ins | 110 +- 3 files changed, 613 insertions(+), 658 deletions(-) (limited to 'Master/texmf-dist/source/latex/lastpage') diff --git a/Master/texmf-dist/source/latex/lastpage/lastpage.drv b/Master/texmf-dist/source/latex/lastpage/lastpage.drv index 55e9e93811b..b7872a58132 100644 --- a/Master/texmf-dist/source/latex/lastpage/lastpage.drv +++ b/Master/texmf-dist/source/latex/lastpage/lastpage.drv @@ -8,8 +8,14 @@ %% %% This is a generated file. %% -%% IMPORTANT NOTICE: -%% The usual disclaimers apply: +%% Project: lastpage +%% Version: 2011/08/08 v1.2i +%% +%% Copyright (C) 2010, 2011 by +%% H.-Martin M"unch +%% Portions of code copyrighted by other people as marked. +%% +%% The usual disclaimer applys: %% If it doesn't work right that's your problem. %% (Nevertheless, send an e-mail to the maintainer %% when you find an error in this package.) @@ -26,16 +32,14 @@ %% %% This work has the LPPL maintenance status "maintained". %% -%% The Current Maintainer of this work is H.-Martin Muench -%% (Martin dot Muench at Uni-Bonn dot de). +%% The Current Maintainer of this work is H.-Martin Muench. %% -%% This package was invented by Jeffrey P. Goldberg -%% (jeffrey+news at goldmark dot org). +%% This package was invented by Jeffrey P. Goldberg. %% I thought that a replacement was needed and therefore created the -%% pagesLTS package, -%% http://www.ctan.org/tex-archive/macros/latex/contrib/pagesLTS/pagesLTS.dtx +%% pageslts package, +%% http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/pageslts.dtx %% or -%% http://www.ctan.org/tex-archive/install/macros/latex/contrib/pagesLTS.tds.zip +%% http://www.ctan.org/tex-archive/install/macros/latex/contrib/pageslts.tds.zip %% . Nevertheless, for compatibility with existing documents/packages as well as %% for the low amount of resources needed by the lastpage package (no new counter!), %% I updated this package. @@ -43,28 +47,19 @@ %% %% This work consists of the main source file lastpage.dtx %% and the derived files -%% lastpage.sty, lastpage.ins, lastpage.drv, -%% lastpage-example.tex, lastpage.pdf. +%% lastpage.sty, lastpage.pdf, lastpage.ins, lastpage.drv, +%% lastpage-example.tex. %% -\NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesFile{lastpage.drv}[2011/02/01 v1.2g - Refers to last page's name (HMM)]% +\NeedsTeXFormat{LaTeX2e}[2009/09/24] +\ProvidesFile{lastpage.drv}[2011/08/08 v1.2i + Refers to last page's name (HMM)] \documentclass{ltxdoc}[2007/11/11]% v2.0u -\usepackage{holtxdoc}[2010/04/24]% v0.19 +\usepackage{holtxdoc}[2011/02/04]% v0.21 %% lastpage may work with earlier versions of LaTeX2e and those %% class and package, but this was not tested. %% Please consider updating your LaTeX, class, and package %% to the most recent version (if they are not already the most %% recent version). -%% Warning: holtxdoc, 2010/04/24 v0.19, requires the packages -%% hypdoc, 2010/03/26, v1.9 -%% hyperref, 2010/03/30, v6.80u (latest: 2010/12/16, v6.81z) -%% pdftexcmds, 2010/04/01, v0.9 -%% ltxcmds, 2010/03/09, v1.4 (latest: 2010/04/26, v1.7) -%% hologo, 2010/04/24, v1.2 -%% array (latest: 2008/09/09, v2.4c) -%% (or more recent versions) and does neither work with -%% nor check for earlier versions! \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},% @@ -82,10 +77,8 @@ pdfwindowui=true,% pdfnewwindow=true% } -\usepackage{ulem}[2010/10/03] -\setlength\hfuzz{1pt} % Ignore slight overfulls. +\usepackage{ulem}[2011/03/18]% \CodelineIndex -\EnableCrossrefs \hyphenation{created every-thing ignored} \gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \begin{document} diff --git a/Master/texmf-dist/source/latex/lastpage/lastpage.dtx b/Master/texmf-dist/source/latex/lastpage/lastpage.dtx index 73351297502..139cbed6e70 100644 --- a/Master/texmf-dist/source/latex/lastpage/lastpage.dtx +++ b/Master/texmf-dist/source/latex/lastpage/lastpage.dtx @@ -1,20 +1,18 @@ % \iffalse meta-comment % -% lastpage package -% file version: v1.2g -% file date: 2011/02/01 -% documentation date: 2011/02/01 +% File: lastpage.dtx +% Version: 2011/08/08 v1.2i % -% Copyright (C) 2010, 2011 H.-Martin M\"{u}nch (Martin dot Muench at Uni-Bonn dot de) +% Copyright (C) 2010, 2011 by +% H.-Martin M"unch % Portions of code copyrighted by other people as marked. -% % This package was invented by Jeffrey P. Goldberg (jeffrey+news at goldmark dot org). -% I thought that a replacement was needed and therefore created the pagesLTS package, -% http://www.ctan.org/tex-archive/macros/latex/contrib/pagesLTS/pagesLTS.dtx +% I thought that a replacement was needed and therefore created the pageslts package, +% http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/pageslts.dtx % or -% http://www.ctan.org/tex-archive/install/macros/latex/contrib/pagesLTS.tds.zip -% . Nevertheless, for compatibility with existing documents/packages as well as for the -% low amount of resources needed by the lastpage package (no new counter!), +% http://www.ctan.org/tex-archive/install/macros/latex/contrib/pageslts.tds.zip +% . Nevertheless, for compatibility with existing documents/packages as well as for +% the low amount of resources needed by the lastpage package (no new counter!), % I updated this package. % Thanks go to Jeffrey P. Goldberg for allowing me to do this. % @@ -34,8 +32,13 @@ % % This work consists of the main source file lastpage.dtx % and the derived files -% lastpage.sty, lastpage.ins, lastpage.drv, -% lastpage-example.tex, lastpage.pdf. +% lastpage.sty, lastpage.pdf, lastpage.ins, lastpage.drv, +% lastpage-example.tex. +% +% Distribution: +% CTAN:macros/latex/contrib/lastpage/lastpage.dtx +% CTAN:macros/latex/contrib/lastpage/lastpage.pdf +% CTAN:install/macros/latex/contrib/lastpage.tds.zip % % Unpacking: % (a) If lastpage.ins is present: @@ -75,6 +78,8 @@ % %<*ignore> \begingroup + \catcode123=1 % + \catcode125=2 % \def\x{LaTeX2e}% \expandafter\endgroup \ifcase 0\ifx\install y1\fi\expandafter @@ -84,13 +89,10 @@ % %<*install> \input docstrip.tex - -\obeyspaces -\Msg{******************************************************} -\Msg{* Installation *} -\Msg{* Package: lastpage v1.2g 2011/02/01 LaTeX2e package *} -\Msg{* Refers to last page's name (HMM) *} -\Msg{******************************************************} +\Msg{*********************************************************************} +\Msg{* Installation} +\Msg{* Package: lastpage 2011/08/08 v1.2i Refers to last page's name (HMM)} +\Msg{*********************************************************************} \keepsilent \askforoverwritefalse @@ -100,8 +102,14 @@ This is a generated file. -IMPORTANT NOTICE: -The usual disclaimers apply: +Project: lastpage +Version: 2011/08/08 v1.2i + +Copyright (C) 2010, 2011 by + H.-Martin M"unch +Portions of code copyrighted by other people as marked. + +The usual disclaimer applys: If it doesn't work right that's your problem. (Nevertheless, send an e-mail to the maintainer when you find an error in this package.) @@ -118,16 +126,14 @@ LaTeX version 2005/12/01 or later. This work has the LPPL maintenance status "maintained". -The Current Maintainer of this work is H.-Martin Muench -(Martin dot Muench at Uni-Bonn dot de). +The Current Maintainer of this work is H.-Martin Muench. -This package was invented by Jeffrey P. Goldberg - (jeffrey+news at goldmark dot org). +This package was invented by Jeffrey P. Goldberg. I thought that a replacement was needed and therefore created the -pagesLTS package, -http://www.ctan.org/tex-archive/macros/latex/contrib/pagesLTS/pagesLTS.dtx +pageslts package, +http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/pageslts.dtx or -http://www.ctan.org/tex-archive/install/macros/latex/contrib/pagesLTS.tds.zip +http://www.ctan.org/tex-archive/install/macros/latex/contrib/pageslts.tds.zip . Nevertheless, for compatibility with existing documents/packages as well as for the low amount of resources needed by the lastpage package (no new counter!), I updated this package. @@ -135,8 +141,8 @@ Thanks go to Jeffrey P. Goldberg for allowing me to do this. This work consists of the main source file lastpage.dtx and the derived files - lastpage.sty, lastpage.ins, lastpage.drv, - lastpage-example.tex, lastpage.pdf. + lastpage.sty, lastpage.pdf, lastpage.ins, lastpage.drv, + lastpage-example.tex. \endpreamble \let\MetaPrefix\DoubleperCent @@ -144,7 +150,6 @@ and the derived files \generate{% \file{lastpage.ins}{\from{lastpage.dtx}{install}}% \file{lastpage.drv}{\from{lastpage.dtx}{driver}}% - \file{ltxdoc.cfg}{\from{lastpage.dtx}{ltxdoc}}% \usedir{tex/latex/lastpage}% \file{lastpage209.sty}{\from{lastpage.dtx}{lastpage209}}% \file{lastpage.sty}{\from{lastpage.dtx}{package}}% @@ -152,31 +157,31 @@ and the derived files \file{lastpage-example.tex}{\from{lastpage.dtx}{example}}% } -\obeyspaces -\Msg{**************************************************************} -\Msg{* *} -\Msg{* To finish the installation you have to move the following *} -\Msg{* file into a directory searched by TeX: *} -\Msg{* *} -\Msg{* lastpage.sty (or lastpage209.sty for TeX 2.09) *} -\Msg{* *} -\Msg{* To produce the documentation run the file `lastpage.drv' *} -\Msg{* through (pdf)LaTeX, e.g. *} -\Msg{* pdflatex lastpage.drv *} -\Msg{* makeindex -s gind.ist lastpage.idx *} -\Msg{* pdflatex lastpage.drv *} -\Msg{* makeindex -s gind.ist lastpage.idx *} -\Msg{* pdflatex lastpage.drv *} -\Msg{* *} -\Msg{* At least three runs are necessary e.g. to get the *} -\Msg{* references right! *} -\Msg{* *} -\Msg{* Happy TeXing! *} -\Msg{* *} -\Msg{**************************************************************} +\catcode32=13\relax% active space +\let =\space% +\Msg{************************************************************************} +\Msg{*} +\Msg{* To finish the installation you have to move the following} +\Msg{* file into a directory searched by TeX:} +\Msg{*} +\Msg{* lastpage.sty (or lastpage209.sty for TeX 2.09)} +\Msg{*} +\Msg{* To produce the documentation run the file `lastpage.drv'} +\Msg{* through (pdf)LaTeX, e.g.} +\Msg{* pdflatex lastpage.drv} +\Msg{* makeindex -s gind.ist lastpage.idx} +\Msg{* pdflatex lastpage.drv} +\Msg{* makeindex -s gind.ist lastpage.idx} +\Msg{* pdflatex lastpage.drv} +\Msg{*} +\Msg{* At least three runs are necessary e.g. to get the} +\Msg{* references right!} +\Msg{*} +\Msg{* Happy TeXing!} +\Msg{*} +\Msg{************************************************************************} \endbatchfile - % %<*ignore> \fi @@ -193,25 +198,16 @@ and the derived files % % \begin{macrocode} %<*driver> -\NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesFile{lastpage.drv}[2011/02/01 v1.2g - Refers to last page's name (HMM)]% +\NeedsTeXFormat{LaTeX2e}[2009/09/24] +\ProvidesFile{lastpage.drv}[2011/08/08 v1.2i + Refers to last page's name (HMM)] \documentclass{ltxdoc}[2007/11/11]% v2.0u -\usepackage{holtxdoc}[2010/04/24]% v0.19 +\usepackage{holtxdoc}[2011/02/04]% v0.21 %% lastpage may work with earlier versions of LaTeX2e and those %% class and package, but this was not tested. %% Please consider updating your LaTeX, class, and package %% to the most recent version (if they are not already the most %% recent version). -%% Warning: holtxdoc, 2010/04/24 v0.19, requires the packages -%% hypdoc, 2010/03/26, v1.9 -%% hyperref, 2010/03/30, v6.80u (latest: 2010/12/16, v6.81z) -%% pdftexcmds, 2010/04/01, v0.9 -%% ltxcmds, 2010/03/09, v1.4 (latest: 2010/04/26, v1.7) -%% hologo, 2010/04/24, v1.2 -%% array (latest: 2008/09/09, v2.4c) -%% (or more recent versions) and does neither work with -%% nor check for earlier versions! \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},% @@ -229,14 +225,8 @@ and the derived files pdfwindowui=true,% pdfnewwindow=true% } -\usepackage{ulem}[2010/10/03] -\setlength\hfuzz{1pt} % Ignore slight overfulls. +\usepackage{ulem}[2011/03/18]% \CodelineIndex -%\PageIndex % instead of \CodelineIndex to get the page numbers -\EnableCrossrefs -%\DisableCrossrefs % Say \DisableCrossrefs if index is ready. -%\RecordChanges % Gather update information. -%\OnlyDescription % Comment out for implementation details. \hyphenation{created every-thing ignored} \gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \begin{document} @@ -245,75 +235,9 @@ and the derived files % % \end{macrocode} % -% \begin{macrocode} -%<*ltxdoc> -\NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesFile{ltxdoc.cfg}[2011/02/01 v1.0c configuration file for lastpage (HMM)] - %% Code from original ltxdoc.cfg [2007/01/08 latex-tds: ltxdoc.cls configuration (HO)], %% - % copyrighted 2006, 2007 Heiko Oberdiek, part of project `latex-tds'. - % That file may be distributed and/or modified under the - % conditions of the LaTeX Project Public License, either version 1.3 - % of this license or (at your option) any later version. - % The latest version of this license is in - % http://www.latex-project.org/lppl.txt - % and version 1.3c or later is part of all distributions of LaTeX - % version 2005/12/01 or later. - % That work has the LPPL maintenance status `maintained'. - % The Current Maintainer of that work is Heiko Oberdiek. - \PassOptionsToClass{a4paper}{article} - \AtEndOfClass{% - \RequirePackage[numbered]{hypdoc}[2010/03/26]% v1.9 - \pdfstringdefDisableCommands{% - \let\env\relax % longtable.dtx - \let\mytt\relax % tabularx.dtx - }% - \addtolength{\topmargin}{-10mm}% - \addtolength{\textheight}{20mm}% - % Depending on the page style, the head or foot area - % are put into the text area. - % Usually the page style is the default "plain". - % tools/verbatim.dtx uses "myheadings". - \def\string@plain{plain}% - \def\string@myheadings{myheadings}% - \def\current@pagestyle{plain}% - \let\ltxdoc@cfg@pagestyle\pagestyle - \def\pagestyle#1{% - \def\current@pagestyle{#1}% - \ltxdoc@cfg@pagestyle{#1}% - }% - \edef\ltxdoc@cfg@jobname{\jobname}% - \def\ltxdoc@cfg@longtable{longtable}% - \@onelevel@sanitize\ltxdoc@cfg@longtable - \ifx\ltxdoc@cfg@jobname\ltxdoc@cfg@longtable - \def\current@pagestyle{both}% - \fi - \let\ltxdoc@cfg@document\document - \def\document{% - \ifx\current@pagestyle\string@plain - \addtolength{\textheight}{\headheight}% - \addtolength{\textheight}{\headsep}% - \setlength{\headheight}{0pt}% - \setlength{\headsep}{0pt}% - \global\textheight\textheight - \global\headheight\headheight - \global\headsep\headsep - \fi - \ifx\current@pagestyle\string@myheadings - \addtolength{\textheight}{\footskip}% - \global\textheight\textheight - \fi - \ltxdoc@cfg@document - }% - %% End of code from original ltxdoc.cfg [2007/01/08 latex-tds: ltxdoc.cls configuration (HO)] %% - %% Place additional code here. %% - } - -% -% \end{macrocode} -% % \fi % -% \CheckSum{147} +% \CheckSum{154} % % \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 @@ -326,7 +250,7 @@ and the derived files % Minus \- Point \. Solidus \/ % Colon \: Semicolon \; Less than \< % Equals \= Greater than \> Question mark \? -% Commercial at \@ Left bracket \[ Backslash \\ +% Commercial at \@ Left bracket \[ Backslash \\ % Right bracket \] Circumflex \^ Underscore \_ % Grave accent \` Left brace \{ Vertical bar \| % Right brace \} Tilde \~} @@ -347,47 +271,35 @@ and the derived files % \edef\x{\noexpand\DoNotIndex{\@backslashchar9}}%^^A % }%^^A % \expandafter\endgroup\x -% \DoNotIndex{\documentclass,\usepackage,\hfuzz,\small,\tt,\begin,\end} -% \DoNotIndex{\NeedsTeXFormat,\filedate,\fileversion,\DoNotIndex} -% \DoNotIndex{\def,\edef,\divide,\advance,\multiply} -% \DoNotIndex{\",\-,\,,\\,\hskip,\H,\ldots,\indent,\noindent,\textbackslash} -% \DoNotIndex{\textbf,\textit,\textquotedblleft,\textquotedblright,\textsf,\texttt,\underline} -% \DoNotIndex{\ifthenelse,\and,\equal,\whiledo,\if,\ifx,\ifnum,\else,\fi} -% \DoNotIndex{\CodelineIndex,\EnableCrossrefs,\DisableCrossrefs} -% \DoNotIndex{\DocInput,\AltMacroFont} -% \DoNotIndex{\@ne,\tw@,\thr@@,\today} -% \DoNotIndex{\newpage,\pagebreak,\newline,\linebreak,\nolinebreak} -% \DoNotIndex{\lipsum,\MessageBreak,\pageref,\protect} -% \DoNotIndex{\RecordChanges,\OnlyDescription} +% \DoNotIndex{\documentclass,\usepackage,\ProvidesPackage} +% \DoNotIndex{\NeedsTeXFormat,\plainTeX,\TeX,\LaTeX,\pdfLaTeX} +% \DoNotIndex{\",\-,\,,\\,\noindent} +% \DoNotIndex{\textbf,\textit,\textsf,\texttt,\underline,\mathord,\normalsize} +% \DoNotIndex{\textquotedblleft,\textquotedblright} +% \DoNotIndex{\ifx,\ifnum,\gdef,\href,\pageref} +% \DoNotIndex{\newpage,\pagebreak,\newline,\linebreak,\nolinebreak,\MessageBreak} % \DoNotIndex{\smallskip,\medskip,\bigskip,\space,\hfil,\qquad,\thinspace} -% \DoNotIndex{\item,\arabic,\listfiles,\section} -% \DoNotIndex{\plainTeX,\TeX,\LaTeX,\pdfLaTeX} -% \DoNotIndex{\makeatletter,\makeatother,\mathord,\normalsize,\rm,\fancyhdr} -% -% \title{The \textsf{lastpage} package\footnote{This file% -% has version number v1.2g, last% -% revised 2011/02/01, documentation dated 2011/02/01.}} -% \author{invented by Jeffrey P. Goldberg\\ -% (\texttt{jeffrey+news at goldmark dot org})\\ -% now maintained by H.-Martin M\"{u}nch\\ -% (\texttt{Martin dot Muench at Uni-Bonn dot de})} -% \date{2011/02/01} +% \DoNotIndex{\listfiles,\section,\today,\the,\arabic} +% \DoNotIndex{\makeatletter,\makeatother,\verb} +% \DoNotIndex{\begin,\end,\enddocument,\mathrm} +% +% \title{The \xpackage{lastpage} package} +% \date{2011/08/08 v1.2i} +% \author{H.-Martin M\"{u}nch\\\xemail{Martin.Muench at Uni-Bonn.de}\\ +% invented by Jeffrey P. Goldberg\\\xemail{jeffrey+news at goldmark.org}} % % \maketitle % % \begin{abstract} -% This package puts the label \texttt{LastPage} -% (\texttt{\textbackslash AtEndDocument}) -% into the \texttt{.aux} file, allowing the user to refer -% to the last page of a document. This might be -% particularly useful in places like headers or footers.~--\\ -% When more than one page numbering scheme is used, -% or the fnsymbol page numbering scheme is used, or -% another package has output after this package, or -% the number of pages instead of the last page's name -% is needed, or the page numbers exeed a certain range, -% there might be problems, which can be solved by using the -% \textsf{pagesLTS} package instead. +% This \LaTeX\ package puts the label \texttt{LastPage} +% (|\AtEndDocument|) into the \xfile{.aux} file, allowing the user to refer +% to the last page of a document. This might be particularly useful +% in places like headers or footers.~--\\ +% When more than one page numbering scheme is used, or the fnsymbol page +% numbering scheme is used, or another package has output after this package, +% or the number of pages instead of the last page's name is needed, +% or the page numbers exeed a certain range, there might be problems, +% which can be solved by using the \xpackage{pageslts} package instead. % \end{abstract} % % \bigskip @@ -400,36 +312,37 @@ and the derived files % % \bigskip % -% \noindent Save per page about $200\unit{ml}$ water, -% $2\unit{g}$ CO$_{2}$ and $2\unit{g}$ wood: -% Therefore please print only if this is really necessary. +% \noindent {\color{green} Save per page about $200\unit{ml}$ water, +% $2\unit{g}$ CO$_{2}$ and $2\unit{g}$ wood:\\ +% Therefore please print only if this is really necessary.} % -% \newpage +% \pagebreak % % \tableofcontents % +% \pagebreak +% % \section{Introduction} % -% \indent This package puts the label \texttt{LastPage} -% (\texttt{\textbackslash AtEndDocument}) -% into the \xfile{aux} file, allowing the user to refer -% to the last page of a document via -% |\pageref{LastPage}|. -% This might be particularly useful in places like headers or -% footers. +% \indent This \LaTeX\ package puts the label \texttt{LastPage} +% (|\AtEndDocument|) into the \xfile{aux} file, allowing the user to refer +% to the last page of a document via |\pageref{LastPage}|. +% This might be particularly useful in places like headers or footers. % % \bigskip +% % This package was invented by \textbf{Jeffrey P. Goldberg}, -% and is now maintained by H.-Martin M\"{u}nch. A~big -% \textquotedblleft Thank you!\textquotedblright\ to Jeffrey P. Goldberg -% for granting this. +% and is now maintained by \textsc{H.-Martin M\"{u}nch}. A~big +% \textquotedblleft Thank you!\textquotedblright\ to +% \textsc{Jeffrey P. Goldberg} for granting this. % % \bigskip +% % If you are more ambitiouse in respect to your aims with this package, -% you might want to have a look at the \textsf{pagesLTS} package +% you might want to have a look at the \xpackage{pageslts} package % (see section~\ref{sec:Alternatives}: Alternatives). % -% \newpage +% \bigskip % % \section{Usage} % @@ -437,24 +350,27 @@ and the derived files % \begin{quote} % |\usepackage{lastpage}| % \end{quote} -% \noindent in the preamble of your \LaTeXe\ source file.\\ +% \noindent in the preamble of your \LaTeXe\ source file or +% \begin{quote} +% |\usepackage{lastpage209}| +% \end{quote} +% \noindent in the preamble of your \LaTeX2.09\ source file.\\ % % \indent For example for various draft forms it is desirable to have a % page reference to the last page, so that e.\,g. page footers can % contain something like \textquotedblleft page $N$ of $K$\textquotedblright, % where $N$ is the current page and $K$ is the last page. Once the package -% is loaded, anywhere in the text references can be made -% to the label \texttt{LastPage}. -% In particular one can use the \textsf{fancyhdr} or \textsf{nccfancyhdr} -% package, or redefinitions of the page headings and footings to get -% a reference to the last page. +% is loaded, anywhere in the text references can be made to the label +% \texttt{LastPage}. In particular one can use the \xpackage{fancyhdr} +% or \xpackage{nccfancyhdr} package, or redefinitions of the page headings +% and footings to get a reference to the last page. % % \noindent In your document the code % \begin{verbatim} % \makeatletter -% \renewcommand{\@evenfoot}% -% {\normalsize\slshape DRAFT \today\hfil \upshape % -% page {\thepage} of \pageref{LastPage}} +% \renewcommand{\@evenfoot}{% +% \normalsize\slshape DRAFT \today\hfil \upshape % +% page {\thepage} of \pageref{LastPage}} % \renewcommand{\@oddfoot}{\@evenfoot} % \makeatother %\end{verbatim} @@ -463,14 +379,26 @@ and the derived files % \textquotedblleft\mbox{\textsl{DRAFT \today}\hspace{1cm}page 7 of 9}\textquotedblright\\ % % \noindent in the compiled document (cf.~the \texttt{lastpage-example} file).\\ -% If the \textsf{hyperref} package is used, the references are hyperlinked +% If the \xpackage{hyperref} package is used, the references are hyperlinked % to their aims. If these hyperlinks shall be suppressed, |\pageref*{...}| % instead of |\pageref{...}| can be used.\\ % +% The \xpackage{lastpage} package does not provide the words +% \textquotedblleft page\textquotedblright\ or \textquotedblleft of\textquotedblright{}, +% but e.\,g. the \xclass{handout} class uses \textquotedblleft of\textquotedblright\ in +% the definition of the footer. (In the \texttt{lastpage-example} also +% |\@evenfoot| is redefined, but it is not the \xpackage{lastpage} \emph{package} +% redefining this.) If you want to change \textquotedblleft page\textquotedblright\ or +% \textquotedblleft of\textquotedblright\ (e.\,g. to another language), you therefore +% have got to look in the used class/package(s)/preamble instead of in the +% \xpackage{lastpage} package.\\ +% % \section{A lot of WARNINGS\label{sec:warn}} % -% \indent (Short: try using the \textsf{pagesLTS} package instead, -% if you have room for some more |\count|ers.) +% \indent (Short: try using the \xpackage{pageslts} package instead, +% if you have room for some more |\count|ers.\footnote{To determine the number of% +% used and available counters and other registers, the \xpackage{regstats} package% +% might be helpful.}) % % \subsection{\texttt{\textbackslash AtEndDocument}\label{ssec:aed}} % @@ -485,36 +413,36 @@ and the derived files % to assume that no material will follow what they put into % |\AtEndDocument|. Therefore a message, which begins with % \texttt{AED}, is included in every usage of |\AtEndDocument|.~--\\ -% \indent (The \textsf{pagesLTS} package solves this problem by using -% |\AfterLastShipout| from Heiko Oberdiek's \textsf{atveryend} package -% for the references\\ +% \indent (The \xpackage{pageslts} package solves this problem by using +% |\AfterLastShipout| from \textsc{Heiko Oberdiek's} \xpackage{atveryend} +% package for the references\\ % |\lastpageref{VeryLastPage}| and |\lastpageref{LastPages}|.) % -% \subsection{Interaction with very old versions of the \textsf{endfloat} package\label{sec:endfloat}} +% \subsection{Interaction with very old versions of the \xpackage{endfloat} package\label{sec:endfloat}} % -% \indent The very old version~2.0 (and earlier) of the \textsf{endfloat} -% package actually redefined the |\enddocument| command, -% and so interferred drastically with the \LaTeXe\ commands which -% make use of |\AtEndDocument|. Newer versions of \textsf{endfloat} exists \linebreak +% \indent The \emph{very} old version~2.0 (and earlier) of the \xpackage{endfloat} +% package actually redefined the |\enddocument| command, and so interferred +% drastically with the \LaTeXe\ commands which make use of |\AtEndDocument|. +% Newer versions of \xpackage{endfloat} exists \linebreak % (at the time of writing this documentation: v2.4i as of 1995/10/11) % in modern documentation form, which should be available from % the same source where you received this file, see subsection~\ref{ss:Downloads}.\\ % A note is placed in the style file. % If you want your \texttt{LastPage} to label the last page of these end floats, -% you need to load \textsf{lastpage} after loading \textsf{endfloat} -% (or use \texttt{VeryLastPage} from the \textsf{pagesLTS} package instead). -% If, on the other hand, you \textit{want}\ \texttt{LastPage} to refer +% you need to load \xpackage{lastpage} after loading \xpackage{endfloat} +% (or use \texttt{VeryLastPage} from the \xpackage{pageslts} package instead). +% If, on the other hand, you \emph{want} \texttt{LastPage} to refer % to the (not so) last page, exclusive of the the floats at the end, % then load in the reverse order. Independent from the order of -% \textsf{lastpage} and \textsf{endfloat}, you will still need the +% \xpackage{lastpage} and \xpackage{endfloat}, you will still need the % modified\footnote{The \textquotedblleft new\textquotedblright\ version -% is nearly 15~years old, so it might be time to update to this -% version, \linebreak if you did not do it already.} version of \textsf{endfloat}.\\ +% is over 15~years old, so it might be time to update to this version, \linebreak +% if you did not do it already.} version of \xpackage{endfloat}.\\ % -% Other \LaTeX209\ (!) packages also seem to like to redefine -% |\enddocument|. In addition to the old \textsf{endfloat}, -% \textsf{harvard} comes to mind. All of these will need to be -% modified swiftly. \textbf{If possible, update to \LaTeXe!} +% Other \LaTeX2.09\ (!) packages also seem to like to redefine +% |\enddocument|. In addition to the old \xpackage{endfloat}, +% \xpackage{harvard} comes to mind. All of these will need to be +% modified swiftly. \textbf{If possible, update to \LaTeXe{}!} % % \subsection{Page name instead of page number} % @@ -524,7 +452,7 @@ and the derived files % \texttt{Alph} page numbering scheme and $10$ pages will give \texttt{J} instead of 10, % \texttt{Roman} page numbering scheme and $10$ pages will give \texttt{X} instead of 10, % and so on.\\ -% \indent (The \textsf{pagesLTS} package puts |\lastpageref{LastPages}| +% \indent (The \xpackage{pageslts} package puts |\lastpageref{LastPages}| % (with \textbf{s} at the end) at your disposal for remediation.) % % \subsection{Wrong last page number with more than one page numbering scheme} @@ -534,17 +462,17 @@ and the derived files % (even if \texttt{arabic} is the page numbering scheme of that page). % For example, for a document with VI+36 pages, it gives % \textquotedblleft 36\textquotedblright\ as reference to the last page. -% While this is correct, the total number of pages is 42.\\ -% \indent (The \textsf{pagesLTS} package puts |\lastpageref{LastPages}| +% While this is correct, the total number of pages is $42$.\\ +% \indent (The \xpackage{pageslts} package puts |\lastpageref{LastPages}| % (with \textbf{s} at the end) at your disposal for remediation.) % % \subsection{\texttt{\textbackslash addtocounter\{page\}\{\ldots\} and \texttt{\textbackslash setcounter\{page\}\{\ldots\}}}} % -% When the page number was manipulated by |\addtocounter{page}{...}| -% or |\setcounter{page}{...}|, -% \texttt{LastPage} does not give the total \textbf{number} of pages -% (even if \texttt{arabic} is the page numbering scheme of that page).\\ -% \indent (The \textsf{pagesLTS} package puts |\lastpageref{LastPages}| +% When the page number was manipulated by |\addtocounter{page}{...}| or +% |\setcounter{page}{...}|, \texttt{LastPage} does not give the total +% \textbf{number} of pages (even if \texttt{arabic} is the page numbering +% scheme of that page).\\ +% \indent (The \xpackage{pageslts} package puts |\lastpageref{LastPages}| % (with \textbf{s} at the end) at your disposal for remediation: % \texttt{LastPages} ignores page number manipulation.) % @@ -554,9 +482,9 @@ and the derived files % Therefore \texttt{LastPage} does not give the total \textbf{number} of pages % (even if \texttt{arabic} is the page numbering scheme of that page). % Furthermore, now two pages have the same name.\\ -% \indent (The \textsf{pagesLTS} package does not only put |\lastpageref{LastPages}| -% (with \textbf{s} at the end) at your disposal for remediation: -% \texttt{LastPages} ignores page number manipulation. +% \indent (The \xpackage{pageslts} package does not only put +% |\lastpageref{LastPages}| (with \textbf{s} at the end) at your disposal +% for remediation: \texttt{LastPages} also ignores page number manipulation. % It furthermore offers the option |pagecontinue| to continue the % page numbering, when |\pagenumbering{...}| is used.) % @@ -565,11 +493,11 @@ and the derived files % |\pageref{LastPage}| referes to the (maybe not so) last page of the last % page numbering scheme. References to the respective last page of the other % page numbering schemes are not provided.\\ -% \indent (The \textsf{pagesLTS} package does this with labels \texttt{pagesLTS.}, -% where \texttt{} is e.\,g. arabic, roman, Roman, alph, or Alph.\linebreak -% For fnsymbol please use \texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -% instead of\\ -% \texttt{\textbackslash pageref\{pagesLTS.fnsymbol\}}.) +% \indent (The \xpackage{pageslts} package does this with labels +% \texttt{pagesLTS.}, where \texttt{} is +% e.\,g. arabic, roman, Roman, alph, or Alph.\linebreak +% For fnsymbol please use |\lastpageref{pagesLTS.fnsymbol}| instead of\\ +% |\pageref{pagesLTS.fnsymbol}|.) % % \subsection{Current page} % @@ -579,35 +507,34 @@ and the derived files % page numbering scheme, |\addtocounter{page}{...}|, or |\setcounter{page}{...}|, % and it will not be an arabic number at all, % if the current page numbering scheme is not arabic.\\ -% \indent (The \textsf{pagesLTS} package provides the command -% \texttt{\textbackslash theCurrentPage} and for the current -% number of pages in the current page numbering scheme\\ -% \texttt{\textbackslash theCurrentPageLocal}.) +% \indent (The \xpackage{pageslts} package provides the command +% |\theCurrentPage| and for the current number of pages in the current +% page numbering scheme\\ +% |\theCurrentPageLocal|.) % % \subsection{First page} % -% There is no special label at the first page.\\ +% There is no special label at the first page. % (This is the \textbf{last}\textsf{page} package, after all.)\\ -% \indent (The \textsf{pagesLTS} package creates a label \texttt{pagesLTS.0} +% \indent (The \xpackage{pageslts} package creates a label \texttt{pagesLTS.0} % at the first page of the document.) % -% \subsection{Using the \textsf{fnsymbol} page numbering scheme\label{ss:fnsymbol}} +% \subsection{Using the \xpackage{fnsymbol} page numbering scheme\label{ss:fnsymbol}} % -% \indent Using the \texttt{fnsymbol} page numbering scheme can result in -% problems -- big ones!\\ +% \indent Using the \texttt{fnsymbol} page numbering scheme can result in problems!\\ % When the page, where |\pageref{lastpage}| points at, is in \texttt{fnsymbol} -% page numbering scheme, this package will probably skrew up -- -% and quite totally for that, especially when used together with the -% \textsf{hyperref} package (at least \textsf{hyperref} v6.80x as of 2010/04/17). -% Really! Sorry. So, you have been warned!\\ -% \indent (The \textsf{pagesLTS} package with |\lastpageref{lastpage}| and +% 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 +% 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.) % % \subsection{Page counter overflow\label{ss:overflow}} % % \indent \textquotedblleft The ranges of supported counter values are more or less -% restricted. Only \cs{arabic} can be used with any counter -% value \TeX\ supports. +% restricted. Only \cs{arabic} can be used with any counter value \TeX\ supports. % \begin{quote} % \catcode`\|=12 % % \begin{tabular}{@{}l|l|l|l@{}} @@ -626,24 +553,24 @@ and the derived files % \end{tabular}\\[1ex] % \texttt{MAX} = \texttt{2147483647} % \end{quote} -% \textquotedblright\ (Heiko Oberdiek: -% The \textsf{alphalph} package, 2010/04/18, v2.3, first table, p.~2).\\ +% \textquotedblright\ (\textsc{Heiko Oberdiek}: +% The \xpackage{alphalph} package, 2010/04/18, v2.3, first table, p.~2).\\ % % \noindent When \textit{any} page is out of that range, there will be a counter overflow.\\ -% \indent (\textsf{lastpage} probably is not the right package to be asked -% to correct this anyway, but the \textsf{pagesLTS} package +% \indent (\xpackage{lastpage} probably is not the right package to be asked +% to correct this anyway, but the \xpackage{pageslts} package % (with appropriate options) can do this.)\\ % %\subsection{Other packages manipulating \texttt{\textbackslash lastpage@putlabel}} % -% The \textsf{hyperref} package redefines the |\lastpage@putlabel| command, -% and the \textsf{revtex4} class redefines the |\lastpage@putlabel| command, -% and the \textsf{hyperref} package redefines the |\lastpage@putlabel| command, -% if the \textsf{revtex4} class is used, and the \textsf{pagesLTS} +% 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} % \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, -% i.\,e. \textsf{lastpage}) would do the job right, all others packages would +% i.\,e. \xpackage{lastpage}) would do the job right, all others packages would % check for the version of that package, and if an old version is found, % an error (or at least a warning) message about the use of an outdated % package is given, and \textit{then} as @@ -652,28 +579,27 @@ and the derived files % Therefore here none of the definitions or commands of the other packages % is altered, but |\lastpage@putlabel| was replaced by |\lastpage@putl@bel|. % Because |\lastpage@putlabel| is no longer called, now there should not be any -% double definitions of the \texttt{lastpage} label. +% double definitions of the \texttt{lastpage} label.\\ % -% \newpage +% \pagebreak % % \section{Alternatives\label{sec:Alternatives}} % -% 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:\\ +% 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:\\ % % \DescribeMacro{lastpage209.sty} % \begin{description} -% \item[-] If \LaTeX2.09\ is still used, and if you are unable -% to switch to \LaTeXe, the \LaTeX2.09\ compatible -% \textsf{lastpage209.sty} can be used, which is defined as follows:\\ -% (It is also generated automatically from lastpage.dtx when compiling it.) +% \item[-] If \LaTeX2.09\ is still used, and if you are unable to switch to +% \LaTeXe{}, the \LaTeX2.09\ compatible \xpackage{lastpage209.sty} can be used, +% which is defined as follows:\\ +% (It is also generated automatically from \xfile{lastpage.dtx} when compiling it.) % % \begin{macrocode} %<*lastpage209> - % FOR LaTeX 2.09 ONLY - FOR LaTeX 2e USE lastpage.sty OR pagesLTS.sty! + % FOR LaTeX 2.09 ONLY - FOR LaTeX 2e USE lastpage.sty OR pageslts.sty! % This is lastpage209.sty invented by Jeffrey P. Goldberg % (jeffrey+news at goldmark dot org), maintained by % H.-Martin M\"{u}ench (Martin dot Muench at Uni-Bonn dot de). @@ -687,37 +613,31 @@ and the derived files % % \end{macrocode} % -% (after Piet van Oostrum: Page layout in \LaTeX, March~2, 2004, +% (after \textsc{Piet van Oostrum}: Page layout in \LaTeX{}, March~2, 2004, % section~16; fancyhdr.pdf). Because |\enddocument| is redefined, -% similar problems as with the old version of the \textsf{endfloat} +% similar problems as with the old version of the \xpackage{endfloat} % package (see subsection~\ref{sec:endfloat}) will arise.\\ -% \textbf{If possible, update to \LaTeXe}\ (and maybe to the \textsf{pagesLTS} package)\textbf{!} +% \textbf{If possible, update to \LaTeXe{}}\ (and maybe to the +% \xpackage{pageslts} package)\textbf{!} % \end{description} % -% \DescribeMacro{pagesLTS} +% \DescribeMacro{pageslts} % \begin{description} -% \item[-] The \textsf{pagesLTS} package first started as a revision of the \textsf{lastpage} -% package, but it became obviouse that a replacement was needed. For backward +% \item[-] The \xpackage{pageslts} package first started as a revision of this +% \xpackage{lastpage} package, but it became obviouse that a replacement was +% needed to accomplish what the \xpackage{pageslts} package does. For backward % compatibility, a label named |LastPage| is provided. % Thus |\usepackage{lastpage}| can be replaced by\\ % |\usepackage[pagecontinue=false,alphMult=0,AlphMulti=0,|\\ -% | fnsymbolmult=false,romanMult=false,RomanMulti=false]{pagesLTS}|,\\ -% if the behaviour of the \textsf{lastpage} package should be simulated. +% | fnsymbolmult=false,romanMult=false,RomanMulti=false]{pageslts}|,\\ +% if the behaviour of the \xpackage{lastpage} package should be simulated. % The default options are\\ % |\usepackage[pagecontinue=true,alphMult=ab,AlphMulti=AB,|\\ -% |fnsymbolmult=true,romanMult=true,RomanMulti=true]{pagesLTS}|. -% Using the \textsf{lastpage} before the \textsf{pagesLTS} before the -% \textsf{hyperref [2010/06/18] v6.81g}\ package -% results in multiply definitions of the |LastPage| label. -% While the \textsf{pagesLTS} package cancels the command |\lastpage@putlabel| -% from the \textsf{lastpage} package (because it does this itself, and better), -% \textsf{hyperref} redefines |\lastpage@putlabel| and thereby reintroduces it again -% (\textsf{hyperref} should probably check for the version of this \textsf{lastpage} -% package and/or whether the \textsf{pagesLTS} package was also loaded.)\\ -% Benefits of \textsf{pagesLTS} package (with appropriate options) are: +% |fnsymbolmult=true,romanMult=true,RomanMulti=true]{pageslts}|.\\ +% Benefits of \xpackage{pageslts} package (with appropriate options) are: % \begin{description} -% \item[+] Labels \texttt{LastPage} (\texttt{\textbackslash AtEndDocument}) and\\ -% \texttt{VeryLastPage} (\texttt{\textbackslash AfterLastShipout}),\\ +% \item[+] Labels \texttt{LastPage} (|\AtEndDocument|) and\\ +% \texttt{VeryLastPage} (|\AfterLastShipout|),\\ % allowing the user to refer to the (very) last page of a document. % \item[+] For example, when more than one page numbering scheme is used, % the label \texttt{LastPage}\textbf{s} gives the total \textit{number} of pages. @@ -726,34 +646,27 @@ and the derived files % \texttt{pagesLTS.} is % placed, where \texttt{} is e.\,g. % arabic, roman, Roman, alph, or Alph. For fnsymbol -% please use \texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -% instead of\\ -% \texttt{\textbackslash pageref\{pagesLTS.fnsymbol\}}. -% \item[+] When the same numbering scheme is used twice, -% the page numbers are either reset to one or continued -% automatically, depending on the option given when the package -% is called. -% \item[+] The command \texttt{\textbackslash theCurrentPage} -% prints the current total/absolute page number -- in contrast to -% \texttt{\textbackslash thepage}, which gives only the page +% please use |\lastpageref{pagesLTS.fnsymbol}| instead of\\ +% |\pageref{pagesLTS.fnsymbol}|. +% \item[+] When the same numbering scheme is used twice, the page numbers +% are either reset to one or continued automatically, depending on the option +% given when the package is called. +% \item[+] The command |\theCurrentPage| prints the current total/absolute +% page number -- in contrast to |\thepage|, which gives only the page % \textit{name} in the current page numbering scheme. -% \texttt{\textbackslash theCurrentPageLocal} gives the current -% number of pages in the current page numbering scheme. -% \texttt{\textbackslash thepage} and -% \texttt{\textbackslash theCurrentPageLocal} are different e.\,g. -% when \texttt{\textbackslash addtocounter\{page\}\{\ldots \}} or -% \texttt{\textbackslash setcounter\{page\}\{\ldots \}} were used. +% |\theCurrentPageLocal| gives the current number of pages in the current +% page numbering scheme. |\thepage| and |\theCurrentPageLocal| are different +% e.\,g. when |\addtocounter{page}{...}| or |\setcounter{page}{...}| were used. % \item[+] At the first page of the document a label \texttt{pagesLTS.0} is created. -% \item[+] The \textsf{alphalph} package is supported, i.\,e. -% page numbers alph or Alph $>26$ and fnyambol $>9$ -% can be used (with according options set). Even zero -% and negative page numbers can be used with \texttt{arabic}, -% \texttt{alph}, \texttt{Alph}, \texttt{roman}, \texttt{Roman}, -% and \texttt{fnsymbol} page numbering (with \textsf{alphalph} package -% and according options). -% \item[+] It is checked whether a (very) old \textsf{endfloat} package +% \item[+] The \xpackage{alphalph} package is supported, i.\,e. +% page numbers alph or Alph $>26$ and fnyambol $>9$ can be used +% (with according options set). Even zero and negative page numbers can be used +% with \texttt{arabic}, \texttt{alph}, \texttt{Alph}, \texttt{roman}, \texttt{Roman}, +% and \texttt{fnsymbol} page numbering (with \xpackage{alphalph} package and +% according options). +% \item[+] It is checked whether a (very) old \xpackage{endfloat} package % is in use. If it is, a warning or even an error message is given, -% depending on \textsf{endfloat} version. +% depending on \xpackage{endfloat} version. % \item[+] A rerun warning is given, when labels have changed. % \end{description} % Further labels are provided for special cases. @@ -761,44 +674,43 @@ and the derived files % % \DescribeMacro{totpages} % \begin{description} -% \item[-] The \textsf{totpages} package provides a -% \texttt{totpages} label similar to \\ -% \texttt{LastPages} |\AtEndDocument| (instead of |\AfterLastShipout|, -% as done by \textsf{pagesLTS}). -% The \textsf{totpages} package additionally computes the number of paper sheets needed to -% (double) print the document (with one, two, three,\ldots\ pages on one sheet of paper)\\ -% (which can be achived also with the \textsf{papermas} package, an extension of the -% \textsf{pagesLTS} package, which further allows to compute the mass of that printed -% version of the document, useful e.\,g. when sending it by mail to determine the postage). +% \item[-] The \xpackage{totpages} package provides a \texttt{totpages} label similar to +% \texttt{LastPages}\\ +% |\AtEndDocument| (instead of |\AfterLastShipout|, as done by \xpackage{pageslts}). +% The \xpackage{totpages} package additionally computes the number of paper sheets +% needed to (double) print the document (with one, two, three,\ldots{} pages on +% one sheet of paper) (which can be achived also with the \xpackage{papermas} package, +% an extension of the \xpackage{pageslts} package, which further allows to compute +% the mass of that printed version of the document, useful e.\,g. when sending it +% by mail to determine the postage). % \end{description} % % \DescribeMacro{nofm.sty} % \begin{description} -% \item[-] \textquotedblleft There is a package \textsf{nofm.sty} -% available, but some versions of it are defective, and most -% don't work with \textsf{fancyhdr} because they take over the -% complete page layout.\textquotedblright (Piet van Oostrum: -% Page layout in \LaTeX, March~2, 2004, section~16; fancyhdr.pdf)\\ -% \textsf{nofm} as of 1991/02/25 (without version number), available at\\ +% \item[-] \textquotedblleft There is a package \xpackage{nofm.sty} available, +% but some versions of it are defective, and most don't work with \xpackage{fancyhdr} +% because they take over the complete page layout.\textquotedblright (\textsc{Piet van % +% Oostrum}: Page layout in \LaTeX{}, March~2, 2004, section~16; fancyhdr.pdf)\\ +% \xpackage{nofm} as of 1991/02/25 (without version number), available at\\ % \url{ftp://tug.ctan.org/pub/tex-archive/obsolete/macros/latex209/contrib/misc/nofm.sty},\\ -% does not work with e.\,g. \textsf{hyperref}, redefines |\enddocument| +% does not work with e.\,g. \xpackage{hyperref}, redefines |\enddocument| % as well as |\@oddhead|, |\@evenhead|, |\@oddfoot|, and |\@evenfoot|.\\ % If you know the (\CTAN{}) location of a \textbf{working}~(!) version, -% please send me an e-mail, thanks! +% please send an e-mail to the \xpackage{lastpage} maintainer, thanks! % \end{description} % % \DescribeMacro{count1to} % \begin{description} -% \item[-] You may want to have a look at the \textsf{count1to} package. +% \item[-] You may want to have a look at the \xpackage{count1to} package. % \end{description} % % \DescribeMacro{zref} % \begin{description} -% \item[-] The \textsf{zref} package of Heiko Oberdiek requires -% \eTeX. \textsf{lastpage} does not require \eTeX, but if you -% already have \eTeX, you may have a look at the extensive -% \textsf{zref} package, whether it suits your needs better -% (or additionally or whatsoever). +% \item[-] The \xpackage{zref} package of \textsc{Heiko Oberdiek} requires +% $\varepsilon$-\TeX{}. \xpackage{lastpage} does not require $\varepsilon$-\TeX{}, +% but if you already have $\varepsilon$-\TeX{}, you may have a look at the extensive +% \xpackage{zref} package, whether it suits your needs better (or additionally or +% whatsoever). % \end{description} % % \bigskip @@ -806,14 +718,13 @@ and the derived files % \noindent (You programmed or found another alternative, % which is available at \CTAN{}?\\ % OK, send an e-mail to me with the name, location at \CTAN{}, -% and a short notice, and I will probably include it in -% the list above.)\\ +% and a short notice, and I will probably include it in the list above.)\\ % % \smallskip % % \noindent About how to get those packages, please see subsection~\ref{ss:Downloads}. % -% \newpage +% \pagebreak % % \section{Example} % @@ -821,9 +732,10 @@ and the derived files %<*example> \documentclass[british]{article} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\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}[2010/12/16]% v6.81z +\usepackage{hyperref}[2011/04/17]% v6.82g \hypersetup{% extension=pdf,% plainpages=false,% @@ -838,14 +750,14 @@ and the derived files pdfstartview=Fit,% pdfpagelayout=SinglePage% } -%% If you disable hyperref, you must also remove the one \href in this example. -\usepackage{lastpage}[2011/02/01]% v1.2g +\usepackage{lastpage}[2011/08/08]% v1.2i \makeatletter -\renewcommand{\@evenfoot}% - {\normalsize\slshape \today\hfil \upshape page {\thepage} of \pageref{LastPage}} +\renewcommand{\@evenfoot}{% + \normalsize\slshape \today\hfil \upshape page \thepage% + \ of \pageref{LastPage}} \renewcommand{\@oddfoot}{\@evenfoot} -\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \makeatother +\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \listfiles \begin{document} \pagenumbering{Roman} @@ -854,7 +766,7 @@ and the derived files \markboth{Example for lastpage}{Example for lastpage} This example demonstrates the use of package\newline -\textsf{lastpage}, v1.2g as of 2011/02/01 (HMM; JPG).\newline +\textsf{lastpage}, v1.2i as of 2011/08/08 (HMM; JPG).\newline The package takes no options.\newline For more details please see the documentation!\newline @@ -863,13 +775,12 @@ For more details please see the documentation!\newline package (or remove the package call from the preamble of this document).\newline - \textbf{Hyperlinks or not:} If the \textsf{hyperref} package is loaded, the references are also hyperlinked:\newline \smallskip Last page's name (LastPage): \pageref{LastPage}\newline \noindent If the \textsf{hyperref} package is loaded, but the hyperlinks -of the references shall be suppressed, \texttt{\textbackslash pageref*\{...\}} +of the references shall be suppressed, \verb|\pageref*{...}| can be used:\newline \smallskip Last page's name (LastPage): \pageref*{LastPage}\newline @@ -881,15 +792,21 @@ usage is to the benefit of the trademark owner.\newline \textbf{Tip}: Use \textit{logical page numbers} for the display of the pdf!\newline -(In Adobe Reader X (10.0.0): \underline{E}dit $>$ +(In Adobe Reader X (10.1.0): \underline{E}dit $>$ Prefere\underline{n}ces (Ctrl+k) $>$ Page Display $>$ Page Content and Information $>$ Use logical page \nolinebreak{\underline{n}umbers.)}\newline If you are more ambitiouse in respect to your aims with this package, -you might want to have a look at the \textsf{pagesLTS} package\newline -(\href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagesLTS/}{% -CTAN:/macros/latex/contrib/pagesLTS/}). +you might want to have a look at the \textsf{pageslts} package\newline +\makeatletter + \@ifundefined{Hy@Warning}{% hyperref not loaded + \verb|http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/|). + }{% hyperref loaded + \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/}{% + CTAN:/macros/latex/contrib/pageslts/}). + }% +\makeatother \bigskip @@ -901,19 +818,19 @@ I do NOT think, that it is necessary to print THIS file, really\newline \bigskip -\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline +\noindent The page (\verb|\thepage|): \thepage \newline \noindent Last page's name (LastPage): \pageref{LastPage} \newpage -\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline +\noindent The page (\verb|\thepage|): \thepage \newline \noindent Last page's name (LastPage): \pageref{LastPage} \newpage -\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline +\noindent The page (\verb|\thepage|): \thepage \newline \noindent Last page's name (LastPage): \pageref{LastPage} @@ -921,7 +838,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline \section*{The End} -\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline +\noindent The page (\verb|\thepage|): \thepage \newline \noindent Last page's name (LastPage): \pageref{LastPage} \end{document} @@ -930,8 +847,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline % % \newpage % -% \StopEventually{ -% } +% \StopEventually{} % % \section{The implementation} % @@ -943,17 +859,17 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \end{macrocode} % % \begin{macrocode} -\NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesPackage{lastpage}[2011/02/01 v1.2g +\NeedsTeXFormat{LaTeX2e}[2009/09/24] +\ProvidesPackage{lastpage}[2011/08/08 v1.2i Refers to last page's name (HMM; JPG)]% % \end{macrocode} % -% A short description of the \textsf{lastpage} package: +% A short description of the \xpackage{lastpage} package: % % \begin{macrocode} %% Allows for things like -%% Page \thepage of \pageref{LastPage} +%% Page \thepage\ of \pageref{LastPage} %% to get %% 'Page 7 of 9'. % \end{macrocode} @@ -961,21 +877,25 @@ I do NOT think, that it is necessary to print THIS file, really\newline % A last information for the user(s): % % \begin{macrocode} -%% For LaTeX 2.09 use lastpage209.sty. - -%% For LaTeX 2e maybe consider upgrading to the pagesLTS package. +%% For LaTeX 2.09 use lastpage209.sty. +%% For LaTeX 2e maybe consider upgrading to the pageslts package. +%% lastpage may work with earlier versions of LaTeX2e, +%% but this was not tested. Please consider updating your LaTeX +%% contribution to the most recent version (if it is not already +%% the most recent version). % \end{macrocode} % -% The very old version~2.0 (and earlier) of the \textsf{endfloat} +% The very old version~2.0 (and earlier) of the \xpackage{endfloat} % package actually redefined the |\enddocument| command, % and so interferred drastically with the \LaTeXe\ commands which -% make use of |\AtEndDocument|. Newer versions of \textsf{endfloat} +% make use of |\AtEndDocument|. Newer versions of \xpackage{endfloat} % exists (at the time of writing this documentation: v2.4i as of 1995/10/11) % in modern documentation form, which are available from \CTAN{} % (see subsection~\ref{ss:Downloads}). -% A~note is placed here. (The \textsf{pagesLTS} package even checks whether a (very) old -% \textsf{endfloat} package is in use. If it is, a warning or even -% an error message is given, depending on \textsf{endfloat} version.) +% A~note is placed here. (The \xpackage{pageslts} package even checks whether +% a (very) old \xpackage{endfloat} package is in use. If it is, a warning or +% even an error message is given, depending on \xpackage{endfloat} version.) % % \begin{macrocode} %% The recent version of the endfloat package is v2.4i as of 1995/10/11. @@ -986,6 +906,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \end{macrocode} % % There are no options to be introduced.\\ +% % \indent For comparisons, \textquotedblleft one\textquotedblright\ is defined % (|\@ne| does not work for this). % @@ -993,66 +914,75 @@ I do NOT think, that it is necessary to print THIS file, really\newline \def\lastpage@one{1} % \end{macrocode} % -% We define |\lastpage@hyper| and |\lastpage@LTS| to be \textquotedblleft \texttt{0}\textquotedblright . +% We define |\lastpage@hyper| and |\lastpage@LTS| to be +% \textquotedblleft \texttt{0}\textquotedblright{}. % % \begin{macrocode} \gdef\lastpage@hyper{0} \gdef\lastpage@LTS{0} % \end{macrocode} % -% We define |\lastpage@firstpage| to be \textquotedblleft \texttt{1}\textquotedblright . +% We define |\lastpage@firstpage| to be \textquotedblleft \texttt{1}\textquotedblright{}. % % \begin{macrocode} \def\lastpage@firstpage{1} + % \end{macrocode} % +% \pagebreak +% % \begin{macro}{\AtBeginDocument} -% \indent |\AtBeginDocument| it is checked whether the \textsf{hyperref} package is loaded.\\ +% \indent |\AtBeginDocument| it is checked whether the \xpackage{hyperref} package +% is 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}). % % \begin{macrocode} -\AtBeginDocument{ +\AtBeginDocument{% \@ifpackageloaded{hyperref}{\gdef\lastpage@hyper{1}}{}% - \@ifpackageloaded{pagesLTS}{% - \PackageWarning{lastpage}{Package pagesLTS found.\MessageBreak% - Therefore the lastpage package is no longer necessary.\MessageBreak% + \@ifpackageloaded{pageslts}{% + \PackageWarning{lastpage}{Package pageslts found.\MessageBreak% + Therefore the lastpage package is no longer\MessageBreak% + necessary.% }% \gdef\lastpage@LTS{1}% - \@ifpackagelater{pagesLTS}{2011/01/31}{% 2011/02/01 v1.1m - }{% - \PackageWarning{lastpage}{Outdated version of pagesLTS package found.\MessageBreak% - For a recent version, see e.g. at\MessageBreak% - http://www.ctan.org/tex-archive/ \MessageBreak% - macros/latex/contrib/pagesLTS/ \MessageBreak% - or\MessageBreak% - http://www.ctan.org/tex-archive/ \MessageBreak% - install/macros/latex/contrib/pagesLTS.tds.zip\MessageBreak% - !% - }% - }% - }{% - \PackageInfo{lastpage}{Please have a look at the pagesLTS package at\MessageBreak% + }{\PackageInfo{lastpage}{% + Please have a look at the pageslts package at\MessageBreak% + http://www.ctan.org/tex-archive/ \MessageBreak% + macros/latex/contrib/pageslts/ \MessageBreak% + or\MessageBreak% + http://www.ctan.org/tex-archive/ \MessageBreak% + install/macros/latex/contrib/pageslts.tds.zip\MessageBreak% + !}% + }% + \@ifpackageloaded{pagesLTS}{% + \PackageWarning{lastpage}{% + Outdated pagesLTS package found.\MessageBreak% + Please replace by a recent version of\MessageBreak% + pageslts package, see e.g. at\MessageBreak% http://www.ctan.org/tex-archive/ \MessageBreak% - macros/latex/contrib/pagesLTS/ \MessageBreak% + macros/latex/contrib/pageslts/ \MessageBreak% or\MessageBreak% http://www.ctan.org/tex-archive/ \MessageBreak% - install/macros/latex/contrib/pagesLTS.tds.zip\MessageBreak% - !% - }% - }% + install/macros/latex/contrib/pageslts.tds.zip\MessageBreak% + !\MessageBreak% + With pagesLTS as well as pageslts package\MessageBreak% + the lastpage package is no longer necessary.\MessageBreak% + }% + \gdef\lastpage@LTS{1}% + }{}% % \end{macrocode} % % |\lastpage@putlabel|, used by older versions of this package, -% is redefined e.\,g. by \textsf{revtex} and \textsf{hyperref}. -% While now |\lastpage@putl@bel| is used instead, \textsf{revtex} -% or \textsf{hyperref} could also define a lable \texttt{LastPage}, +% is redefined e.\,g. by \xpackage{revtex} and \xpackage{hyperref}. +% While now |\lastpage@putl@bel| is used instead, \xpackage{revtex} +% or \xpackage{hyperref} could also define a lable \texttt{LastPage}, % which then would be multiply defined. (Which is no big issue, % if it is associated with the same page.) Therefore we define % % \begin{macrocode} - \gdef\lastpage@putlabel{\relax} + \gdef\lastpage@putlabel{\relax}% % \end{macrocode} % % Because |\lastpage@putlabel| might be (re)defined later, depending on the order @@ -1064,43 +994,44 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \end{macrocode} % \end{macro} % +% \pagebreak +% % \begin{macro}{\lastpage@putl@bel} -% \indent This command (in older package versions: definition) does the writing of the label: +% \indent This command does the writing of the label: % % \begin{macrocode} -\newcommand{\lastpage@putl@bel}% +\newcommand{\lastpage@putl@bel}{% % \end{macrocode} % -% |\AtBeginDocument| it is checked whether the \textsf{hyperref} package is loaded,\\ +% |\AtBeginDocument| it is checked whether the \xpackage{hyperref} package is loaded,\\ % |\@ifpackageloaded{hyperref}{\gdef\lastpage@hyper{1}}{}|.\\ % |\@ifpackageloaded| cannot be used later than |\AtBeginDocument|.\\ -% User Sebastian Bank found and reported (Thanks!) a~case, when this check is not +% User \textsc{Sebastian Bank} found and reported (Thanks!) a~case, when this check is not % sufficient. Using a class with\\ % |\usepackage{lastpage}|\\ % |\AtBeginDocument{\usepackage{hyperref}}|\\ -% leads to failed detection of the \textsf{hyperref} package, because -% |\AtBeginDocument| \textit{first} the check for \textsf{hyperref} is performed, -% and \textit{then} \textsf{hyperref} is loaded. As mentioned above, +% leads to failed detection of the \xpackage{hyperref} package, because +% |\AtBeginDocument| \textit{first} the check for \xpackage{hyperref} is performed, +% and \textit{then} \xpackage{hyperref} is loaded. As mentioned above, % |\@ifpackageloaded| cannot be used later, so here we do not check for the -% \textsf{hyperref} package again, but for its |\Hy@Warning| command. -% In version~1.2c of the \textsf{lastpage} package, it was checked for -% the |\hyperref| command, but as it turned out, \textsf{tcilatex} \textit{is} +% \xpackage{hyperref} package again, but for its |\Hy@Warning| command. +% In version~1.2c of the \xpackage{lastpage} package, it was checked for +% the |\hyperref| command, but as it turned out, \xpackage{tcilatex} \textit{is} % defining that. If some other package or user is defining |\Hy@Warning|, -% \textsf{lastpage} will falsely assume, that \textsf{hyperref} has been loaded, +% \xpackage{lastpage} will falsely assume, that \xpackage{hyperref} has been loaded, % but in my humble opinion, defining |\Hy@Warning| does not make sense and -% is bad style (except definition by the \textsf{hyperref} package itself, +% is bad style (except definition by the \xpackage{hyperref} package itself, % of course). % % \begin{macrocode} - {\@ifundefined{Hy@Warning}{% hyperref not loaded - }{% hyperref loaded - \gdef\lastpage@hyper{1}% + \@ifundefined{Hy@Warning}{% hyperref not loaded + }{\gdef\lastpage@hyper{1}% hyperref loaded }% % \end{macrocode} % -% If the \textsf{pagesLTS} package is used, this \textsf{lastpage} package is not needed at all. -% The \texttt{LastPage} label would even be defined twice. Thus, if \textsf{pagesLTS} is used, -% here nothing is done: +% If the \xpackage{pageslts} package is used, this \xpackage{lastpage} package is +% not needed at all. The \xpackage{LastPage} label would even be defined twice. +% Thus, if \xpackage{pageslts} is used, here nothing is done: % % \begin{macrocode} \ifx\lastpage@LTS\lastpage@one% @@ -1108,7 +1039,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \end{macrocode} % % Otherwise the label is set:\\ -% We have got to distinguish whether \textsf{hyperref} has been loaded or not: +% We have got to distinguish whether \xpackage{hyperref} has been loaded or not: % % \begin{macrocode} \ifx\lastpage@hyper\lastpage@one% @@ -1116,7 +1047,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline \else% % \end{macrocode} % -% When \textsf{hyperref} has not been loaded, we just write the +% When \xpackage{hyperref} has not been loaded, we just write the % simple label into the \xfile{aux} file: % % \begin{macrocode} @@ -1127,18 +1058,19 @@ I do NOT think, that it is necessary to print THIS file, really\newline \endgroup \fi% \fi% - } + } + % \end{macrocode} % \end{macro} % % \begin{macro}{\lastpage@putlabelhyper}% -% \indent When \textsf{hyperref} has been loaded, the label is set with the\\ -% |\lastpage@putlabelhyper| command. If the \textsf{hyperref} package is used, +% \indent When \xpackage{hyperref} has been loaded, the label is set with the +% |\lastpage@putlabelhyper| command. If the \xpackage{hyperref} package is used, % but pageanchors are disabled, the hyperlinking will not work. % % \begin{macrocode} -\newcommand{\lastpage@putlabelhyper}% - {\ifHy@pageanchor +\newcommand{\lastpage@putlabelhyper}{% + \ifHy@pageanchor% \else% \PackageError{lastpage}{hyperref option pageanchor disabled}{% The \string\pageref{LastPage} link doesn't work\MessageBreak% @@ -1147,10 +1079,11 @@ I do NOT think, that it is necessary to print THIS file, really\newline \fi% % \end{macrocode} % -% Since the page has been put out, we are on the page \textit{after} that page.\\ +% Since the page has been put out, we are on the page \textit{after} that page. % We therefore subtract one from the page counter. (For the compiler, -% this is equal to |\advance\c@page\m@ne|, but for human readers it is probably -% easier to understand.) +% this is equal to |\advance\c@page\m@ne|, but for human readers of the code +% it is probably easier to understand.) +% % \begin{macrocode} \begingroup% \addtocounter{page}{-1}% @@ -1158,7 +1091,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline % % Simply using |\label| for \texttt{LastPage} would not work, % because labels wait for the output routines to work, and there -% may not be any more invocations of the output routines. To force +% may be no more invocations of the output routines. To force % the write out, we need to do an |\immediate| write into the \xfile{aux} file. % % \begin{macrocode} @@ -1173,7 +1106,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline \else \Hy@unicodefalse %% Code not from hyperref package: %% -%% The following lines are taken from the pagesLTS package, %% +%% The following lines are taken from the pageslts package, %% %% which in turn got them from the hyperref package and %% %% modified them. %% %% Without the modification, after the first shipout "PD1" %% @@ -1182,12 +1115,12 @@ I do NOT think, that it is necessary to print THIS file, really\newline \ifnum \value{page}=1% % \end{macrocode} % -% We do not count the pages ourselfes, and so they could have been changes by +% We do not count the pages ourselfes, and so they could have been changed by % e.\,g. |\pagenumbering{...}|, |\addtocounter{page}{...}|,\\ % |\setcounter{page}{...}|. Thus the page might have the number one -% while not beeing the first page at all. Using the \textsf{everyshi} +% while not beeing the first page at all. Using the \xpackage{everyshi} % package would help, but this package should not require other packages. -% \textsf{pagesLTS} package does a better handling, but requires +% The \xpackage{pageslts} package does a better handling, but requires % some other packages.\\ % We will make a mistake here at most once: % @@ -1200,12 +1133,12 @@ I do NOT think, that it is necessary to print THIS file, really\newline \pdfstringdef\Hy@temp{\thepage}% %% End of code from the hyperref package. %% \fi% -%% The pagesLTS package would even check for fnsymbol page %% +%% The pageslts package would even check for fnsymbol page %% %% numbering scheme and adapt the code correspondingly. %% \else% %% Code from hyperref package again: %% \pdfstringdef\Hy@temp{\thepage}% -%% Code from pagesLTS package again: %% +%% Code from pageslts package again: %% \fi% %% Code from hyperref package again: %% \fi @@ -1227,14 +1160,14 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \begin{macrocode} \addtocounter{page}{+1}% \endgroup - } + } % \end{macrocode} % \end{macro} % % \begin{macro}{\AtEndDocument} -% \indent |\AtEndDocument| we again (re)define |\lastpage@putlabel| to do -% nothing. +% \indent |\AtEndDocument| we again (re)define |\lastpage@putlabel| +% to do nothing. % % \begin{macrocode} \AtEndDocument{% @@ -1242,7 +1175,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \end{macrocode} % % It is checked whether writing to files is allowed -% (otherwise, only an error message is issued and nothing done). +% (otherwise, only an error message is issued and nothing is done). % % \begin{macrocode} \if@filesw% @@ -1252,7 +1185,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline % are done (see subsection~\ref{ssec:aed}). % % \begin{macrocode} - \message{AED: lastpage setting LastPage ^^J}% + \message{^^JAED: lastpage setting LastPage^^J}% % \end{macrocode} % % After this we issue a |\clearpage| to put out all floats, @@ -1262,11 +1195,12 @@ 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, only an error message is issued +% and nothing is done. % % \begin{macrocode} \else% - \PackageError{lastpage}{No auxiliary file allowed.}% + \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% @@ -1291,97 +1225,104 @@ I do NOT think, that it is necessary to print THIS file, really\newline % % \subsection{Downloads\label{ss:Downloads}} % -% Everything should be available on \CTAN{}, \url{http://www.ctan.org/tex-archive/}, +% Everything is available at \CTAN{}, \url{http://www.ctan.org/tex-archive/}, % but may need additional packages themselves.\\ % % \DescribeMacro{lastpage.dtx} % For unpacking the |lastpage.dtx| file and constructing the documentation it is required: % \begin{description} -% \item[-] \TeX Format \LaTeXe, 1994/06/01, v2$\varepsilon $: \CTAN{} +% \item[-] \TeX Format \LaTeXe{}: \url{http://www.CTAN.org/} % -% \item[-] document class \textsf{ltxdoc}, 2007/11/11, v2.0u,\\ +% \item[-] document class \xpackage{ltxdoc}, 2007/11/11, v2.0u,\\ % \CTAN{macros/latex/base/ltxdoc.dtx} % -% \item[-] package \textsf{holtxdoc}, 2010/04/24, v0.19,\\ +% \item[-] package \xpackage{holtxdoc}, 2011/02/04, v0.21,\\ % \CTAN{macros/latex/contrib/oberdiek/holtxdoc.dtx} % -% \item[-] package \textsf{hypdoc}, 2010/03/26, v1.9,\\ +% \item[-] package \xpackage{hypdoc}, 2010/03/26, v1.9,\\ % \CTAN{macros/latex/contrib/oberdiek/hypdoc.dtx} % \end{description} % % \DescribeMacro{lastpage.sty} -% The |lastpage.sty| for \LaTeXe\ (i.\,e. all documents using -% the \textsf{lastpage} package) requires: +% The |lastpage.sty| for \LaTeXe\ (i.\,e. each document using +% the \xpackage{lastpage} package) requires: % \begin{description} -% \item[-] \TeX Format \LaTeXe, 1994/06/01, v2$\varepsilon $, \CTAN{} +% \item[-] \TeX Format \LaTeXe{}, \url{http://www.CTAN.org/} % -% \item[-] package \textsf{lastpage}, 2011/02/01, v1.2g,\\ +% \item[-] package \xpackage{lastpage}, 2011/08/08, v1.2i,\\ % \CTAN{macros/latex/contrib/lastpage/lastpage.dtx} % \end{description} % and can use % \begin{description} -% \item[-] package \textsf{hyperref}, 2010/12/16,~v6.81z,\\ +% \item[-] package \xpackage{hyperref}, 2011/04/17, v6.82g,\\ % \CTAN{macros/latex/contrib/hyperref.zip} % \end{description} % % \DescribeMacro{lastpage209.sty} -% The |lastpage209.sty| for \LaTeX209\ (i.\,e. all documents using -% the \textsf{lastpage209} package) requires: +% The |lastpage209.sty| for \LaTeX2.09\ (i.\,e. each document using +% the \xpackage{lastpage209} package) requires: % \begin{description} -% \item[-] \TeX Format \LaTeX, v2.09 +% \item[-] \TeX Format \LaTeX{}, v2.09 % -% \item[-] package \textsf{lastpage209}, 2011/02/01, v1.2g, included in \\ +% \item[-] package \xpackage{lastpage209}, 2011/08/08, v1.2i, included in\\ % \CTAN{macros/latex/contrib/lastpage/lastpage.dtx}% % \end{description} -% and does not work with \textsf{hyperref}, which needs \LaTeX2e.\\ +% and does not work with \xpackage{hyperref}, which needs \LaTeX2e{}.\\ % % \DescribeMacro{lastpage-example.tex} -% The |lastpage-example.tex| requires the same file as all -% documents using the \textsf{lastpage} package, i.\,e. +% The \texttt{lastpage-example.tex} requires the same file as all +% documents using the \xpackage{lastpage} package, i.\,e. % \begin{description} -% \item[-] package \textsf{lastpage}, 2011/02/01, v1.2g,\\ -% \CTAN{macros/latex/contrib/pagesLTS/pagesLTS.dtx}\\ +% \item[-] package \xpackage{lastpage}, 2011/08/08, v1.2i,\\ +% \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 \textsf{lastpage} package, it can be assumed that you already +% documentation for the \xpackage{lastpage} package, it can be assumed that you already % have some version of it -- is it the current one?) % \end{description} % and additionally: % \begin{description} -% \item[-] class \textsf{article}, 2007/10/19, v1.4h, from \textsf{classes.dtx}:\\ +% \item[-] class \xpackage{article}, 2007/10/19, v1.4h, from \xpackage{classes.dtx}:\\ % \CTAN{macros/latex/base/classes.dtx} % -% \item[-] package \textsf{showkeys}, 2007/08/07, v3.15,\\ +% \item[-] package \xpackage{showkeys}, 2007/08/07, v3.15,\\ % \CTAN{macros/latex/required/tools/showkeys.dtx} % -% \item[-] package \textsf{hyperref}, 2010/12/16, v6.81z,\\ +% \item[-] package \xpackage{hyperref}, 2011/04/17, v6.82g,\\ % \CTAN{macros/latex/contrib/hyperref.zip} % \end{description} % -% \pagebreak -% % \DescribeMacro{endfloat} -% The \textsf{endfloat} package is not required, but because -% the \textsf{lastpage} package is incompatibel with very old versions -% of the \textsf{endfloat} package (see subsection~\ref{sec:endfloat}), +% The \xpackage{endfloat} package is not required, but because +% the \xpackage{lastpage} package is incompatibel with \textit{very} old versions +% of the \xpackage{endfloat} package (see subsection~\ref{sec:endfloat}), % here the recent one is listed: % \begin{description} -% \item[-] package \textsf{endfloat}, 1995/10/11, v2.4i,\\ +% \item[-] package \xpackage{endfloat}, 1995/10/11, v2.4i,\\ % \CTAN{macros/latex/contrib/endfloat/endfloat.dtx} % \end{description} % % \DescribeMacro{fancyhdr} % \DescribeMacro{nccfancyhdr} -% Neither \textsf{fancyhdr} nor \textsf{nccfancyhdr} package is required -% (older versions of the \textsf{lastpage} package used its predecessor \textsf{fancyheadings}), -% but because they were mentioned, also they are listed here: +% Neither the \xpackage{fancyhdr} nor the \xpackage{nccfancyhdr} package is required +% (older versions of the \xpackage{lastpage} package used its predecessor +% \xpackage{fancyheadings}), but because they were mentioned, also they are listed +% here: % \begin{description} -% \item[-] package \textsf{fancyhdr}, 2005/03/22, v3.2,\\ +% \item[-] package \xpackage{fancyhdr}, 2005/03/22, v3.2,\\ % \CTAN{macros/latex/contrib/fancyhdr.zip} % -% \item[-] package \textsf{nccfancyhdr}, 2004/12/07, v1.1,\\ +% \item[-] package \xpackage{nccfancyhdr}, 2004/12/07, v1.1,\\ % \CTAN{macros/latex/contrib/ncctools/source/nccfancyhdr.dtx} % \end{description} % +% \DescribeMacro{regstats} +% 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,\\ +% \CTAN{macros/latex/contrib/regstats/regstats.dtx} +% \end{description} +% % \DescribeMacro{count1to} % \DescribeMacro{nofm} % \DescribeMacro{totpages} @@ -1389,52 +1330,46 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \DescribeMacro{zref} % As possible alternatives in section~\ref{sec:Alternatives}, Alternatives, there are listed % \begin{description} -% \item[-] package \textsf{pagesLTS}, 2011/02/01, v1.1m,\\ -% \CTAN{macros/latex/contrib/pagesLTS/pagesLTS.dtx} +% \item[-] package \xpackage{pageslts}, 2011/08/08, v1.2a,\\ +% \CTAN{macros/latex/contrib/pageslts/pageslts.dtx} % -% \item[-] package \textsf{papermas}, 2011/02/01, v1.0e; the \textsf{papermas} package -% can be considered as kind of add-on to the \textsf{pagesLTS} package.\\ +% \item[-] package \xpackage{papermas}, 2011/08/08, v1.0g; the \xpackage{papermas} +% package can be considered as kind of add-on to the \xpackage{pageslts} package.\\ % \CTAN{macros/latex/contrib/papermas/papermas.dtx} % -% \item[-] package \textsf{count1to}, 2009/05/24, v2.1,\\ +% \item[-] package \xpackage{count1to}, 2009/05/24, v2.1,\\ % \CTAN{macros/latex/contrib/ms/count1to.dtx} % -% \item[-] package \textsf{nofm}, 1991/02/25, v?.?,\\ -% \url{ftp://tug.ctan.org/pub/tex-archive/obsolete/macros/latex209/contrib/misc/nofm.sty} -% does not work with e.\,g. \textsf{hyperref} +% \item[-] package \xpackage{nofm}, 1991/02/25, v?.?,\\ +% \url{ftp://tug.ctan.org/pub/tex-archive/obsolete/macros/latex209/contrib/misc/nofm.sty}, +% does not work with e.\,g. \xpackage{hyperref} % -% \item[-] package \textsf{totpages}, 2005/09/19, v2.00,\\ +% \item[-] package \xpackage{totpages}, 2005/09/19, v2.00,\\ % \CTAN{macros/latex/contrib/totpages/totpages.dtx} % -% \item[-] package \textsf{zref}, 2010/05/01, v2.17,\\ -% \CTAN{macros/latex/contrib/oberdiek/zref.dtx} +% \item[-] package \xpackage{zref}, 2011/03/18, v2.21,\\ +% \CTAN{macros/latex/contrib/oberdiek/zref.dtx}, +% requires $\varepsilon$-\TeX{}. % \end{description} % % \DescribeMacro{Oberdiek} % \DescribeMacro{holtxdoc} % \DescribeMacro{zref} -% All packages of Heiko Oberdiek's bundle `oberdiek' -% (especially \textsf{holtxdoc} and \textsf{zref}) +% All packages of \textsc{Heiko Oberdiek's} bundle `oberdiek' +% (especially \xpackage{holtxdoc} and \xpackage{zref}) % are also available in a TDS compliant ZIP archive:\\ % \CTAN{install/macros/latex/contrib/oberdiek.tds.zip}.\\ -% \textbf{Warning}: holtxdoc, 2010/04/24 v0.19, requires the packages -% \begin{description} -% \item[-] hypdoc, 2010/03/26, v1.9 -% \item[-] hyperref, 2010/03/30, v6.80u (latest: 2010/12/16, v6.81z) -% \item[-] pdftexcmds, 2010/04/01, v0.9 -% \item[-] ltxcmds, 2010/03/09, v1.4 (latest: 2010/04/26, v1.7) -% \item[-] hologo, 2010/04/24, v1.2 -% \item[-] array (latest: 2008/09/09, v2.4c) -% \end{description} -% (or more recent versions) and does neither work with -% nor check for earlier versions!\\ -% (It is probably best to download\\ -% \CTAN{install/macros/latex/contrib/oberdiek.tds.zip}\\ -% and use this, because the packages in there should be both -% recent and compatible.)\\ +% It is probably best to download and use this, because the packages in there +% are quite probably both recent and compatible among themselves.\\ +% +% \DescribeMacro{hyperref} +% \noindent \xpackage{hyperref} is not included in that bundle and needs to be downloaded +% separately,\\ +% \url{http://mirror.ctan.org/install/macros/latex/contrib/hyperref.tds.zip}.\\ % % \DescribeMacro{M\"{u}nch} -% A list of my packages can be found at \url{http://www.Uni-Bonn.de/~uzs5pv/LaTeX.html}.\\ +% A hyperlinked list of my (other) packages can be found at +% \url{http://www.Uni-Bonn.de/~uzs5pv/LaTeX.html}.\\ % % \subsection{Package, unpacking TDS} % @@ -1449,7 +1384,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \item[\CTAN{macros/latex/contrib/lastpage/README}]\hspace*{0.1cm} \\ % The README file. % \end{description} -% There is also a lastpage.tds.zip available: +% There is also a \texttt{lastpage.tds.zip} available: % \begin{description} % \item[\CTAN{install/macros/latex/contrib/lastpage.tds.zip}]\hspace*{0.1cm} \\ % Everything in TDS compliant, compiled format. @@ -1458,10 +1393,8 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \begin{tabular}{ll} % lastpage.ins & The installation file.\\ % lastpage.drv & The driver to generate the documentation.\\ -% ltxdoc.cfg & The \LaTeX\ documentation configuration file,\\ -% & also for generating the documentation.\\ % lastpage.sty & The \xext{sty}le file.\\ -% lastpage209.sty & The \xext{sty}le file for \LaTeX209\ \textbf{only}.\\ +% lastpage209.sty & The \xext{sty}le file for \LaTeX2.09\ \textbf{only}.\\ % lastpage-example.tex & The example file.% % \end{tabular} % @@ -1481,7 +1414,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \paragraph{TDS.} Now the different files must be moved into % the different directories in your installation TDS tree % (also known as \xfile{texmf} tree), \textbf{but first you should delete -% the old \textsf{lastpage} files (which are probably located in other directories).} +% the old \xpackage{lastpage} files (which are probably located in other directories).} % You can make a backup of the old files before deleting them, of course. % \begin{quote} % \def\t{^^A @@ -1491,7 +1424,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline % lastpage-example.tex & doc/latex/lastpage-example.tex\\ % lastpage-example.pdf & doc/latex/lastpage-example.pdf\\ % lastpage.dtx & source/latex/lastpage.dtx\\ -% lastpage209.sty & tex/latex/lastpage209.sty for \LaTeX209\\ +% lastpage209.sty & tex/latex/lastpage209.sty for \LaTeX2.09\\ % \end{tabular}^^A % }^^A % \sbox0{\t}^^A @@ -1557,6 +1490,8 @@ I do NOT think, that it is necessary to print THIS file, really\newline % TDS installing feature, then some files can already be in the right % place, see the documentation of \docstrip. % +% \pagebreak +% % \subsection{Refresh file name databases} % % If your \TeX~distribution (\teTeX, \mikTeX,\dots) relies on file name @@ -1582,7 +1517,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline % % \paragraph{Generating the documentation.\label{GenDoc}} % You can use both the \xfile{.dtx} or the \xfile{.drv} to generate -% the documentation. The process can be configured by the +% the documentation. The process can be configured by a % configuration file \xfile{ltxdoc.cfg}. For instance, put the following % line into this file, if you want to have A4 as paper format: % \begin{quote} @@ -1612,28 +1547,32 @@ I do NOT think, that it is necessary to print THIS file, really\newline % % \section{Acknowledgements} % -% I (H.-Martin M\"{u}nch) would like to thank Jeffrey P. Goldberg -% (jeffrey+news at goldmark dot org) for inventing the -% \textsf{lastpage} package as well as for granting me to update it. -% Further I would like to thank Heiko Oberdiek -% (heiko dot oberdiek at googlemail dot com) for providing -% a~lot~(!) of useful packages (from which I also got everything I -% know about creating a file in \xfile{dtx} format, ok, say it: copying), +% I (\textsc{H.-Martin M\"{u}nch}) would like to thank +% \textsc{Jeffrey P. Goldberg} (jeffrey+news at goldmark dot org) for +% inventing the \xpackage{lastpage} package as well as for granting me +% to update it. Further I would like to thank \textsc{Heiko Oberdiek} +% for providing a~lot~(!) of useful packages (from which I also got everything +% 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 Ulrike Fischer, Sebastian Bank, and James Hedges. +% newsgroups for their help in all things \TeX{}. Thanks for bug reports go +% to \textsc{Ulrike Fischer}, \textsc{Sebastian Bank}, and \textsc{James Hedges}. +% Thanks to \textsc{Sven Siegmund} for pointing out a necessary further +% explanation in the documentation. +% +% \pagebreak % % \phantomsection % \begin{History}\label{History} % \begin{Version}{1994/06/17 v0.99a} -% \item First shot by Jeffrey P. Goldberg. +% \item First shot by \textsc{Jeffrey P. Goldberg}. % \end{Version} % \begin{Version}{1994/06/25 v0.1b} -% \item Last version number created by Jeffrey P. Goldberg. +% \item Last version number created by \textsc{Jeffrey P. Goldberg}. % \end{Version} % \begin{Version}{1994/07/20 v0.1b (again)} -% \item Documentation updated by Jeffrey P. Goldberg.\\ -% The main source code of the \textsf{lastpage} package 1994/07/20 v0.1b was:\\ +% \item Documentation updated by \textsc{Jeffrey P. Goldberg}.\\ +% The main source code of the \xpackage{lastpage} package 1994/07/20, +% v0.1b, was:\\ % \begin{verbatim} % \NeedsTeXFormat{LaTeX2e}[1994/06/01] % \ProvidesPackage{lastpage}[1994/07/20 v0.1b @@ -1647,24 +1586,25 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \clearpage\lastpage@putlabel}% % \endinput % \end{verbatim} -% and then the \textsf{hyperref} package and the \textsf{revtex4} class -% even redefine\\ -% |\lastpage@putlabel| (at least \textsf{hyperref} version 2010/09/13, v6.81n, -% and REV\TeX4\ version 2010/07/25, v4.1r, still do this). +% 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 +% REV\TeX{}4\ version 2010/07/25, v4.1r, still do this). % \end{Version} % \begin{Version}{2010/02/18 v1.1} -% \item Proposed |LastPages| label by H.-Martin M\"{u}nch +% \item Proposed |LastPages| label by \textsc{H.-Martin M\"{u}nch} % on \Newsgroup{comp.text.tex}, see e.\,g. % \url{http://groups.google.com/group/comp.text.tex/msg/4407493da9c747f0?dmode=source}; -% now available in the \textsf{pagesLTS} package. +% now available in the \xpackage{pageslts} package. % \end{Version} % \begin{Version}{2010/07/29 v1.2a} -% \item Complete rewriting of the package; upgrade from \textsf{fancyheadings} to -% \textsf{fancyhdr} package, then removed the need for a \textsf{fancyhdr} -% package at all. -% \item Included \textsf{lastpage209.sty} for \LaTeX209. +% \item Complete rewriting of the package; upgrade from \xpackage{fancyheadings} +% to \xpackage{fancyhdr} package, then removed the need for the +% \xpackage{fancyhdr} package at all. +% \item Included \textsf{lastpage209.sty} for \LaTeX2.09{}. % \item Replacement of |\filedate|, |-version|, |-name|,\ldots\ because -% of \LaTeX~bug 2705:\\ +% of \LaTeX{}~bug 2705:\\ % Synopsis: Possible problem with |\fileversion| and |\filedate|\\ % \url{http://www.latex-project.org/cgi-bin/ltxbugs2html?category=LaTeX&responsible=anyone&state=anything&keyword=lastpage&pr=latex%2F2705&search=} % \item Example |lastpage-example.tex|. @@ -1673,72 +1613,90 @@ I do NOT think, that it is necessary to print THIS file, really\newline % \item A~lot~(!) of details. % \item Complete rewriting of the documentation. % \item Added a list of my other packages. -% \item Everything in DTX framework. +% \item Everything in \texttt{DTX} framework. % \item Included a |\CheckSum|. -% \item Complete rewriting of the Readme file. +% \item Complete rewriting of the README file. % \end{Version} % \begin{Version}{2010/08/12 v1.2b} % \item Bug fix: |\@PackageInfoNoLine| is only available, -% if the \textsf{hyperref} package is loaded. -% (Bug reported by Ulrike Fischer, thanks!) +% if the \xpackage{hyperref} package is loaded. +% (Bug reported by \textsc{Ulrike Fischer}, thanks!) % \item Detected another bug: |\ifHy@pageanchor| etc. do not work without -% \texttt{hyperref}, and |\else| related to |\ifHy@pageanchor| was wrongly -% associated with a preceding |\if|, and everything went wrong. -% Now everything should work without \textsf{hyperref} again. +% \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. % \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. % \end{Version} % \begin{Version}{2010/08/23 v1.2c} -% \item Bug fix: Additionally to checking for the \textsf{hyperref} package +% \item Bug fix: Additionally to checking for the \xpackage{hyperref} package % |\AtBeginDocument|, when placing the \texttt{lastpage} label it is also -% checked for the |\hyperref| command, in case \textsf{hyperref} was not -% loaded at |\begin{document}| yet. (Bug reported by Sebastian Bank, thanks!) +% checked for the |\hyperref| command, in case \xpackage{hyperref} was not +% loaded at |\begin{document}| yet. (Bug reported by \textsc{Sebastian Bank}, +% thanks!) % \item Changed the |\unit| definition (got rid of an old |\rm|). % \item Changed |\lastpage@puthyperlabel| to |\lastpage@putlabelhyper| analogous to -% |\pagesLTS@putlabelhyper| of the \textsf{pagesLTS} package. -% \item The recent version of the Adobe Reader\sout{\ is}\uwave{\ was} 9.3.3 +% |\pagesLTS@putlabelhyper| of the \xpackage{pageslts} package. +% \item The recent version of the Adobe Reader\ \sout{is}\uwave{was}\ 9.3.3 % (instead of 9.3.1). -% \item Updated version number and date of \textsf{pagesLTS} package (especially +% \item Updated version number and date of \xpackage{pagesLTS} package (especially % for the check for outdated versions). -% \item Removed wrong \% from the driver file. +% \item Removed wrong \%\ from the driver file. % \end{Version} % \begin{Version}{2010/08/25 v1.2d} -% \item Bug fix: also \textsf{tcilatex} defines the |\hyperref| command, therefore -% for \textsf{hyperref} package detection this had to be changed to -% |\Hy@Warning|. +% \item Bug fix: also \xpackage{tcilatex} defines the |\hyperref| command, +% therefore for \xpackage{hyperref} package detection this had to be +% changed to |\Hy@Warning|. % \end{Version} % \begin{Version}{2010/09/12 v1.2e} -% \item James Hedges (Thanks!) pointed out, that there was no instruction -% in the documentation about suppressing hyperlinks: added (also -% to the example). -% \item The recent version of the Adobe Reader \sout{\ is}\uwave{\ was} 9.3.4 +% \item \textsc{James Hedges} (Thanks!) pointed out, that there was no +% instruction in the documentation about suppressing hyperlinks: +% added (also to the example). +% \item The recent version of the Adobe Reader\ \sout{is}\uwave{was}\ 9.3.4 % (instead of 9.3.3). % \item Diverse small changes. % \end{Version} % \begin{Version}{2010/09/24 v1.2f} -% \item Updated to version 2010/09/13 v6.81n of the \textsf{hyperref} package. -% \item New version of REV\TeX4\ 2010/07/25, v4.1r, old problem. -% \item New version of \textsf{pagesLTS} package, 2010/09/22, v1.1k. +% \item Updated to version 2010/09/13 v6.81n of the \xpackage{hyperref} package. +% \item New version of REV\TeX{}4\ 2010/07/25, v4.1r, old problem. +% \item New version of \xpackage{pagesLTS} package, 2010/09/22, v1.1k. % \item Moved the package from \texttt{.../latex/muench/lastpage/...} to\\ % \texttt{.../latex/lastpage/...}.\\ -% (Please make sure that any old versions of the \textsf{lastpage} package -% are porperly uninstalled from your system.) +% (Please make sure that any old versions of the \xpackage{lastpage} +% package are properly uninstalled from your system.) % \end{Version} % \begin{Version}{2011/02/01 v1.2g} -% \item Updated to version 2010/04/24 v0.19 of the \textsf{holtxdoc} package. -% \item New version of \textsf{pagesLTS} package, 2011/02/01, v1.1m. +% \item Updated to version 2010/04/24 v0.19 of the \xpackage{holtxdoc} package. +% \item New version of \xpackage{pagesLTS} package, 2011/02/01, v1.1m. % \item Replaced the list of my packages with a link to a web page list of those, % which has the advantage of showing the recent versions of all those packages. -% \item Updated to version 2010/12/16 v6.81z of the \textsf{hyperref} package. -% \item The recent version of the Adobe Reader is X (10.0.0) (instead of 9.3.4). -% Its handling of special page numbers was improved. +% \item Updated to version 2010/12/16 v6.81z of the \xpackage{hyperref} package. +% \item The recent version of the Adobe Reader\ \sout{is}\uwave{was}\ X~(10.0.0) +% (instead of 9.3.4). Its handling of special page numbers was improved. % \item Minor details. % \end{Version} +% \begin{Version}{2011/07/03 v1.2h} +% \item The \xpackage{holtxdoc} package was fixed (recent: 2011/02/04, v0.21), +% 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{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 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{}. +% \item Corrected references in the README. +% \end{Version} +% \begin{Version}{2011/08/08 v1.2i} +% \item The \xpackage{pagesLTS} package has been renamed to \xpackage{pageslts}: +% 2011/08/08, v1.2a. +% \item Some details. +% \end{Version} % \end{History} % -% % \PrintChanges -% % \bigskip % % When you find a mistake or have a suggestion for an improvement of this package, diff --git a/Master/texmf-dist/source/latex/lastpage/lastpage.ins b/Master/texmf-dist/source/latex/lastpage/lastpage.ins index 4516e87a795..546448fb71d 100644 --- a/Master/texmf-dist/source/latex/lastpage/lastpage.ins +++ b/Master/texmf-dist/source/latex/lastpage/lastpage.ins @@ -8,8 +8,14 @@ %% %% This is a generated file. %% -%% IMPORTANT NOTICE: -%% The usual disclaimers apply: +%% Project: lastpage +%% Version: 2011/08/08 v1.2i +%% +%% Copyright (C) 2010, 2011 by +%% H.-Martin M"unch +%% Portions of code copyrighted by other people as marked. +%% +%% The usual disclaimer applys: %% If it doesn't work right that's your problem. %% (Nevertheless, send an e-mail to the maintainer %% when you find an error in this package.) @@ -26,16 +32,14 @@ %% %% This work has the LPPL maintenance status "maintained". %% -%% The Current Maintainer of this work is H.-Martin Muench -%% (Martin dot Muench at Uni-Bonn dot de). +%% The Current Maintainer of this work is H.-Martin Muench. %% -%% This package was invented by Jeffrey P. Goldberg -%% (jeffrey+news at goldmark dot org). +%% This package was invented by Jeffrey P. Goldberg. %% I thought that a replacement was needed and therefore created the -%% pagesLTS package, -%% http://www.ctan.org/tex-archive/macros/latex/contrib/pagesLTS/pagesLTS.dtx +%% pageslts package, +%% http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/pageslts.dtx %% or -%% http://www.ctan.org/tex-archive/install/macros/latex/contrib/pagesLTS.tds.zip +%% http://www.ctan.org/tex-archive/install/macros/latex/contrib/pageslts.tds.zip %% . Nevertheless, for compatibility with existing documents/packages as well as %% for the low amount of resources needed by the lastpage package (no new counter!), %% I updated this package. @@ -43,17 +47,14 @@ %% %% This work consists of the main source file lastpage.dtx %% and the derived files -%% lastpage.sty, lastpage.ins, lastpage.drv, -%% lastpage-example.tex, lastpage.pdf. +%% lastpage.sty, lastpage.pdf, lastpage.ins, lastpage.drv, +%% lastpage-example.tex. %% \input docstrip.tex - -\obeyspaces -\Msg{******************************************************} -\Msg{* Installation *} -\Msg{* Package: lastpage v1.2g 2011/02/01 LaTeX2e package *} -\Msg{* Refers to last page's name (HMM) *} -\Msg{******************************************************} +\Msg{*********************************************************************} +\Msg{* Installation} +\Msg{* Package: lastpage 2011/08/08 v1.2i Refers to last page's name (HMM)} +\Msg{*********************************************************************} \keepsilent \askforoverwritefalse @@ -63,8 +64,14 @@ This is a generated file. -IMPORTANT NOTICE: -The usual disclaimers apply: +Project: lastpage +Version: 2011/08/08 v1.2i + +Copyright (C) 2010, 2011 by + H.-Martin M"unch +Portions of code copyrighted by other people as marked. + +The usual disclaimer applys: If it doesn't work right that's your problem. (Nevertheless, send an e-mail to the maintainer when you find an error in this package.) @@ -81,16 +88,14 @@ LaTeX version 2005/12/01 or later. This work has the LPPL maintenance status "maintained". -The Current Maintainer of this work is H.-Martin Muench -(Martin dot Muench at Uni-Bonn dot de). +The Current Maintainer of this work is H.-Martin Muench. -This package was invented by Jeffrey P. Goldberg - (jeffrey+news at goldmark dot org). +This package was invented by Jeffrey P. Goldberg. I thought that a replacement was needed and therefore created the -pagesLTS package, -http://www.ctan.org/tex-archive/macros/latex/contrib/pagesLTS/pagesLTS.dtx +pageslts package, +http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/pageslts.dtx or -http://www.ctan.org/tex-archive/install/macros/latex/contrib/pagesLTS.tds.zip +http://www.ctan.org/tex-archive/install/macros/latex/contrib/pageslts.tds.zip . Nevertheless, for compatibility with existing documents/packages as well as for the low amount of resources needed by the lastpage package (no new counter!), I updated this package. @@ -98,8 +103,8 @@ Thanks go to Jeffrey P. Goldberg for allowing me to do this. This work consists of the main source file lastpage.dtx and the derived files - lastpage.sty, lastpage.ins, lastpage.drv, - lastpage-example.tex, lastpage.pdf. + lastpage.sty, lastpage.pdf, lastpage.ins, lastpage.drv, + lastpage-example.tex. \endpreamble \let\MetaPrefix\DoubleperCent @@ -107,7 +112,6 @@ and the derived files \generate{% \file{lastpage.ins}{\from{lastpage.dtx}{install}}% \file{lastpage.drv}{\from{lastpage.dtx}{driver}}% - \file{ltxdoc.cfg}{\from{lastpage.dtx}{ltxdoc}}% \usedir{tex/latex/lastpage}% \file{lastpage209.sty}{\from{lastpage.dtx}{lastpage209}}% \file{lastpage.sty}{\from{lastpage.dtx}{package}}% @@ -115,31 +119,31 @@ and the derived files \file{lastpage-example.tex}{\from{lastpage.dtx}{example}}% } -\obeyspaces -\Msg{**************************************************************} -\Msg{* *} -\Msg{* To finish the installation you have to move the following *} -\Msg{* file into a directory searched by TeX: *} -\Msg{* *} -\Msg{* lastpage.sty (or lastpage209.sty for TeX 2.09) *} -\Msg{* *} -\Msg{* To produce the documentation run the file `lastpage.drv' *} -\Msg{* through (pdf)LaTeX, e.g. *} -\Msg{* pdflatex lastpage.drv *} -\Msg{* makeindex -s gind.ist lastpage.idx *} -\Msg{* pdflatex lastpage.drv *} -\Msg{* makeindex -s gind.ist lastpage.idx *} -\Msg{* pdflatex lastpage.drv *} -\Msg{* *} -\Msg{* At least three runs are necessary e.g. to get the *} -\Msg{* references right! *} -\Msg{* *} -\Msg{* Happy TeXing! *} -\Msg{* *} -\Msg{**************************************************************} +\catcode32=13\relax% active space +\let =\space% +\Msg{************************************************************************} +\Msg{*} +\Msg{* To finish the installation you have to move the following} +\Msg{* file into a directory searched by TeX:} +\Msg{*} +\Msg{* lastpage.sty (or lastpage209.sty for TeX 2.09)} +\Msg{*} +\Msg{* To produce the documentation run the file `lastpage.drv'} +\Msg{* through (pdf)LaTeX, e.g.} +\Msg{* pdflatex lastpage.drv} +\Msg{* makeindex -s gind.ist lastpage.idx} +\Msg{* pdflatex lastpage.drv} +\Msg{* makeindex -s gind.ist lastpage.idx} +\Msg{* pdflatex lastpage.drv} +\Msg{*} +\Msg{* At least three runs are necessary e.g. to get the} +\Msg{* references right!} +\Msg{*} +\Msg{* Happy TeXing!} +\Msg{*} +\Msg{************************************************************************} \endbatchfile - \endinput %% %% End of file `lastpage.ins'. -- cgit v1.2.3