diff options
author | Karl Berry <karl@freefriends.org> | 2013-01-29 23:35:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-01-29 23:35:09 +0000 |
commit | 1df4164cecf42b2410d61a4494aa043968db89de (patch) | |
tree | eeec7d19980682aee06c67c8e01da8859d35885b /Master/texmf-dist/tex/latex/pageslts | |
parent | 2aa50a550686e193749ba9cf09b3398452fa8e1d (diff) |
pageslts (29jan13)
git-svn-id: svn://tug.org/texlive/trunk@28986 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pageslts')
-rw-r--r-- | Master/texmf-dist/tex/latex/pageslts/pageslts.sty | 93 |
1 files changed, 61 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/pageslts/pageslts.sty b/Master/texmf-dist/tex/latex/pageslts/pageslts.sty index efc29f2b8b5..063a76174cd 100644 --- a/Master/texmf-dist/tex/latex/pageslts/pageslts.sty +++ b/Master/texmf-dist/tex/latex/pageslts/pageslts.sty @@ -8,6 +8,13 @@ %% %% This is a generated file. %% +%% Project: pageslts +%% Version: 2013/01/28 v1.2b +%% +%% Copyright (C) 2010 - 2013 by +%% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> +%% Portions of code copyrighted by other people as marked. +%% %% IMPORTANT NOTICE: %% On the first page backslash pagenumbering should be called %% (with the appropriate argument out of e.g. @@ -16,8 +23,8 @@ %% * arabic - Arabic numerals: 1, 2, 3, 4,... %% * alph - Lowercase letters: a, b, c, d,... %% * Alph - Uppercase letters: A, B, C, D,... -%% * fnsymbol - Footnote symbols: *, ^^86 (ddagger), ^^87 (dddagger), -%% ^^a7 (mathsection),... +%% * fnsymbol - Footnote symbols: *, ^^e2^^80^^a0 (ddagger), ^^e2^^80^^a1 (dddagger), +%% ^^c2^^a7 (mathsection),... %% ). The command backslash pagenumbering is renewed, but no change %% should be visible to the output text, because only labels are added. %% backslash OrigPagenumbering can be used to get the original meaning @@ -25,7 +32,7 @@ %% see the change in the page numbering scheme and will make mistakes. %% The package takes options. %% -%% The usual disclaimers apply: +%% The usual disclaimer applies: %% 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.) @@ -42,20 +49,19 @@ %% %% 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 first started as a revision of the lastpage %% package of Jeffrey P. Goldberg (jeffrey+news at goldmark dot org), -%% but it became obviouse that a replacement was needed. +%% but it became obvious that a replacement was needed. %% %% This work consists of the main source file pageslts.dtx %% and the derived files %% pageslts.sty, pageslts.pdf, pageslts.ins, pageslts.drv, %% pageslts-example.tex. %% -\NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesPackage{pageslts}[2011/08/08 v1.2a +\NeedsTeXFormat{LaTeX2e}[2011/06/27] +\ProvidesPackage{pageslts}[2013/01/28 v1.2b Refers to special pages' numbers/names (HMM)] %% Allows for things like\\ @@ -94,10 +100,11 @@ \gdef\pagesLTS@loaded{p@gesLTSlo@ded} -\RequirePackage{atveryend}[2011/04/23]% v1.7 -\RequirePackage{everyshi}[2001/05/15]% v3.00 -\RequirePackage{kvoptions}[2010/02/22]% v3.7 -\RequirePackage{undolabl}[2011/08/08]% v1.0j +\RequirePackage{atveryend}[2011/06/30]% v1.8 +\RequirePackage{everyshi}[2001/05/15]% v3.00 +\RequirePackage{letltxmacro}[2010/09/02]% v1.4 +\RequirePackage{kvoptions}[2011/06/30]% v3.11 +\RequirePackage{undolabl}[2012/01/01]% v1.0k \RequirePackage{rerunfilecheck}[2011/04/15]% v1.7 %% pageslts package uses Prelim@EveryShipout code from the %% prelim2e package [2009/05/29 v1.3] by Martin Schr\"{o}der, thanks! @@ -246,15 +253,15 @@ \fi \ifx\pagesLTS@alphMult\pagesLTS@zero% \relax -\else \RequirePackage{alphalph}[2010/04/18]% v2.3 +\else \RequirePackage{alphalph}[2011/05/13]% v2.4 \fi \ifx\pagesLTS@AlphMulti\pagesLTS@zero% \relax -\else \RequirePackage{alphalph}[2010/04/18]% v2.3 +\else \RequirePackage{alphalph}[2011/05/13]% v2.4 \fi \ifpagesLTS@fnsymbolmult% -\RequirePackage{alphalph}[2010/04/18]% v2.3 +\RequirePackage{alphalph}[2011/05/13]% v2.4 \fi \ifpagesLTS@romanMult% @@ -361,6 +368,7 @@ \def\pagesLTS@Alph{Alph} \def\pagesLTS@AlphAlph{0} \def\pagesLTS@hyper{0} +\def\pagesLTS@nameref{0} \def\pagesLTS@rerun{0} \def\pagesLTS@eso{0} \def\pagesLTS@esov{0} @@ -392,7 +400,7 @@ } \fi -\let\OrigPagenumbering\pagenumbering +\LetLtxMacro{\OrigPagenumbering}{\pagenumbering} \newcounter{CurrentPage} \setcounter{CurrentPage}{1} @@ -596,7 +604,7 @@ \setcounter{pagesLTS.current.local.\pagesLTS@pnc}{1}% \fi% \else% - %% before the first page has shiped out + %% before the first page has shipped out \xdef\pagesLTS@pnc{#1}% \countdef\c@page=0 \c@page=1 \def\cl@page{} @@ -976,8 +984,13 @@ \else% \if@filesw% \ifnum \value{pagesLTS.pnc.\pagesLTS@pnc}<2% - \immediate\write\@auxout{\string - \newlabel{#1}{{}{#2}}}% + \ifx\pagesLTS@nameref\pagesLTS@one% + \immediate\write\@auxout{\string + \newlabel{#1}{{}{#2}{}{}{}}}% + \else% + \immediate\write\@auxout{\string + \newlabel{#1}{{}{#2}}}% + \fi% \else% \edef\pagesLTStmpA{#1}% \edef\pagesLTStmpB{pagesLTS.\pagesLTS@pnc.local}% @@ -988,8 +1001,13 @@ \undonewlabel{#1}}% \fi% \fi% - \immediate\write\@auxout{\string - \newlabel{#1}{{}{#2}}}% + \ifx\pagesLTS@nameref\pagesLTS@one% + \immediate\write\@auxout{\string + \newlabel{#1}{{}{#2}{}{}{}}}% + \else% + \immediate\write\@auxout{\string + \newlabel{#1}{{}{#2}}}% + \fi% \fi% \fi% \fi% @@ -1024,7 +1042,7 @@ \fi% \@ifpackageloaded{endfloat}% {\@ifpackagelater{endfloat}{1992/03/31}% April 1992 v2.0 - {\@ifpackagelater{endfloat}{1995/10/10}{% 1995/10/11 v2.4i + {\@ifpackagelater{endfloat}{2011/12/24}{% 2011/12/25 v2.5d \relax}% {\PackageWarningNoLine{pageslts}{Old endfloat package detected:\MessageBreak% There is a newer version of the endfloat package available.\MessageBreak% @@ -1036,10 +1054,10 @@ {\PackageError{pageslts}{Incompatible, very old endfloat package detected.}% {The very old version 2.0 (and earlier) of the\MessageBreak% endfloat package actually redefined the \ enddocument,\MessageBreak% - and so interferred drastically with the LaTeX2e commands\MessageBreak% + and so interfered drastically with the LaTeX2e commands\MessageBreak% which make use of \ AtEndDocument.\MessageBreak% Newer versions of the endfloat package exists\MessageBreak% - (at least: v2.4i as of 1995/10/11)\MessageBreak% + (at least: v2.5d as of 2011/12/25)\MessageBreak% in modern documentation form,\MessageBreak% which should be available from CTAN.\MessageBreak% Please update your endfloat package\MessageBreak% @@ -1050,7 +1068,7 @@ }{}% \@ifpackageloaded{lastpage}% {\@ifpackagelater{lastpage}{2010/07/28}% 2010/07/29 v1.2a - {\@ifpackagelater{lastpage}{2011/08/07}% 2011/08/08 v1.2i + {\@ifpackagelater{lastpage}{2013/01/27}% 2013/01/28 v1.2l {\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% @@ -1084,19 +1102,19 @@ }{% \relax } \@ifpackageloaded{hyperref}% - {\global\def\pagesLTS@hyper{1}% + {\gdef\pagesLTS@hyper{1}% \@ifpackageloaded{pdfpages}% {\PackageWarningNoLine{pageslts}{Package pdfpages detected.\MessageBreak% Using hyperref with pdfpages can cause problems. See\MessageBreak% ftp://ftp.ctan.org/tex-archive/\MessageBreak% macros/latex/contrib/pax/\MessageBreak% - for project pax (PDFAnnotExtractor).% + for project pax (PDFAnnotExtractor)% }% }{% \relax }% \@ifpackageloaded{undolabl}% {\@ifpackagelater{undolabl}{2010/07/14}% 2010/07/15 v1.0d - {\@ifpackagelater{undolabl}{2011/08/07}% 2011/08/08 v1.0j + {\@ifpackagelater{undolabl}{2011/12/31}% 2012/01/01 v1.0k {% 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% @@ -1118,7 +1136,7 @@ Type X <return> to quit.\MessageBreak% }% } - \@ifpackagelater{hyperref}{2011/04/16}{% 2011/04/17 v6.82g + \@ifpackagelater{hyperref}{2012/11/05}{% 2012/11/06 v6.83m \relax}{% \PackageWarningNoLine{pageslts}{Old hyperref package detected:\MessageBreak% There is a newer version of the\MessageBreak% @@ -1127,7 +1145,7 @@ }% }% %% pageslts supports the use of the package hyperref by - %% Heiko Oberdiek (hyperref version 2011/04/17 v6.82g). + %% Heiko Oberdiek (hyperref version 2012/11/06 v6.83m). %% pageslts may work with earlier versions of this packages, %% but this was not tested. }% @@ -1135,6 +1153,10 @@ pageslts would support hyperref. The page references\MessageBreak% will NOT be hyperlinked!\MessageBreak }% }% + \@ifpackageloaded{nameref}% + {\gdef\pagesLTS@nameref{1}% + }{% relax, \pagesLTS@nameref stays 0 + }% \@ifpackageloaded{showkeys}{% \@ifpackagewith{showkeys}{final}{\relax}{\gdef\pagesLTS@SK{1}}% }{% \relax @@ -1208,7 +1230,7 @@ \fi% \addtocounter{page}{+1}% \addtocounter{CurrentPage}{-1}% - \def\pagesLTS@tmpB{\arabic{CurrentPage}}% + \edef\pagesLTS@tmpB{\arabic{CurrentPage}}% \if@filesw% \immediate\write\@auxout{\string \setcounter{pagesLTS.pagenr}{\pagesLTS@tmpB}}% @@ -1220,6 +1242,13 @@ \message{^^J% AED: pageslts setting LastPages via AfterLastShipout ^^J}% \pagesLTS@putlabels% + \typeout{^^J}% + \ifodd\pagesLTS@tmpB% + \@PackageInfoNoLine{pageslts}{Total number of pages is odd}% + \else% + \@PackageInfoNoLine{pageslts}{Total number of pages is even}% + \fi% + \typeout{^^J}% \let\pagesLTS@tmpA\undefined% \let\pagesLTS@tmpB\undefined% } @@ -1228,7 +1257,7 @@ \ifx\pagesLTS@rerun\pagesLTS@one% \PackageWarningNoLine{pageslts}{% Label(s) may have changed.\MessageBreak% - Rerun to get cross-references right.\MessageBreak% + Rerun to get cross-references right% }% \fi% } |