diff options
author | Karl Berry <karl@freefriends.org> | 2015-08-02 21:30:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-08-02 21:30:38 +0000 |
commit | 7046ed85324287e5a526eb8231166ad3da6758ca (patch) | |
tree | 5ce5108382061a2f38d88fe6a31ceb97cb68d08b /Master/texmf-dist/tex/latex | |
parent | c4cbbdc6c246816defebc2afa9fd9b82b42118e3 (diff) |
pageslts (2aug15)
git-svn-id: svn://tug.org/texlive/trunk@38025 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pageslts/pageslts.sty | 151 |
1 files changed, 109 insertions, 42 deletions
diff --git a/Master/texmf-dist/tex/latex/pageslts/pageslts.sty b/Master/texmf-dist/tex/latex/pageslts/pageslts.sty index 704fa5ef13c..0d5734dac11 100644 --- a/Master/texmf-dist/tex/latex/pageslts/pageslts.sty +++ b/Master/texmf-dist/tex/latex/pageslts/pageslts.sty @@ -9,9 +9,9 @@ %% This is a generated file. %% %% Project: pageslts -%% Version: 2014/01/19 v1.2c +%% Version: 2015/08/02 v1.2d %% -%% Copyright (C) 2010 - 2014 by +%% Copyright (C) 2010 - 2015 by %% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> %% Portions of code copyrighted by other people as marked. %% @@ -55,15 +55,19 @@ %% package of Jeffrey P. Goldberg (jeffrey+news at goldmark dot org), %% 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. +%% This work consists of the main source file pageslts.dtx, +%% the README, and the derived files +%% pageslts.sty, pageslts.pdf, +%% pageslts.ins, pageslts.drv, +%% pageslts-example.tex, pageslts-example.pdf. %% -%% In memoriam Tommy Muench + 2014/01/02. +%% In memoriam +%% Claudia Simone Barth + 1996/01/30 +%% Tommy Muench + 2014/01/02 +%% Hans-Klaus Muench + 2014/08/24 %% -\NeedsTeXFormat{LaTeX2e}[2011/06/27] -\ProvidesPackage{pageslts}[2014/01/19 v1.2c +\NeedsTeXFormat{LaTeX2e}[2015/01/01] +\ProvidesPackage{pageslts}[2015/08/02 v1.2d Refers to special pages' numbers/names (HMM)] %% Allows for things like\\ @@ -102,12 +106,40 @@ \gdef\pagesLTS@loaded{p@gesLTSlo@ded} +\RequirePackage{ltxcmds}[2011/11/09]% v1.22 \RequirePackage{atveryend}[2011/06/30]% v1.8 +\listfiles +\AtBeginDocument{% https://tex.stackexchange.com/a/45654/6865 + \def\pagesLTS@etb{etoolbox.sty}% + \let\pagesLTS@ave\@empty% + \@for\@currname:=\@filelist\do{% + \ifx\@currname\pagesLTS@etb\relax% + \def\pagesLTS@ave{atveryend.sty}% + \fi% + \ifx\@currname\pagesLTS@ave% + \@ifpackagelater{atveryend}{2015/08/01}{%\relax + \PackageInfo{pageslts}{etoolbox package loaded before atveryend package\MessageBreak% + With atveryend version 1.8 of 2011/06/30 this caused a problem,\MessageBreak% + which is probably solved in the new version used here.\MessageBreak% + To play it safe, you could load the atveryend package\MessageBreak% + before the etoolbox package.\MessageBreak% + }% + }{% else + \PackageError{pageslts}{etoolbox package loaded before atveryend package}{% + You can use both packages, but when etoolbox is loaded before atveryend,\MessageBreak% + atveryend no longer detects \string\enddocument\space\MessageBreak% + and hook "AtVeryVeryEnd" is not executed.\MessageBreak% + Just load the atveryend package before the etoolbox package!\MessageBreak% + }% + }% + \fi% + }% + } + \RequirePackage{everyshi}[2001/05/15]% v3.00 \RequirePackage{letltxmacro}[2010/09/02]% v1.4 -\RequirePackage{ltxcmds}[2011/11/09]% v1.22 \RequirePackage{kvoptions}[2011/06/30]% v3.11 -\RequirePackage{undolabl}[2012/01/01]% v1.0k +\RequirePackage{undolabl}[2015/03/29]% v1.0l \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! @@ -329,14 +361,31 @@ right.\MessageBreak% } -\if@filesw% \relax -\else - \PackageError{pageslts}{No auxiliary file allowed.}{% - The pageslts package was not allowed to write to an .aux file.\MessageBreak - This package does not work without access to an .aux file.\MessageBreak - Press Ctrl+Z to exit.\MessageBreak - } -\fi +\AtBeginDocument{% + \if@filesw% + \else% + \@ifpackageloaded{tikz}{% + \PackageWarning{pageslts}% + {It was not allowed to write to an\MessageBreak% + .aux file. This package does not work without access\MessageBreak% + to an .aux file.\MessageBreak% + It is OK if the .aux file was already updated\MessageBreak% + by a previouse compiler run\MessageBreak% + and would not have changed anyway.\MessageBreak% + }% + }{\PackageError{pageslts}{No writing to auxiliary file allowed}% + {It 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% + But it is OK if the .aux file was already updated\MessageBreak% + by previouse compiler runs\MessageBreak% + and would not have changed anyway.\MessageBreak% + (In that case just press Enter or Return\MessageBreak% + to continue the compilation.)\MessageBreak% + }% + }% + \fi% + } \LetLtxMacro{\OrigPagenumbering}{\pagenumbering} @@ -876,7 +925,7 @@ \newcommand{\pagesLTS@putlabel}[3]{% \addtocounter{page}{-1}% - \ifx\pagesLTS@SK\pagesLTS@one% + \ifx\pagesLTS@SK\pagesLTS@one\relax% \message{^^J}% \message{Package pageslts Warning: Package showkeys without option final loaded,}% \ifnum\value{pagesLTS.pagenr}<1% @@ -1000,24 +1049,23 @@ \@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)% + https://www.ctan.org/pkg/pax\MessageBreak% + for the Pdf Annotations eXtractor, pax.\MessageBreak% }% }{% \relax }% \@ifpackageloaded{undolabl}% - {\@ifpackagelater{undolabl}{2010/07/14}% 2010/07/15 v1.0d - {\@ifpackagelater{undolabl}{2011/12/31}% 2012/01/01 v1.0k + {\@ifpackagelater{undolabl}{2010/07/14}% 2010/07/15 v1.0d + {\@ifpackagelater{undolabl}{2015/03/29}% 2015/03/29 v1.0l {% 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% + See https://www.ctan.org/pkg/undolabl\MessageBreak% for a new version.\MessageBreak% }% } }{\PackageError{pageslts}{Incompatible, obsolete version of undolabl package used.}{% - See ftp://ftp.ctan.org/tex-archive/macros/latex/contrib/undolabl/ \MessageBreak% + See https://www.ctan.org/pkg/undolabl\MessageBreak% for a new version.\MessageBreak% Type X <return> to quit.\MessageBreak% }% @@ -1025,8 +1073,7 @@ }{\PackageError{pageslts}{Package undolabl missing}{% 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% + See https://www.ctan.org/pkg/undolabl\MessageBreak% Type X <return> to quit.\MessageBreak% }% } @@ -1034,7 +1081,8 @@ \relax}{% \PackageWarningNoLine{pageslts}{Old hyperref package detected:\MessageBreak% There is a newer version of the\MessageBreak% - hyperref package available.\MessageBreak% + hyperref package available:\MessageBreak% + https://www.ctan.org/pkg/hyperref\MessageBreak% Please consider updating your version.\MessageBreak% }% }% @@ -1048,11 +1096,26 @@ will NOT be hyperlinked!\MessageBreak }% }% \ltx@ifpackageloaded{showkeys}{% - \@ifpackagewith{showkeys}{final}{}{\gdef\pagesLTS@SK{1}}}{}% + \@ifpackagewith{showkeys}{final}{}{\gdef\pagesLTS@SK{1}}}{% else \relax + }% } \AtEndDocument{% - \ifx\pncmissing\pagesLTS@one% + \ltx@ifpackageloaded{showkeys}{% + \ifx\pagesLTS@SK\pagesLTS@one\relax% + \else% + \providecommand*\pagesLTS@sklf[1]{}% + \ifx\showkeyslabelformat\pagesLTS@sklf\relax% + \else% + \PackageError{pageslts}{Package showkeys loaded after pageslts}{% + The showkeys package with option "final" has been loaded\MessageBreak% + after the pageslts package.\MessageBreak% + Please first load showkeys and then pageslts}% + \fi% + \fi% + }{% else no showcase, \relax + }% + \ifx\pncmissing\pagesLTS@one\relax% \PackageError{pageslts}{pagenumbering scheme missing}{\pagesLTS@messageNPN }% \fi% \message{^^J% @@ -1066,8 +1129,7 @@ \gdef\pagesLTS@rerun{1}% \fi% \if@filesw% - \immediate\write\@auxout{\string - \gdef\string\pagesLTS@eso{\pagesLTS@tmpA}}% + \immediate\write\@auxout{\string\gdef\string\pagesLTS@eso{\pagesLTS@tmpA}}% \fi% \fi% \pagesLTS@putlabel{LastPage}{\thepage}{1}% @@ -1155,20 +1217,25 @@ \fi% } -\newcommand*{\ifund@fined}[1]{% - % from http://de.comp.text.tex.narkive.com/uNza5NAA/ifundef-and-ifdef +\newcommand{\pagesLTS@ifundefinedorrelax}[1]{% + % Modified Markus Kohm code for use without e-TeX \begingroup\expandafter\expandafter\expandafter\endgroup - \expandafter\ifx\csname #1\endcsname\relax + \expandafter\ifx\csname #1\endcsname\relax% + \expandafter\ifx\csname #1\endcsname\relax% + \expandafter\expandafter\expandafter\@firstoftwo + \else% + \expandafter\expandafter\expandafter\@secondoftwo + \fi% + \else% \expandafter\@firstoftwo - \else - \expandafter\@secondoftwo - \fi + \fi% } -\ifund@fined{frontmatter}{\relax}{% +\pagesLTS@ifundefinedorrelax{frontmatter}{% \relax +}{% else \ltx@GlobalPrependToMacro{\frontmatter}{\pagesLTS@prefrontmatter}% \ltx@GlobalAppendToMacro{\frontmatter}{\pagesLTS@postfrontmatter}% - } + } \newcommand{\pagesLTS@prefrontmatter}{% \xdef\pagesLTS@FMBpncn{\pagesLTS@pnc}% |