diff options
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/pageslts/pagesLTS.drv | 12 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/pageslts/pagesLTS.dtx | 683 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/pageslts/pagesLTS.ins | 3 |
3 files changed, 377 insertions, 321 deletions
diff --git a/Master/texmf-dist/source/latex/pageslts/pagesLTS.drv b/Master/texmf-dist/source/latex/pageslts/pagesLTS.drv index aafca5e2fce..ac39066cc3e 100644 --- a/Master/texmf-dist/source/latex/pageslts/pagesLTS.drv +++ b/Master/texmf-dist/source/latex/pageslts/pagesLTS.drv @@ -55,10 +55,10 @@ %% pagesLTS-example.tex. %% \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesFile{pagesLTS.drv}[2010/07/15 v1.1d% +\ProvidesFile{pagesLTS.drv}[2010/08/25 v1.1i Refers to special pages' numbers/names (HMM)]% \documentclass[landscape]{ltxdoc}[2007/11/11]% v2.0u -\usepackage{geometry}[2010/03/13]% v5.3 +\usepackage{geometry}[2010/07/13]% v5.5 \usepackage{holtxdoc}[2010/04/18]% v0.18 %% pagesLTS may work with earlier versions of LaTeX2e and those %% class and package, but this was not tested. @@ -95,13 +95,7 @@ \CodelineIndex \EnableCrossrefs \hyphenation{created every-thing ignored} -\makeatletter -%% Code from tcilatex.tex, Macros for Scientific Word and Scientific WorkPlace 5.5 <06 Oct 2005> %% -%% Copyright (C) 2005 Mackichan Software, Inc. %% -%% That macro file is NOT proprietary and may be freely copied and distributed. %% - \def\unit#1{\mathord{\thinspace\rm #1}}% -%% End of code from tcilatex.tex %% -\makeatother +\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \begin{document} \DocInput{pagesLTS.dtx}% \end{document} diff --git a/Master/texmf-dist/source/latex/pageslts/pagesLTS.dtx b/Master/texmf-dist/source/latex/pageslts/pagesLTS.dtx index 109e9af3d60..347bd1d7ae1 100644 --- a/Master/texmf-dist/source/latex/pageslts/pagesLTS.dtx +++ b/Master/texmf-dist/source/latex/pageslts/pagesLTS.dtx @@ -1,9 +1,9 @@ % \iffalse meta-comment % % pagesLTS package (when searching on CTAN, look for pageslts) -% file version: v1.1d -% file date: 2010/07/15 -% documentation date: 2010/07/15 +% file version: v1.1i +% file date: 2010/08/25 +% documentation date: 2010/08/25 % % Copyright (C) 2010 H.-Martin M\"{u}nch (Martin dot Muench at Uni-Bonn dot de) % Portions of code copyrighted by other people as marked. @@ -89,7 +89,7 @@ \obeyspaces \Msg{******************************************************} \Msg{* Installation *} -\Msg{* Package: pagesLTS v1.1d 2010/07/15 LaTeX2e package *} +\Msg{* Package: pagesLTS v1.1i 2010/08/25 LaTeX2e package *} \Msg{* Refers to special pages' numbers/names (HMM) *} \Msg{******************************************************} @@ -156,7 +156,6 @@ and the derived files \file{ltxdoc.cfg}{\from{pagesLTS.dtx}{ltxdoc}}% \usedir{tex/latex/muench/pagesLTS}% \file{pagesLTS.sty}{\from{pagesLTS.dtx}{package}}% - %%\file{lastpage209.sty}{\from{pagesLTS.dtx}{lastpage209}}% \usedir{doc/latex/muench/pagesLTS}% \file{pagesLTS-example.tex}{\from{pagesLTS.dtx}{example}}% } @@ -203,10 +202,10 @@ and the derived files % \begin{macrocode} %<*driver> \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesFile{pagesLTS.drv}[2010/07/15 v1.1d% +\ProvidesFile{pagesLTS.drv}[2010/08/25 v1.1i Refers to special pages' numbers/names (HMM)]% \documentclass[landscape]{ltxdoc}[2007/11/11]% v2.0u -\usepackage{geometry}[2010/03/13]% v5.3 +\usepackage{geometry}[2010/07/13]% v5.5 \usepackage{holtxdoc}[2010/04/18]% v0.18 %% pagesLTS may work with earlier versions of LaTeX2e and those %% class and package, but this was not tested. @@ -247,13 +246,7 @@ and the derived files %\RecordChanges % Gather update information. %\OnlyDescription % Comment out for implementation details. \hyphenation{created every-thing ignored} -\makeatletter -%% Code from tcilatex.tex, Macros for Scientific Word and Scientific WorkPlace 5.5 <06 Oct 2005> %% -%% Copyright (C) 2005 Mackichan Software, Inc. %% -%% That macro file is NOT proprietary and may be freely copied and distributed. %% - \def\unit#1{\mathord{\thinspace\rm #1}}% -%% End of code from tcilatex.tex %% -\makeatother +\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \begin{document} \DocInput{pagesLTS.dtx}% \end{document} @@ -329,7 +322,7 @@ and the derived files % % \fi % -% \CheckSum{0} +% \CheckSum{1470} % % \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 @@ -382,11 +375,11 @@ and the derived files % \DoNotIndex{{pagesLTS.arabic, pagesLTS.roman, pagesLTS.Roman, pagesLTS.alph, pagesLTS.Alph,\ldots }} % % \title{The \textsf{pagesLTS} package\footnote{This file% -% has version number v1.1d, last% -% revised 2010/07/15, documentation dated 2010/07/15.}} +% has version number v1.1i, last% +% revised 2010/08/25, documentation dated 2010/08/25.}} % \author{H.-Martin M\"{u}nch\\ % (\texttt{Martin dot Muench at Uni-Bonn dot de})} -% \date{2010/07/15} +% \date{2010/08/25} % % \maketitle % @@ -548,7 +541,7 @@ and the derived files % \textbf{logical page numbers} together with % \textsf{hyperref}!\label{logical page numbers} % \begin{description} -% \item [-] In Adobe Reader 9.3.1 enable:\\ +% \item [-] In Adobe Reader 9.3.3 enable:\\ % \underline{E}dit $>$ Prefere\underline{n}ces (Ctrl+k) % $>$ Page Display $>$ Page Content and Information % $>$ Use logical page \nolinebreak{\underline{n}umbers\ .} @@ -1153,11 +1146,11 @@ and the derived files % 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. -% Using the \textsf{lastpage} before the \textsf{pagesLTS} before the -% \textsf{hyperref} [2010/06/18 v6.81g] +% Using \textbf{old}~(!) versions of 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), +% from the old \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.) @@ -1225,7 +1218,7 @@ and the derived files % \begin{description} % \item[-] There can be a counter overflow, see preceding subsection~\ref{ss:overflow}. % -% \item[-] Adobe Acrobat Reader 9.3.1 does not show the correct page names +% \item[-] Adobe Acrobat Reader 9.3.3 does not show the correct page names % for all pages with \texttt{fnsymbol} page numbering scheme: % % \begin{center} @@ -1268,49 +1261,18 @@ and the derived files % 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} of Jeffrey P. Goldberg -% (jeffrey+news at goldmark dot org) can be used, -% which is defined as follows:\\ -% (You can get it also by un-commenting the\\ -% \texttt{\%\% \textbackslash file\{lastpage209.sty\}\{\textbackslash from\{pagesLTS.dtx\}\{lastpage209\}\}\% }\\ -% line in the \xfile{pagesLTS.ins} file and running\\ -% |tex pagesLTS.ins|.) -% -% \begin{macrocode} -%<*lastpage209> - % FOR LaTeX 2.09 ONLY - FOR LaTeX 2e USE lastpage.sty OR pagesLTS.sty! - % This is lastpage209.sty by Jeffrey P. Goldberg (jeffrey+news at goldmark dot org). -\let\origenddocument=\enddocument -\def\enddocument{\clearpage - {\addtocounter{page}{-1} - \immediate\write\@mainaux - {\string\newlabel{LastPage}{{}{\thepage}}}} - \addtocounter{page}{+1} - \origenddocument% - } -%</lastpage209> -% \end{macrocode} -% -% (after 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} -% package (see subsection~\ref{sec:endfloat}) will arise.\\ -% The \textsf{lastpage209} style only provides the |LastPage| -% label - nothing else!\\ -% \textbf{If possible, update to \LaTeXe!} -% \end{description} -% % \DescribeMacro{LastPage} % \begin{description} % \item[-] The \textsf{LastPage} package also provides the % \texttt{LastPage} label (but not \texttt{VeryLastPage} or -% \texttt{LastPages}). If you only want this and have a very +% \texttt{LastPages}). If you only want this and have a quite % limited amount of \TeX\ resources, you might want to use that % package instead. +% +% \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 also contained +% in the recent \textsf{LastPage} package). % \end{description} % % \DescribeMacro{totpages} @@ -1324,8 +1286,6 @@ and the derived files % on one sheet of paper). % \end{description} % -% \pagebreak -% % \DescribeMacro{nofm.sty} % \begin{description} % \item[-] \textquotedblleft There is a package \textsf{nofm.sty} @@ -1395,7 +1355,7 @@ and the derived files pdfpagelayout=SinglePage,% bookmarksopen=true% } -\usepackage[pagecontinue=true,alphMult=ab,AlphMulti=AB,fnsymbolmult=true,romanMult=true,RomanMulti=true]{pagesLTS}[2010/07/15]% v1.1d +\usepackage[pagecontinue=true,alphMult=ab,AlphMulti=AB,fnsymbolmult=true,romanMult=true,RomanMulti=true]{pagesLTS}[2010/08/25]% v1.1i %% These are the default options. %% \makeatletter \renewcommand{\@evenfoot}% @@ -1409,15 +1369,9 @@ and the derived files \lastpageref{LastPages} pages.% } \renewcommand{\@oddfoot}{\@evenfoot} - \newcounter{pagesLTS.exampleArabic} - \setcounter{pagesLTS.exampleArabic}{3} - \newcounter{pagesLTS.examplealph} - \setcounter{pagesLTS.examplealph}{23} -%% Code from tcilatex.tex, Macros for Scientific Word and Scientific WorkPlace 5.5 <06 Oct 2005> %% -%% Copyright (C) 2005 Mackichan Software, Inc. %% -%% That macro file is NOT proprietary and may be freely copied and distributed. %% - \def\unit#1{\mathord{\thinspace\rm #1}}% -%% End of code from tcilatex.tex %% + \def\pagesLTSexampleArabic{3} + \def\pagesLTSexamplealph{23} + \gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \makeatother \listfiles \begin{document} @@ -1431,7 +1385,7 @@ and the derived files \markboth{Example for pagesLTS}{Example for pagesLTS} This example demonstrates the most common uses of package\\ -\textsf{pagesLTS}, v1.1d as of 2010/07/15 (HMM).\\ +\textsf{pagesLTS}, v1.1i as of 2010/08/25 (HMM).\\ The used options were \texttt{pagecontinue=true}, \texttt{alphMult=ab}, \texttt{AlphMulti=AB}, \linebreak \texttt{fnsymbolmult=true}, @@ -1451,7 +1405,7 @@ usage is to the benefit of the trademark owner.\\ \textbf{Tip}: Use \textit{logical page numbers} for the display of the pdf!\\ -(In Adobe Reader 9.3.1: \underline{E}dit $>$ +(In Adobe Reader 9.3.3: \underline{E}dit $>$ Prefere\underline{n}ces (Ctrl+k) $>$ Page Display $>$ Page Content and Information $>$ Use logical page \nolinebreak{\underline{n}umbers.)}\\ @@ -1535,7 +1489,7 @@ will not change, because the number of pages does not change \noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em } (There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} was used.)\\ \noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\ (\texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -- never @@ -1544,7 +1498,7 @@ because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.example \noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em } (There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}} was used.)\\ \noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em } (There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\ @@ -1595,7 +1549,7 @@ current page numbering sheme): \theCurrentPageLocal \\ \noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em } (There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} was used.)\\ \noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\ (\texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -- never @@ -1604,7 +1558,7 @@ because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.example \noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em } (There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}} was used.)\\ \noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em } (There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\ @@ -1673,7 +1627,7 @@ current page numbering sheme): \theCurrentPageLocal \\ \noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em } (There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} was used.)\\ \noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\ (\texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -- never @@ -1682,7 +1636,7 @@ because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.example \noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em } (There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}} was used.)\\ \noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em } (There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\ @@ -1734,7 +1688,7 @@ current page numbering sheme): \theCurrentPageLocal \\ \noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em } (There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} was used.)\\ \noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\ (\texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -- never @@ -1743,7 +1697,7 @@ because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.example \noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em } (There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}} was used.)\\ \noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em } (There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\ @@ -1768,9 +1722,9 @@ was added.)\\ \texttt{\textbackslash setcounter\{page\}} is a problem for the\ % current or total page numbers} -(Here is an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} +(Here is an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} in the source code.)\\ -\addtocounter{page}{\value{pagesLTS.exampleArabic}} +\addtocounter{page}{\pagesLTSexampleArabic} \noindent The page (from \texttt{\textbackslash thepage} command): \thepage \\ @@ -1792,7 +1746,7 @@ current page numbering sheme): \theCurrentPageLocal\\ \section{fnsymbol} -Adobe Acrobat Reader 9.3.1 does not show the correct page names +Adobe Acrobat Reader 9.3.3 does not show the correct page names for all pages with \texttt{fnsymbol} page numbering scheme: \begin{tabular}{c|c|c|c} @@ -1870,7 +1824,7 @@ current page numbering sheme): \theCurrentPageLocal \\ \noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em } (There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} was used.)\\ \noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\ (\texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -- never @@ -1879,7 +1833,7 @@ because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.example \noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em } (There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}} was used.)\\ \noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em } (There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\ @@ -1946,7 +1900,7 @@ current page numbering sheme): \theCurrentPageLocal \\ \noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em } (There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} was used.)\\ \noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\ (\texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -- never @@ -1955,7 +1909,7 @@ because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.example \noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em } (There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}} was used.)\\ \noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em } (There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\ @@ -2021,7 +1975,7 @@ current page numbering sheme): \theCurrentPageLocal \\ \noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em } (There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} was used.)\\ \noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\ (\texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -- never @@ -2030,7 +1984,7 @@ because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.example \noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em } (There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}} was used.)\\ \noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em } (There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\ @@ -2064,10 +2018,10 @@ If that doesn't work, type X <return> to quit. Now the page numbers are continued aa, ab, ac,\ldots\ (aa, bb, cc,\ldots\ is also possible, see the \textsf{pagesLTS} documentation).\\ To demonstrate this, we add a\\ -\texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}}\\ +\texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}}\\ in the source code here. -\addtocounter{page}{\arabic{pagesLTS.examplealph}} +\addtocounter{page}{\pagesLTSexamplealph} \bigskip @@ -2122,7 +2076,7 @@ current page numbering sheme): \theCurrentPageLocal \\ \noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em } (There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} was used.)\\ \noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\ (\texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -- never @@ -2131,7 +2085,7 @@ because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.example \noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em } (There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}} was used.)\\ \noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em } (There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\ @@ -2196,7 +2150,7 @@ current page numbering sheme): \theCurrentPageLocal \\ \noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em } (There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} was used.)\\ \noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\ (\texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -- never @@ -2205,7 +2159,7 @@ because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.example \noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em } (There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}} was used.)\\ \noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em } (There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\ @@ -2268,7 +2222,7 @@ current page numbering sheme): \theCurrentPageLocal \\ \noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em } (There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.exampleArabic}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexampleArabic\}} was used.)\\ \noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\ (\texttt{\textbackslash lastpageref\{pagesLTS.fnsymbol\}} -- never @@ -2277,7 +2231,7 @@ because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.example \noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em } (There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers, -because an \texttt{\textbackslash addtocounter\{page\}\{\arabic{pagesLTS.examplealph}\}} was used.)\\ +because an \texttt{\textbackslash addtocounter\{page\}\{\pagesLTSexamplealph\}} was used.)\\ \noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em } (There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\ @@ -2310,6 +2264,9 @@ was added.)\\ % % \newpage % +% \StopEventually{ +% } +% % \section{The implementation} % % (This and the source code of the example file are the reasons @@ -2324,7 +2281,7 @@ was added.)\\ % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesPackage{pagesLTS}[2010/07/15 v1.1d +\ProvidesPackage{pagesLTS}[2010/08/25 v1.1i Refers to special pages' numbers/names (HMM)]% % \end{macrocode} @@ -2368,12 +2325,12 @@ was added.)\\ % \end{macrocode} % % The \textsf{undolabl} package of H.-Martin M\"{u}nch, -% with code from Ulrich Diez, (see subsection~\ref{ss:Downloads}) +% with code from \textbf{Ulrich Diez}, (see subsection~\ref{ss:Downloads}) % is needed to overwrite labels, when the same page numbering scheme % is used twice (or even more often). % % \begin{macrocode} -\RequirePackage{undolabl}[2010/07/15]% v1.0d +\RequirePackage{undolabl}[2010/07/29]% v1.0f % \end{macrocode} % % We must not forget to give the source of |Prelim@EveryShipout|: @@ -2451,37 +2408,37 @@ was added.)\\ % % \begin{macrocode} \ifpagesLTS@pagecontinue% -\PackageInfo{pagesLTS}{Option pagecontinue enabled\MessageBreak% - (maybe by default):\MessageBreak% - The pagesLTS package will continue the page numbering,\MessageBreak% - when the same page numbering scheme is used twice.\MessageBreak% - If you do not want this, call pagesLTS with option\MessageBreak% - pagecontinue=false\MessageBreak% - (or use \ setcounter{page}=1).\MessageBreak% -}% + \PackageInfo{pagesLTS}{Option pagecontinue enabled\MessageBreak% + (maybe by default):\MessageBreak% + The pagesLTS package will continue the page numbering,\MessageBreak% + when the same page numbering scheme is used twice.\MessageBreak% + If you do not want this, call pagesLTS with option\MessageBreak% + pagecontinue=false\MessageBreak% + (or use \ setcounter{page}=1).\MessageBreak% + }% \else% -\PackageWarningNoLine{pagesLTS}{Option pagecontinue is false:\MessageBreak% - The pagesLTS package was used, but the option\MessageBreak% - pagecontinue was set to false.\MessageBreak% - If you want the page numbers to be continued,\MessageBreak% - when the same page numbering scheme is used twice,\MessageBreak% - please call pagesLTS with option pagecontinue=true,\MessageBreak% - otherwise the page number is reset to one each time\MessageBreak% - the page numbering scheme is changed.\MessageBreak% - For details please see the documentation!\MessageBreak% -}% + \PackageWarningNoLine{pagesLTS}{Option pagecontinue is false:\MessageBreak% + The pagesLTS package was used, but the option\MessageBreak% + pagecontinue was set to false.\MessageBreak% + If you want the page numbers to be continued,\MessageBreak% + when the same page numbering scheme is used twice,\MessageBreak% + please call pagesLTS with option pagecontinue=true,\MessageBreak% + otherwise the page number is reset to one each time\MessageBreak% + the page numbering scheme is changed.\MessageBreak% + For details please see the documentation!\MessageBreak% + }% \fi% % \end{macrocode} % % The page number printed in \texttt{alph} or in \texttt{Alph} % page numbering scheme had to be $>0$ and \nolinebreak{$<27$.}\ Now -% the \textsf{AlphAlph} package allows to extend the +% the \textsf{alphalph} package allows to extend the % numbering scheme (not only for pages). Because some users % prefer aa, ab, ac, ad,\ldots\ and some aa, bb, cc, dd,\ldots, % both schemes can be choosen via the options. % The \texttt{fnsymbol} page numbering scheme was restricted to values -% $>0$ and \nolinebreak{$<10$.}\ The \textsf{AlphAlph} package allows +% $>0$ and \nolinebreak{$<10$.}\ The \textsf{alphalph} package allows % to extend this page numbering scheme, too. Option \texttt{fnsymbolmult} % can be choosen with the \textsf{pagesLTS} package. % If no extension is whished (or another extension is whished @@ -2520,7 +2477,7 @@ was added.)\\ The pagesLTS package was used, but the option\MessageBreak% fnsymbolmult was set to false.\MessageBreak% If you want the page numbering of the footnotesymbol\MessageBreak% - scheme to be extended using the AlphAlph package,\MessageBreak% + scheme to be extended using the alphalph package,\MessageBreak% please call pagesLTS with option fnsymbolmult=true,\MessageBreak% otherwise page numbers of the footnotesymbol scheme\MessageBreak% greater than nine will need to be defined otherwise.\MessageBreak% @@ -2634,7 +2591,7 @@ was added.)\\ \PackageInfo{pagesLTS}{Option fnsymbolmult enabled\MessageBreak% (maybe by default):\MessageBreak% The pagesLTS package will extend the page numbering\MessageBreak% - of the footnotesymbol scheme using the AlphAlph\MessageBreak% + of the footnotesymbol scheme using the alphalph\MessageBreak% package.\MessageBreak% If you do not want this, call pagesLTS with option\MessageBreak% fnsymbolmult=false.\MessageBreak% @@ -2723,19 +2680,13 @@ was added.)\\ % \end{macrocode} % % While generally -% |\pagesLTS@ifcounter{pagesLTS.double.\pagesLTS@pnc}| -% is used, for the beginning of the document \linebreak -%|pagesLTS.double.0| is predefined. -% (A~|\pagesLTS@ifcounter{pagesLTS.double.\pagesLTS@pnc}| -% could be used for this, too, but we know that |pagesLTS.double.0| +% |\pagesLTS@ifcounter{pagesLTS.current.local.\pagesLTS@pnc}| +% is used, for the beginning of the document +% |pagesLTS.current.local.0| is predefined. +% (A~|\pagesLTS@ifcounter{pagesLTS.current.local.\pagesLTS@pnc}| +% could be used for this, too, but we know that |pagesLTS.current.local.0| % was not defined, so we can just do the definition here.) -% -% \begin{macrocode} -\newcounter{pagesLTS.double.0} -% \end{macrocode} -% -% The same holds for |pagesLTS.current.local.0|, -% and the first local page gets the number one. +% And the first local page gets the number one. % % \begin{macrocode} \newcounter{pagesLTS.current.local.0} @@ -2749,7 +2700,8 @@ was added.)\\ % \end{macrocode} % -% \DescribeMacro{\xroman}\label{xroman} +% \phantomsection +% \begin{macro}{\xroman}\label{xroman} % When |\roman{...}| is used with a value $<1$, \LaTeX\ just ignores this % (see subsection~\ref{ss:overflow}). Here we provide a command % |\xroman{...}| \nolinebreak{(e\textbf{x}panded} roman), @@ -2785,9 +2737,10 @@ was added.)\\ } % \end{macrocode} +% \end{macro} % -% \DescribeMacro{\XXRoman} -% |\XXRoman| does the same for uppercase |\Roman| numbers. +% \begin{macro}{\XRoman} +% |\XRoman| does the same for uppercase |\Roman| numbers. % |-\uppercase{\romannumeral\number-\arabic{#1}}| cannot be used, % because the result in the example is |-\uppercase{vii}| and % not |-VII|.\footnote{This does not matter for the print out,% @@ -2812,7 +2765,7 @@ was added.)\\ % ltcounts.dtx 105 Counters and Lengths). % % \begin{macrocode} -\newcommand{\XXRoman}[1]{% +\newcommand{\XRoman}[1]{% \ifnum\value{#1}>0 % \Roman{#1}% \else% @@ -2825,22 +2778,21 @@ was added.)\\ } % \end{macrocode} +% \end{macro} % -% \DescribeMacro{\lastpages} -% We provide a command to give the number of pages in a sector -% of a split page numbering scheme (see page~\pageref{pagesLTS.pnscheme.nr},\\ -% |pagesLTS.<page numbering scheme>.<number>.local.cnt|): +% \begin{macro}{\XXRoman} +% In older versions |\XXRoman| was used. For compatibility, it is forwarded to |\XRoman| +% and an error message is given. % % \begin{macrocode} -\newcommand{\lastpages}[2]{% - \@ifundefined{c@pagesLTS.#1.#2.local.cnt}{% - \newcounter{pagesLTS.#1.#2.local.cnt}}{\relax}% - \arabic{pagesLTS.#1.#2.local.cnt}% +\newcommand{\XXRoman}[1]{\XRoman{#1}% + \PackageError{pagesLTS}{Old command \string\XXRoman\space found}{Replaced by \string\XRoman.}% } % \end{macrocode} +% \end{macro} % -% \DescribeMacro{\pagesLTS@ifcounter} +% \begin{macro}{\pagesLTS@ifcounter} % We provide a way to create counters like % \begin{itemize} % \item[-] \DescribeMacro{pagesLTS.pnc. page numbering scheme } @@ -2870,9 +2822,26 @@ was added.)\\ } % \end{macrocode} +% \end{macro} +% +% \begin{macro}{\lastpages} +% We provide a command to give the number of pages in a sector +% of a split page numbering scheme (see page~\pageref{pagesLTS.pnscheme.nr},\\ +% |pagesLTS.<page numbering scheme>.<number>.local.cnt|): +% +% \begin{macrocode} +\newcommand{\lastpages}[2]{% + \pagesLTS@ifcounter{pagesLTS.#1.#2.local.cnt}% + \arabic{pagesLTS.#1.#2.local.cnt}% + } + +% \end{macrocode} +% \end{macro} +% +% \pagebreak % % \begin{macro}{\pagesLTS@writelabel} -% \indent At last defining the writing of a label: +% At last defining the writing of a label: % % \begin{macrocode} \newcommand{\pagesLTS@writelabel}[1]{% @@ -2931,7 +2900,7 @@ was added.)\\ % |\arabic| already supports negative numbers and zero.\\ % |\roman| and |\Roman| support neither negative numbers % nor zero, but are expanded in this package -% (|\xroman| and |\XXRoman|), see page~\pageref{xroman}.\\ +% (|\xroman| and |\XRoman|), see page~\pageref{xroman}.\\ % % \begin{macrocode} @@ -2995,11 +2964,11 @@ was added.)\\ \ifpagesLTS@RomanMulti% % \end{macrocode} % -% The same for |\Roman| page numbering, expanded by |\XXRoman| +% The same for |\Roman| page numbering, expanded by |\XRoman| % (see page~\pageref{xroman}). % % \begin{macrocode} - \renewcommand*{\thepage}{\XXRoman{page}}% + \renewcommand*{\thepage}{\XRoman{page}}% \fi% \else% \ifx\pagesLTS@pnc\pagesLTS@alph% @@ -3116,18 +3085,20 @@ was added.)\\ % and if it \textit{was} used before, % from said counter the number of pages of the preceding uses % of the same page numbering scheme, |pagesLTS.\pagesLTS@pnc.done|, -% is subtracted (same as for the other schemes, see below): +% is subtracted (same as for the other schemes, see below). Instead of introducing a new +% counter (which can be problematic, when the number of available counters is limited), +% we borrow the \texttt{pagesLTS.pnc.0} counter, i.\,e. we save its value to |\pagesLTS@tmpa|, +% (ab)use the counter, and then set it back to its former value as saved in |\pagesLTS@tmpa|. % % \begin{macrocode} \ifx\pagesLTS@pnc\pagesLTS@fns% \ifnum \value{pagesLTS.pnc.\pagesLTS@pnc}>1% - \pagesLTS@ifcounter{pagesLTS.tmpa}% - \setcounter{pagesLTS.tmpa}{\value{pagesLTS.pnc.\pagesLTS@pnc}}% - \addtocounter{pagesLTS.tmpa}{-1}% - \pagesLTS@ifcounter{pagesLTS.tmpb}% - \addtocounter{pagesLTS.tmpb}{\value{pagesLTS.\pagesLTS@pnc.\arabic{pagesLTS.tmpa}.local.count}}% + \mathchardef\pagesLTS@tmpa=\arabic{pagesLTS.pnc.0}% + \setcounter{pagesLTS.pnc.0}{\value{pagesLTS.pnc.\pagesLTS@pnc}}% + \addtocounter{pagesLTS.pnc.0}{-1}% \addtocounter{pagesLTS.\pagesLTS@pnc.\arabic{pagesLTS.pnc.\pagesLTS@pnc}.local.count}{% - -\value{pagesLTS.tmpb}}% + -\value{pagesLTS.\pagesLTS@pnc.\arabic{pagesLTS.pnc.0}.local.count}}% + \setcounter{pagesLTS.pnc.0}{\pagesLTS@tmpa}% \fi% % \end{macrocode} % @@ -3154,18 +3125,21 @@ was added.)\\ % If the page numbering scheme \textit{was} used before, % from said counter the number of pages of the preceding uses % of the same page numbering scheme, |pagesLTS.\pagesLTS@pnc.done|, -% is subtracted. +% is subtracted. Instead of introducing a new +% counter (which can be problematic, when the number of available counters is limited), +% we again borrow the \texttt{pagesLTS.pnc.0} counter (see above). % % \begin{macrocode} \else% - \pagesLTS@ifcounter{pagesLTS.tmpa}% - \setcounter{pagesLTS.tmpa}{\value{pagesLTS.pnc.\pagesLTS@pnc}}% - \addtocounter{pagesLTS.tmpa}{-1}% + \mathchardef\pagesLTS@tmpa=\arabic{pagesLTS.pnc.0}% + \setcounter{pagesLTS.pnc.0}{\value{pagesLTS.pnc.\pagesLTS@pnc}}% + \addtocounter{pagesLTS.pnc.0}{-1}% \pagesLTS@ifcounter{pagesLTS.\pagesLTS@pnc.done}% \addtocounter{pagesLTS.\pagesLTS@pnc.done}{% - \value{pagesLTS.\pagesLTS@pnc.\arabic{pagesLTS.tmpa}.local.count}}% + \value{pagesLTS.\pagesLTS@pnc.\arabic{pagesLTS.pnc.0}.local.count}}% \addtocounter{pagesLTS.\pagesLTS@pnc.\arabic{pagesLTS.pnc.\pagesLTS@pnc}.local.count}{% -\value{pagesLTS.\pagesLTS@pnc.done}}% + \setcounter{pagesLTS.pnc.0}{\pagesLTS@tmpa}% \fi% % \end{macrocode} % @@ -3189,9 +3163,10 @@ was added.)\\ % For further code for the case of \textsf{fnsymbol} please see below % (|\lastpagereftxt|, page~\pageref{lastpagereftxtlabel}).\\ % The last page number is saved, in case the same page -% numbering scheme is continued later: +% numbering scheme is continued later. % % \begin{macrocode} + \pagesLTS@ifcounter{pagesLTS.double.\pagesLTS@pnc}% \setcounter{pagesLTS.double.\pagesLTS@pnc}{\value{page}}% % \end{macrocode} % @@ -3222,7 +3197,7 @@ was added.)\\ % % If page numbering schem |\alph|, |\Alph|, or |\fnsymbol| is used, % \textsf{pagesLTS} extends the page numbers according to -% the given options, using the \textsf{AlphAlph} package. +% the given options, using the \textsf{alphalph} package. % |\arabic| does not need any expansion. % |\roman| and |\Roman| at least receive a definition for % zero. @@ -3323,7 +3298,7 @@ was added.)\\ % % If page numbering scheme |\alph|, |\Alph|, or |\fnsymbol| is used, % \textsf{pagesLTS} extends the page numbers according to -% the given options, using the \textsf{AlphAlph} package. +% the given options, using the \textsf{alphalph} package. % |\arabic| does not need any expansion. % |\roman| and |\Roman| at least receive a definition for % zero. @@ -3511,8 +3486,6 @@ was added.)\\ %% Code not from prelim2e package: %% % \end{macrocode} % -% \pagebreak -% % Therefore each page with \textsf{fnsymbol} page % \textquotedblleft number\textquotedblright\ receives a % |\phantomsection| and a label, which includes a number increased @@ -3558,13 +3531,13 @@ was added.)\\ \immediate\write\@auxout{\string \undonewlabel{pagesLTS.\pagesLTS@pnc.local}{\on@line}}% \else% - \relax % Error: no undolable package at all, message given above - \fi - \fi + \relax% Error: no undolabl package at all, message already given above + \fi% + \fi% \fi% - \addtocounter{page}{+1} + \addtocounter{page}{+1}% \pagesLTS@putlabel{pagesLTS.\pagesLTS@pnc.local}{\theCurrentPageLocal}% - \addtocounter{page}{-1} + \addtocounter{page}{-1}% \fi% %% Code from prelim2e package again: %% }% @@ -3626,6 +3599,32 @@ was added.)\\ \ifnum \value{CurrentPage}=1% This is the first shipout! % \end{macrocode} % +% |\AtBeginDocument| it is checked whether the \textsf{hyperref} package is loaded,\\ +% |\@ifpackageloaded{hyperref}{\gdef\pagesLTS@hyper{1}}{}|.\\ +% |\@ifpackageloaded| cannot be used later than |\AtBeginDocument|.\\ +% Sebastian Bank found 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, +% |\@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.1h of the \textsf{pagesLTS} package, it was checked for +% the |\hyperref| command, but as it turned out, \textsf{tcilatex} \textit{is} +% defining that. If some other package or user is defining |\Hy@Warning|, +% \textsf{pagesLTS} will falsely assume, that \textsf{hyperref} has been loaded, +% but by my humble opinion, defining |\Hy@Warning| does not make sense and +% is bad style (except definition by the \textsf{hyperref} package itself, +% of course). +% +% \begin{macrocode} + \@ifundefined{Hy@Warning}{% hyperref not loaded + }{% hyperref loaded + \gdef\pagesLTS@hyper{1}% + }% +% \end{macrocode} +% % We check whether some page numbering scheme was defined by % |\pagenumbering{...}| (\textbf{as it schould be!}): % @@ -3649,8 +3648,7 @@ was added.)\\ % We save the current value of the page, % % \begin{macrocode} - \newcounter{pagesLTS@tmpD}% - \setcounter{pagesLTS@tmpD}{\value{page}}% + \mathchardef\pagesLTS@tmpD=\arabic{page}% % \end{macrocode} % % determine the current page numbering scheme, @@ -3688,7 +3686,7 @@ was added.)\\ % |\pagenumbering| command. % % \begin{macrocode} - \setcounter{page}{\value{pagesLTS@tmpD}}% + \setcounter{page}{\pagesLTS@tmpD}% \fi% % \end{macrocode} % @@ -3743,6 +3741,8 @@ was added.)\\ % \end{macrocode} % \end{macro} % +% \pagebreak +% % \begin{macro}{\pagesLTS@putlabelhyper} % \indent Here the labels are set, if the \textsf{hyperref} package % was loaded. Simply using |\label| would not work, because labels @@ -3835,21 +3835,29 @@ was added.)\\ \else% % \end{macrocode} % -% If the \textsf{hyperref} package is not used, -% there will be no hyperlinks, -% and the label is written in the way of the -% old \textsf{lastpage} package. +% If the \textsf{hyperref} package is not used, there will be no hyperlinks, +% and the label is written in the way of the old \textsf{lastpage} package. +% But we must remember to undo the label first, if it already exists. % % \begin{macrocode} \if@filesw% - \immediate\write\@auxout{\string - \newlabel{#1}{{}{#2}}}% + \ifnum \value{pagesLTS.pnc.\pagesLTS@pnc}<2% + \immediate\write\@auxout{\string + \newlabel{#1}{{}{#2}}}% + \else% + \edef\pagesLTStmpA{#1}% + \edef\pagesLTStmpB{pagesLTS.\pagesLTS@pnc.local}% + \ifx\pagesLTStmpA\pagesLTStmpB% + \immediate\write\@auxout{\string + \undonewlabel{#1}}% + \fi% + \immediate\write\@auxout{\string + \newlabel{#1}{{}{#2}}}% + \fi% \fi% \fi% % \end{macrocode} % -% \pagebreak -% % After the writeout we restore the page number again, % since there might be other things still to be done. % @@ -3860,6 +3868,8 @@ was added.)\\ % \end{macrocode} % \end{macro} % +% \pagebreak +% % \begin{macro}{\pagesLTS@putlabels} % \indent |\pagesLTS@putlabels| is nearly identical to |\pagesLTS@putlabelV|: % @@ -3925,6 +3935,8 @@ was added.)\\ % \end{macrocode} % \end{macro} % +% \pagebreak +% % \begin{macro}{\AtBeginDocument} % \indent |\AtBeginDocument| it is checked whether writing % into an \xfile{.aux}-file is allowed. The \textsf{pagesLTS} @@ -3941,7 +3953,7 @@ was added.)\\ }% % \end{macrocode} % -% Maybe abortion should be forced? +% Maybe even abortion of the compilation should be forced? % % \begin{macrocode} % \endinput @@ -4003,24 +4015,40 @@ was added.)\\ % % \begin{macrocode} \@ifpackageloaded{lastpage}% - {\PackageWarning{pagesLTS}{Incompatible package lastpage detected:\MessageBreak% - Package pagesLTS was loaded, but also the old\MessageBreak% - lastpage package.\MessageBreak% - pagesLTS has all functionality of the lastpage\MessageBreak% - package (and more), so just remove the lastpage\MessageBreak% - package from your document.\MessageBreak% - pagesLTS will now ''kill'' the lastpage@putlabel\MessageBreak% - command of the lastpage package.\MessageBreak% - }% - \gdef\lastpage@putlabel{\relax}% + {\@ifpackagelater{lastpage}{2010/07/28}% 2010/07/29 v1.2a + {\@ifpackagelater{lastpage}{2010/08/24}% 2010/08/25 v1.2d + {\PackageWarning{pagesLTS}{lastpage package detected.\MessageBreak% + With pagesLTS package in use, lastpage has no function.\MessageBreak% + Just remove the lastpage package from your document.\MessageBreak% + }% + }{% + \PackageWarning{pagesLTS}{Old lastpage package detected.\MessageBreak% + With pagesLTS package in use, lastpage has no function.\MessageBreak% + Just remove the lastpage package from your document.\MessageBreak% + At least update it!\MessageBreak% + }% + }% + }{% + \PackageWarning{pagesLTS}{Incompatible package lastpage detected:\MessageBreak% + Package pagesLTS was loaded, but also an old\MessageBreak% + version of the lastpage package.\MessageBreak% + pagesLTS has all functionality of the lastpage\MessageBreak% + package (and more), so just remove the lastpage\MessageBreak% + package from your document.\MessageBreak% + (At least update it!)\MessageBreak% + pagesLTS will now ''kill'' the lastpage@putlabel\MessageBreak% + command of the lastpage package.\MessageBreak% + }% + \gdef\lastpage@putlabel{\relax}% + }% }{}% % \end{macrocode} % -% Further it is checked whether the \textsf{AlphAlph} package is loaded. +% Further it is checked whether the \textsf{alphalph} package is loaded. % % \begin{macrocode} \@ifpackageloaded{alphalph}% - {\PackageInfo{pagesLTS}{Package AlphAlph detected.\MessageBreak% + {\PackageInfo{pagesLTS}{Package alphalph detected.\MessageBreak% pagesLTS supports alphalph. Congratulations!\MessageBreak% }% % \end{macrocode} @@ -4050,10 +4078,10 @@ was added.)\\ {\ifx\pagesLTS@alphMult\pagesLTS@zero% \PackageWarning{pagesLTS}{\pagesLTS@messageaMz }% \else% - \PackageError{pagesLTS}{Package AlphAlph not loaded}% - {Package AlphAlph was not loaded, but package pagesLTS\MessageBreak% + \PackageError{pagesLTS}{Package alphalph not loaded}% + {Package alphalph was not loaded, but package pagesLTS\MessageBreak% was called without option alphMult=0 (zero).\MessageBreak% - Either load package AlphAlph,\MessageBreak% + Either load package alphalph,\MessageBreak% or give option alphMult=0 (zero) to the pagesLTS package.\MessageBreak% }% \fi% @@ -4061,18 +4089,18 @@ was added.)\\ \PackageWarning{pagesLTS}{\pagesLTS@messageAMiz }% \relax% \else% - \PackageError{pagesLTS}{Package AlphAlph not loaded}% - {Package AlphAlph was not loaded, but package pagesLTS\MessageBreak% + \PackageError{pagesLTS}{Package alphalph not loaded}% + {Package alphalph was not loaded, but package pagesLTS\MessageBreak% was called without option AlphMulti=0 (zero).\MessageBreak% - Either load package AlphAlph,\MessageBreak% + Either load package alphalph,\MessageBreak% or give option AlphMulti=0 (zero) to the pagesLTS package.\MessageBreak% }% \fi% \ifpagesLTS@fnsymbolmult% - \PackageError{pagesLTS}{Package AlphAlph not loaded}% - {Package AlphAlph was not loaded, but package pagesLTS\MessageBreak% + \PackageError{pagesLTS}{Package alphalph not loaded}% + {Package alphalph was not loaded, but package pagesLTS\MessageBreak% was called without option fnsymbolmult=false.\MessageBreak% - Either load package AlphAlph,\MessageBreak% + Either load package alphalph,\MessageBreak% or give option fnsymbolmult=false to the pagesLTS package.\MessageBreak% }% \else% @@ -4096,8 +4124,8 @@ was added.)\\ % \begin{macrocode} \@ifpackageloaded{pdfpages}% {\PackageWarning{pagesLTS}{Package pdfpages detected.\MessageBreak% - Using hyperref with pdfpages can cause problems.\MessageBreak% - See ftp://ftp.ctan.org/tex-archive/macros/latex/contrib/pax/ \MessageBreak% + Using hyperref with pdfpages can cause problems. See\MessageBreak% + ftp://ftp.ctan.org/tex-archive/macros/latex/contrib/pax/\MessageBreak% for project pax (PDFAnnotExtractor).\MessageBreak% }% }{\relax}% @@ -4109,18 +4137,29 @@ was added.)\\ % \begin{macrocode} \@ifpackageloaded{undolabl}% {\@ifpackagelater{undolabl}{2010/07/14}% 2010/07/15 v1.0d - {\gdef\pagesLTS@undolable{new}% + {\gdef\pagesLTS@undolable{new}% not necessarily newest, but new + \@ifpackagelater{undolabl}{2010/07/28}% 2010/07/29 v1.0f + {% recent version as of the time of last revision of this package: OK + }{% old, but not obsolete version + \PackageWarningNoLine{pagesLTS}{Old version of undolabl package used.\MessageBreak% + See ftp://ftp.ctan.org/tex-archive/macros/latex/contrib/undolabl/ \MessageBreak% + for a new version.\MessageBreak% + }% + } }{\gdef\pagesLTS@undolable{old}% - \PackageWarning{pagesLTS}{Obsolete version of undolabl package used.\MessageBreak% + \PackageError{pagesLTS}{Obsolete version of undolabl package used.}{% See ftp://ftp.ctan.org/tex-archive/macros/latex/contrib/undolabl/ \MessageBreak% for a new version.\MessageBreak% + \@ehc% }% } }{\gdef\pagesLTS@undolable{none}% \PackageError{pagesLTS}{Package undolabl missing}{% - Package undolable not found.\MessageBreak% - The pagesLTS package needs the undolable package.\MessageBreak% - Please see the pagesLTS documentation on how to get it.\MessageBreak% + Package undolabl not found.\MessageBreak% + The pagesLTS package needs the undolabl package.\MessageBreak% + See e.g.\MessageBreak% + ftp://ftp.ctan.org/tex-archive/macros/latex/contrib/undolabl/ \MessageBreak% + \@ehd% }% } % \end{macrocode} @@ -4141,42 +4180,9 @@ was added.)\\ %% Heiko Oberdiek (hyperref version 2010/06/18 v6.81g). %% pagesLTS may work with earlier versions of this packages, %% but this was not tested. -% \end{macrocode} -% -% The \textsf{hyperref} package redefines the |\lastpage@putlabel| command -% of the \textsf{lastpage} package and further does something, -% if the \textsf{revtex4} class is used. With |\pagesLTS@putlabelhyper| -% instead of |\lastpage@putlabel| the code from the \textsf{hyperref} package -% is this: -% -% \begin{macrocode} - %% Code from hyperref package, where \lastpage@putlabel was replaced - %% by \pagesLTS@putlabelhyper. But what does it do/what is it good for? - %% - %% \@ifclassloaded{revtex4}{% - %% \begingroup - %% \toks@\expandafter{\pagesLTS@putlabelhyper}% - %% \edef\x{\endgroup - %% \def\noexpand\pagesLTS@putlabelhyper{% - %% \noexpand\stepcounter{page}% - %% \the\toks@ - %% \noexpand\addtocounter{page}\noexpand\m@ne - %% }% - %% }% - %% \x - %% }{}% - %% -% \end{macrocode} -% -% Without knowing what it does, I did not want to use the code. -% If you can explain it to me, please send me an e-mail, thanks! -% -% \begin{macrocode} }% % \end{macrocode} % -% \pagebreak -% % If no \textsf{hyperref} package in use is detected, a warning is issued, too: % % \begin{macrocode} @@ -4184,11 +4190,29 @@ was added.)\\ pagesLTS would support hyperref. The page references\MessageBreak% will NOT be hyperlinked!\MessageBreak }% }% +% \end{macrocode} +% +% We want the rerun-hint (see below) to appear after e.\,g. the |listfiles|, +% and therefore append it (|\pagesLTS@rerunwarning|) to |\@dofilelist| +% (trick found in Harald Harders' \textsf{fnbreak} package, thanks!): +% +% \begin{macrocode} + \newcommand\pagesLTS@dofilelist{}% + \let\pagesLTS@dofilelist\@dofilelist% + \def\@dofilelist{\pagesLTS@dofilelist\pagesLTS@rerunwarning}% } % \end{macrocode} % \end{macro} % +% Initially, we define |\pagesLTS@rerunwarning| to be empty: +% +% \begin{macrocode} +\newcommand\pagesLTS@rerunwarning{}% +\let\pagesLTS@rerunwarning\relax% + +% \end{macrocode} +% % \begin{macro}{\AtEndDocument} % \indent |\AtEndDocument| we put in a |\message| to show, % in what order things (which were called) are done @@ -4201,9 +4225,7 @@ was added.)\\ % % After this we issue a |\clearpage| to put out all floats, % which are still floatig, remember the page number (if |fnsymbol|), -% and after that we place the \texttt{LastPage} label. If the old -% \textsf{lastpage} package was detected, we override its -% |LastPage| label. +% and after that we place the \texttt{LastPage} label. % % \begin{macrocode} \clearpage% @@ -4249,8 +4271,6 @@ was added.)\\ \fi% % \end{macrocode} % -% \pagebreak -% % If the \textsf{hyperref} package is in use, and the page numbering scheme % of the last page is \textsf{fnsymbol}, everything is quite more complicated. % Therefore |\lastpageref| is switched from simple |\lastpagereftxt| @@ -4279,18 +4299,18 @@ was added.)\\ % \end{macrocode} % % And we are one page after the last one (|\AfterLastShipout|!), -% so we go back one page. +% so we go back one page. (We again borrow the \texttt{pagesLTS.pnc.0} counter for the computations +% instead of defining yet another one.) % % \begin{macrocode} \addtocounter{pagesLTS.\pagesLTS@pnc.\arabic{pagesLTS.pnc.\pagesLTS@pnc}.local.count}{-1} \ifnum \value{pagesLTS.pnc.\pagesLTS@pnc}>1% - \pagesLTS@ifcounter{pagesLTS.tmpA}% - \setcounter{pagesLTS.tmpA}{\value{pagesLTS.pnc.\pagesLTS@pnc}}% - \addtocounter{pagesLTS.tmpA}{-1}% - \pagesLTS@ifcounter{pagesLTS.tmpB}% - \addtocounter{pagesLTS.tmpB}{\value{pagesLTS.\pagesLTS@pnc.\arabic{pagesLTS.tmpA}.local.count}}% + \mathchardef\pagesLTS@tmpD=\arabic{pagesLTS.pnc.0}% + \setcounter{pagesLTS.pnc.0}{\value{pagesLTS.pnc.\pagesLTS@pnc}}% + \addtocounter{pagesLTS.pnc.0}{-1}% \addtocounter{pagesLTS.\pagesLTS@pnc.\arabic{pagesLTS.pnc.\pagesLTS@pnc}.local.count}{% - -\value{pagesLTS.tmpB}}% + -\value{pagesLTS.\pagesLTS@pnc.\arabic{pagesLTS.pnc.0}.local.count}}% + \setcounter{pagesLTS.pnc.0}{\pagesLTS@tmpD}% \fi% \if@filesw% \immediate\write\@auxout{\string @@ -4362,10 +4382,7 @@ was added.)\\ % rerun hints, final messages.\textquotedblright % \end{quote} % (\textsf{atveryend} package of Heiko Oberdiek, v1.5 as of 2010/03/24)\\ -% Here it is used for a rerun hint. Unfortunately, this hint is presented -% to the user \textit{before} the list of used -% files/styles/classes/packages\ldots (of |\listfiles| command), -% so the user has a chance to miss it.\\ +% Here it is used for a rerun hint.\\ % For example if the page numbering scheme of the last page % of the \textsf{pagesLTS-example.tex} file is changed to |fnsymbol| and two runs % of \pdfLaTeX\ are done, \pdfLaTeX\ will be happy and will not complain @@ -4375,9 +4392,11 @@ was added.)\\ % \begin{macrocode} \AtVeryEndDocument{% \ifx\pagesLTS@rerun\pagesLTS@one% - \PackageWarningNoLine{pagesLTS}{Label(s) may have changed.\MessageBreak% - Rerun to get cross-references right.\MessageBreak% - }% + \def\pagesLTS@rerunwarning{% + \PackageWarningNoLine{pagesLTS}{Label(s) may have changed.\MessageBreak% + Rerun to get cross-references right.\MessageBreak% + }% + }% \fi% } @@ -4408,7 +4427,7 @@ was added.)\\ % % \item[-] package \textsf{hypdoc}, 2010/03/26, v1.9, \CTAN{macros/latex/contrib/oberdiek/hypdoc.dtx} % -% \item[-] package \textsf{geometry}, 2010/03/13, v5.3, \CTAN{macros/latex/contrib/geometry/geometry.dtx} +% \item[-] package \textsf{geometry}, 2010/07/13, v5.5, \CTAN{macros/latex/contrib/geometry/geometry.dtx} % \end{description} % % \DescribeMacro{pagesLTS.sty} @@ -4423,21 +4442,9 @@ was added.)\\ % % \item[-] package \textsf{kvoptions}, 2010/02/22, v3.7, \CTAN{macros/latex/contrib/oberdiek/kvoptions.dtx} % -% \item[-] package \textsf{undolabl}, 2010/07/15, v1.0d, \CTAN{macros/latex/contrib/undolabl.dtx}\\ +% \item[-] package \textsf{undolabl}, 2010/07/29, v1.0f, \CTAN{macros/latex/contrib/undolabl/undolabl.dtx}\\ % \end{description} % -% \DescribeMacro{lastpage209.sty} -% The |lastpage209.sty| for \LaTeX209\ (i.\,e. all documents using -% the \textsf{lastpage209} package) requires: -% \begin{description} -% \item[-] \TeX Format \LaTeX, v2.09 -% \end{description} -% but only provides the |LastPage| Label - nothing else!\\ -% (You can get it also by un-commenting the\\ -% \texttt{ \%\% \textbackslash file\{lastpage209.sty\}\{\textbackslash from\{pagesLTS.dtx\}\{lastpage209\}\}\% }\\ -% line in the \xfile{pagesLTS.ins} file and running\\ -% |tex pagesLTS.ins|.)\\ -% % \DescribeMacro{pagesLTS-example.tex} % The |pagesLTS-example.tex| requires the same files as all % documents using the \textsf{pagesLTS} package, and additionally: @@ -4452,7 +4459,7 @@ was added.)\\ % % \item[-] package \textsf{hyperref}, 2010/06/18, v6.81g, \CTAN{macros/latex/contrib/hyperref.zip} % -% \item[-] package \textsf{pagesLTS}, 2010/07/15, v1.1d, \CTAN{macros/latex/contrib/pagesLTS/pagesLTS.dtx}\\ +% \item[-] package \textsf{pagesLTS}, 2010/08/25, v1.1i, \CTAN{macros/latex/contrib/pagesLTS/pagesLTS.dtx}\\ % (Well, it is the example file for this package, and because you are reading the % documentation for the \textsf{pagesLTS} package, it can be assumed that you already % have some version of it -- is it the current one?) @@ -4462,7 +4469,7 @@ was added.)\\ % The \textsf{papermas} package is not required, but requires itself the % the \textsf{pagesLTS} package and can be considered as kind of add-on: % \begin{description} -% \item[-] package \textsf{papermas}, 2010/06/24, v1.0c, \CTAN{macros/latex/contrib/papermas/papermas.dtx} +% \item[-] package \textsf{papermas}, 2010/07/29, v1.0d, \CTAN{macros/latex/contrib/papermas/papermas.dtx} % \end{description} % % \DescribeMacro{endfloat} @@ -4492,6 +4499,14 @@ was added.)\\ % \item[-] package \textsf{nccfancyhdr}, 2004/12/07, v1.1, \CTAN{macros/latex/contrib/ncctools/source/nccfancyhdr.dtx} % \end{description} % +% \DescribeMacro{fnbreak} +% Harald Harders' \textsf{fnbreak} (footnote break warning) package is neither required +% nor used here, but because the trick to give rerun warnings \textit{after} e.\,g. the |\listfiles| +% was taken from it, the package is listed here: +% \begin{description} +% \item[-] package \textsf{fnbreak}, 2010/08/09, v1.20, \CTAN{macros/latex/contrib/fnbreak.zip} +% \end{description} +% % \DescribeMacro{count1to} % \DescribeMacro{nofm} % \DescribeMacro{totpages} @@ -4524,8 +4539,6 @@ was added.)\\ % are also available in a TDS compliant ZIP archive:\\ % \CTAN{install/macros/latex/contrib/oberdiek.tds.zip}.\\ % -% \pagebreak -% % \textbf{Warning}: holtxdoc, 2010/04/24 v0.19, requires the packages % \begin{description} % \item[-] hypdoc, 2010/03/26, v1.9 @@ -4543,26 +4556,46 @@ was added.)\\ % recent and compatible.)\\ % % \DescribeMacro{M\"{u}nch} -% Packages of mine:\\ +% Packages of mine (alphabetically ordered):\\ % \begin{description} -% \item[undolabl] 2010/07/15, v1.0d, \CTAN{macros/latex/contrib/undolabl.dtx}\\ -% That package allows to override existing labels, especially automatically generated ones.\\ -% (Code initally by Ulrich Dietz on \Newsgroup{comp.text.tex} at -% \texttt{Mon,~21~Apr~2008~23:04:03~+0200}, see e.\,g. -% \url{http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da}.) -% -% \item[pagesLTS] 2010/07/15, v1.1d, \CTAN{macros/latex/contrib/pagesLTS.dtx}\\ -% The package described in this very documentation. +% \item[hrefhide] 2010/07/29, v1.0d, \CTAN{macros/latex/contrib/hrefhide/hrefhide.dtx} and\\ +% \CTAN{install/macros/latex/contrib/hrefhide.tds.zip}\\ +% That package allows to \textquotedblleft hide\textquotedblright\ some (hyperlinked) +% text when printing the document while keeping the layout. % -% \item[papermas] 2010/06/24, v1.0c, \CTAN{macros/latex/contrib/papermas.dtx}\\ +% \item[lastpage] 2010/08/25, v1.2c, \CTAN{macros/latex/contrib/lastpage/lastpage.dtx} and\\ +% \CTAN{install/macros/latex/contrib/lastpage.tds.zip}\\ +% That package allows to refer to the (maybe not so) last page. +% \textit{The package was originally invented by Jeffrey P. Goldberg.} +% The \textsf{pagesLTS} package is much more mighty, but needs more resources +% (e.\,g.~new counters).\\ +% +% \item[pagesLTS] 2010/08/25, v1.1i, \CTAN{macros/latex/contrib/pagesLTS/pagesLTS.dtx} and\\ +% \CTAN{install/macros/latex/contrib/pagesLTS.tds.zip}\\ +% The package described in this very documentation:\\ +% This package allows to refer to the (very) last page, gives the total number of +% pages, references to special pages, facilitates the use of nearly any pagenumbering +% you like (e.\,g. negative |Roman| numbers or more than |Z| pages with |Alph| page numbering), +% and works even with |fnsymbol| page numbers. +% +% \item[papermas] 2010/07/29, v1.0d, \CTAN{macros/latex/contrib/papermas/papermas.dtx} and\\ +% \CTAN{install/macros/latex/contrib/papermas.tds.zip}\\ % That package allows to compute the number of sheets of paper needed to % print a document as well as the mass of that printed version of the document. % Further that package allows to compute \textquotedblleft base to the power of % exponent\textquotedblright\ inside \LaTeX. % -% \item[hrefhide] 2010/06/24, v1.0c, \CTAN{macros/latex/contrib/hrefhide.dtx}\\ -% That package allows to \textquotedblleft hide\textquotedblright\ some (hyperlinked) -% text when printing the document while keeping the layout. +% \item[undolabl] 2010/07/29, v1.0f, \CTAN{macros/latex/contrib/undolabl/undolabl.dtx} and\\ +% \CTAN{install/macros/latex/contrib/undolabl.tds.zip}\\ +% That package allows to override existing labels, especially automatically generated ones. +% \textit{The main code of that package was invented by } +% \textbf{Ulrich Diez} (\texttt{eu\_angelion@web.de})\textit{\ and first published in the } +% \Newsgroup{comp.text.tex} \textit{\ newsgroup at } +% \texttt{Sun,~20~Apr~2008~16:39:26~+0200}\textit{, with subject:} +% \texttt{Re:~How~to~undefine/overwrite~a~label?}\textit{\ (see e.\,g.\ } +% \url{http://groups.google.de/group/comp.text.tex/msg/5ba8d4722e5cd326?dmode=source} +% \textit{\ as well as\ }\\ +% \url{http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source}\textit{).} % \end{description} % % \pagebreak @@ -4587,7 +4620,7 @@ was added.)\\ % The example file. % \item[\CTAN{macros/latex/contrib/pagesLTS/pagesLTS-example.pdf}]\hspace*{0.1cm} \\ % The compiled example file, as it should look like. -% \item[\CTAN{install/macros/latex/contrib/pagesLTS.tds.zip}]\hspace*{0.1cm} \\ +% \item[\CTAN{install/macros/latex/contrib/pageslts.tds.zip}]\hspace*{0.1cm} \\ % Everything in TDS compliant, compiled format. % \end{description} % @@ -4613,7 +4646,6 @@ was added.)\\ % pagesLTS-example.tex & doc/latex/muench/pagesLTS-example.tex\\ % pagesLTS-example.pdf & doc/latex/muench/pagesLTS-example.pdf\\ % pagesLTS.dtx & source/latex/muench/pagesLTS.dtx\\ -% (lastpage209.sty & tex/latex/lastpage209.sty for \LaTeX209)\\ % \end{tabular}^^A % }^^A % \sbox0{\t}^^A @@ -4733,12 +4765,6 @@ was added.)\\ % and will need \textit{at least} (!) three compiler runs to get % all references right. % -% \section{Things suggested to be done\label{sec:todo}} -% -% \begin{itemize} -% \item Include a correct checksum for \textsf{pagesLTS}. -% \end{itemize} -% % \pagebreak % % \section{Acknowledgements} @@ -4783,14 +4809,16 @@ was added.)\\ % \addtocounter{page}{1}} % \AtEndDocument{% % \message{AED: lastpage setting LastPage}% -% \clearpage\pagesLTS@putlabel}% +% \clearpage\lastpage@putlabel}% % \endinput % \end{verbatim} % and then \textsf{hyperref} even redefines |\lastpage@putlabel|. % \end{Version} % \begin{Version}{2010/02/18, \textsf{lastpage}} % \item \textsf{lastpage} v1.1: Proposed |LastPages| label by H.-Martin M\"{u}nch -% on \Newsgroup{comp.text.tex} +% on \Newsgroup{comp.text.tex}, see e.\,g. +% \url{http://groups.google.com/group/comp.text.tex/msg/4407493da9c747f0?dmode=source}; +% now available in this \textsf{pagesLTS} package. % \end{Version} % \begin{Version}{2010/05/15 v1.0} % \item \textsf{pagesLTS} Complete rewriting of the package, so as to work with @@ -4820,7 +4848,7 @@ was added.)\\ % \item New package name: \textsf{pagesLTS} for Last, Total, % and page numbering Schemes pages. % \end{Version} -% \begin{Version}{2010/06/01 v1.1} +% \begin{Version}{2010/06/01 v1.1(a)} % \item Abstract changed: Negative \texttt{roman} and \texttt{Roman} page % numbers are now possible. % \item Some references to other packages have been updated. @@ -4859,6 +4887,42 @@ was added.)\\ % (Should not \textsf{hyperref} give this warning?) % \item The usual correction of typos and minor details in the documentation. % \end{Version} +% \begin{Version}{2010/07/29 v1.1e} +% \item Removed \textsf{lastpage209.sty}, because it is now contained +% in the \textsf{lastpage}\xfile{.dtx}\ file, v\,$\geq 1.2$a. +% \item Removed the |\@ifclassloaded{revtex4}| code for |\lastpage@putlabel|. +% \item Handling of \textsf{lastpage} package adapted to updated version~1.2(a). +% \item There is a new version of the used \textsf{geometry} package: 2010/07/13,~v5.5. +% \item Corrected error in \textsf{lastpage} code [1994/07/20 v0.1b] given in \ref{History}~History. +% \item Version handling for \textsf{undolabl} package updated. +% \item Included a |\CheckSum|. +% \item Some minor details. +% \end{Version} +% \begin{Version}{2010/08/08 v1.1f} +% \item Version 1.1e had a bug: AlphAlph was replaced by alphalph (because that package is named like this), +% but this was done also in commands and definitions~- now reverted. +% \item The recent version of the Adobe Reader is 9.3.3 (instead of 9.3.1). +% \end{Version} +% \begin{Version}{2010/08/12 v1.1g} +% \item Now the rerun warning is given \textit{after} e.\,g. the |\listfiles|, +% increasing the chance of the user to read it (trick found in +% Harald Harders' \textsf{fnbreak} package, thanks!). +% \end{Version} +% \begin{Version}{2010/08/23 v1.1h} +% \item Renamed |\XXRoman| to |\XRoman|. +% \item Reduced the number of needed counters. +% \item Removed wrong \% from the driver file. +% \item Changed the |\unit| definition (got rid of an old |\rm|). +% \item Without use of the \textsf{hyperref} package, labels of type +% \texttt{pagesLTS.}\meta{page numbering scheme}\texttt{.local} +% became multiply defined. Now an |\undolabl| was inserted. +% \item Diverse details. +% \end{Version} +% \begin{Version}{2010/08/25 v1.1i} +% \item Bug fix: \textsf{tcilatex} defines the |\hyperref| command, therefore +% for \textsf{hyperref} package detection this had to be changed to +% |\Hy@Warning|. +% \end{Version} % \end{History} % % % \PrintChanges @@ -4879,5 +4943,4 @@ was added.)\\ % \PrintIndex % % \Finale -% \endinput
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/pageslts/pagesLTS.ins b/Master/texmf-dist/source/latex/pageslts/pagesLTS.ins index d80ec5857de..d3684510230 100644 --- a/Master/texmf-dist/source/latex/pageslts/pagesLTS.ins +++ b/Master/texmf-dist/source/latex/pageslts/pagesLTS.ins @@ -59,7 +59,7 @@ \obeyspaces \Msg{******************************************************} \Msg{* Installation *} -\Msg{* Package: pagesLTS v1.1d 2010/07/15 LaTeX2e package *} +\Msg{* Package: pagesLTS v1.1i 2010/08/25 LaTeX2e package *} \Msg{* Refers to special pages' numbers/names (HMM) *} \Msg{******************************************************} @@ -126,7 +126,6 @@ and the derived files \file{ltxdoc.cfg}{\from{pagesLTS.dtx}{ltxdoc}}% \usedir{tex/latex/muench/pagesLTS}% \file{pagesLTS.sty}{\from{pagesLTS.dtx}{package}}% - %%\file{lastpage209.sty}{\from{pagesLTS.dtx}{lastpage209}}% \usedir{doc/latex/muench/pagesLTS}% \file{pagesLTS-example.tex}{\from{pagesLTS.dtx}{example}}% } |