diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pagesLTS/pagesLTS.sty | 75 |
1 files changed, 45 insertions, 30 deletions
diff --git a/Master/texmf-dist/tex/latex/pagesLTS/pagesLTS.sty b/Master/texmf-dist/tex/latex/pagesLTS/pagesLTS.sty index df478ae5cfe..3596355be96 100644 --- a/Master/texmf-dist/tex/latex/pagesLTS/pagesLTS.sty +++ b/Master/texmf-dist/tex/latex/pagesLTS/pagesLTS.sty @@ -55,7 +55,7 @@ %% pagesLTS-example.tex. %% \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesPackage{pagesLTS}[2010/09/27 v1.1l +\ProvidesPackage{pagesLTS}[2010/09/27 v1.1m Refers to special pages' numbers/names (HMM)]% %% Allows for things like\\ @@ -71,9 +71,9 @@ %% 'Page d (57; local: 4) of ii(2) + XX(20) + *(1) + 30(30) + e(5) + C(3) = 61 pages.'. \RequirePackage{atveryend}[2010/03/24]% v1.5 -\RequirePackage{everyshi}[2001/05/15]%v 3.00 +\RequirePackage{everyshi}[2001/05/15]% v3.00 \RequirePackage{kvoptions}[2010/02/22]% v3.7 -\RequirePackage{undolabl}[2010/09/12]% v1.0g +\RequirePackage{undolabl}[2011/02/01]% v1.0h %% pagesLTS package uses Prelim@EveryShipout code from the %% prelim2e package [2009/05/29 v1.3] by Martin Schr\"{o}der, thanks! @@ -89,8 +89,8 @@ \SetupKeyvalOptions{family = pagesLTS,prefix = pagesLTS@} \DeclareBoolOption[true]{pagecontinue} % \pagesLTS@pagecontinue -\DeclareStringOption{alphMult}[ab] -\DeclareStringOption{AlphMulti}[AB] +\DeclareStringOption[ab]{alphMult} +\DeclareStringOption[AB]{AlphMulti} \DeclareBoolOption[true]{romanMult} \DeclareBoolOption[true]{RomanMulti} \DeclareBoolOption[true]{fnsymbolmult} @@ -271,6 +271,7 @@ \def\lastpageref{\lastpagereftxt} \def\pagesLTS@undolable{none} \def\pncmissing{0} +\def\pagesLTS@SK{0} \def\pagesLTS@messageNPN{% The pagesLTS package was used, but\MessageBreak% \textbackslash pagenumbering\MessageBreak% @@ -297,11 +298,11 @@ \newcounter{pagesLTS.pnc.0} \newcommand{\xroman}[1]{% - \ifnum\value{#1}>0 % + \ifnum\value{#1}>0% \roman{#1}% \else% - \ifnum\value{#1}<0 % - -\romannumeral\number-\arabic{#1} + \ifnum\value{#1}<0% + -\romannumeral\number-\arabic{#1}% \else% 0% \fi% @@ -309,10 +310,10 @@ } \newcommand{\XRoman}[1]{% - \ifnum\value{#1}>0 % + \ifnum\value{#1}>0% \Roman{#1}% \else% - \ifnum\value{#1}<0 % + \ifnum\value{#1}<0% -\expandafter\@slowromancap\romannumeral\number-\arabic{#1}@% \else% 0% @@ -350,15 +351,15 @@ %% The following code is from Heiko Oberdiek [2010/04/18], %% %% expanding his alphalph package [2010/04/18] v2.3. (Thanks!) %% \newcommand*{\erroralphalph}[2]{% - \ifnum\value{#2}>0 % + \ifnum\value{#2}>0% #1{\value{#2}}% - \else - \ifnum\value{#2}<0 % + \else% + \ifnum\value{#2}<0% -#1{\expandafter\@gobble\the\value{#2}}% - \else + \else% 0% - \fi - \fi + \fi% + \fi% } %% End of code from Heiko Oberdiek %% %% Check and Error/Warning messages have been moved to %% @@ -686,7 +687,7 @@ \fi% \fi% \pagesLTS@putlabel{#1}{#2}{0}% - \@esphack + \@esphack% } \newcommand{\@pagesLTS@Prelim@EveryShipout}{% @@ -746,7 +747,7 @@ \EveryShipout{% \ifnum\value{page}>0% \relax% - \else + \else% \ifnum\value{page}=0% \PackageWarning{pagesLTS}{% Counter `page' is zero!\MessageBreak% @@ -755,7 +756,7 @@ (see Page counter overflow in the pagesLTS\MessageBreak% documentation), without other measures\MessageBreak% this will lead to a counter overflow.\MessageBreak% - } + }% \else% \ifnum\value{page}<0% \PackageWarning{pagesLTS}{% @@ -765,13 +766,13 @@ (see Page counter overflow in the pagesLTS\MessageBreak% documentation), without other measures\MessageBreak% this will lead to a counter overflow.\MessageBreak% - } + }% \else% \PackageError{pagesLTS}{% Counter `page' does not have a recognized value:\MessageBreak% `\the\value{page}'\MessageBreak% \@ehd \MessageBreak% - } + }% \fi% \fi% \fi% @@ -780,12 +781,12 @@ }{% hyperref loaded \gdef\pagesLTS@hyper{1}% }% - \ifx\pagesLTS@called\pagesLTS@zero + \ifx\pagesLTS@called\pagesLTS@zero% \global\def\pncmissing{1}% \mathchardef\pagesLTS@tmpD=\arabic{page}% %% Code from Andres L\"{o}h, Universiteit Utrecht (NL) %% - \def\extract#1{\expandafter\extract@ #1\END} - \def\extract@#1\csname @#2\endcsname#3\END{#2} + \def\extract#1{\expandafter\extract@ #1\END}% + \def\extract@#1\csname @#2\endcsname#3\END{#2}% \edef\pagesLTS@tmpQ{\extract\thepage}% %% End of code from Andres L\"{o}h %% \let\pagesLTS@tmpP\pagesLTS@tmpQ% @@ -858,6 +859,17 @@ \newcommand{\pagesLTS@putlabel}[3]{% \addtocounter{page}{-1}% + \ifx\pagesLTS@SK\pagesLTS@one% + \message{^^J}% + \message{Package pagesLTS Warning: Package showkeys without option final loaded,}% + \ifnum\value{pagesLTS.pagenr}<1% + \message{(pagesLTS) but label #1 on page \thepage\space(about \theCurrentPage)}% + \else% + \message{(pagesLTS) but label #1 on page \thepage\space(about \theCurrentPage\space of \arabic{pagesLTS.pagenr})}% + \fi% + \message{(pagesLTS) cannot be shown, because pagesLTS does not use \string\label,}% + \message{(pagesLTS) but writes directly to the \jobname.aux file. ^^J}% + \fi% \ifx\pagesLTS@hyper\pagesLTS@one% \pagesLTS@putlabelhyper{#1}{#2}% \else% @@ -901,8 +913,8 @@ \fi% \fi% \addtocounter{page}{+1}% - \pagesLTS@putlabel{LastPages}{\theCurrentPage}{1} - \addtocounter{CurrentPage}{1}% + \pagesLTS@putlabel{LastPages}{\theCurrentPage}{1}% + \addtocounter{CurrentPage}{+1}% \addtocounter{pagesLTS.current.local.\pagesLTS@pnc}{1}% } @@ -943,7 +955,7 @@ }{}% \@ifpackageloaded{lastpage}% {\@ifpackagelater{lastpage}{2010/07/28}% 2010/07/29 v1.2a - {\@ifpackagelater{lastpage}{2010/09/11}% 2010/09/12 v1.2e + {\@ifpackagelater{lastpage}{2011/01/31}% 2011/02/01 v1.2g {\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% @@ -1024,7 +1036,7 @@ }{\relax}% \@ifpackageloaded{undolabl}% {\@ifpackagelater{undolabl}{2010/07/14}% 2010/07/15 v1.0d - {\@ifpackagelater{undolabl}{2010/09/11}% 2010/09/12 v1.0g + {\@ifpackagelater{undolabl}{2011/01/31}% 2011/02/01 v1.0h {% 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% @@ -1046,7 +1058,7 @@ Type X <return> to quit.\MessageBreak% }% } - \@ifpackagelater{hyperref}{2010/09/12}{% 2010/09/13 v6.81n + \@ifpackagelater{hyperref}{2010/12/15}{% 2010/12/16 v6.81z \relax}{% \PackageWarningNoLine{pagesLTS}{Old hyperref package detected:\MessageBreak% There is a newer version of the\MessageBreak% @@ -1055,7 +1067,7 @@ }% }% %% pagesLTS supports the use of the package hyperref by - %% Heiko Oberdiek (hyperref version 2010/09/13 v6.81n). + %% Heiko Oberdiek (hyperref version 2010/12/16 v6.81z). %% pagesLTS may work with earlier versions of this packages, %% but this was not tested. }% @@ -1063,6 +1075,9 @@ pagesLTS would support hyperref. The page references\MessageBreak% will NOT be hyperlinked!\MessageBreak }% }% + \@ifpackageloaded{showkeys}{% + \@ifpackagewith{showkeys}{final}{\relax}{\gdef\pagesLTS@SK{1}}% + }{\relax}% \newcommand\pagesLTS@dofilelist{}% \let\pagesLTS@dofilelist\@dofilelist% \def\@dofilelist{\pagesLTS@dofilelist\pagesLTS@rerunwarning}% |