summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pageslts/pagesLTS.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pageslts/pagesLTS.sty')
-rw-r--r--Master/texmf-dist/tex/latex/pageslts/pagesLTS.sty65
1 files changed, 58 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/pageslts/pagesLTS.sty b/Master/texmf-dist/tex/latex/pageslts/pagesLTS.sty
index 71fb920792f..fc00157aafc 100644
--- a/Master/texmf-dist/tex/latex/pageslts/pagesLTS.sty
+++ b/Master/texmf-dist/tex/latex/pageslts/pagesLTS.sty
@@ -55,10 +55,10 @@
%% pagesLTS-example.tex.
%%
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
-\ProvidesPackage{pagesLTS}[2010/06/24 v1.1c
+\ProvidesPackage{pagesLTS}[2010/07/15 v1.1d
Refers to special pages' numbers/names (HMM)]%
-%% Allow for things like\\
+%% Allows for things like\\
%% |Page \thepage\ (\theCurrentPage; local: \theCurrentPageLocal) of %
%% \lastpageref{pagesLTS.roman}(\lastpageref{pagesLTS.roman.local}) + %
%% \lastpageref{pagesLTS.Roman}(\lastpageref{pagesLTS.Roman.local}) + %
@@ -73,7 +73,7 @@
\RequirePackage{atveryend}[2010/03/24]% v1.5
\RequirePackage{everyshi}[2001/05/15]%v 3.00
\RequirePackage{kvoptions}[2010/02/22]% v3.7
-\RequirePackage{undolabl}[2010/06/24]% v1.0c
+\RequirePackage{undolabl}[2010/07/15]% v1.0d
%% pagesLTS package uses Prelim@EveryShipout code from the
%% prelim2e package [2009/05/29 v1.3] by Martin Schr\"{o}der, thanks!
@@ -269,6 +269,7 @@
\def\pagesLTS@eso{0}
\def\pagesLTS@esov{0}
\def\lastpageref{\lastpagereftxt}
+\def\pagesLTS@undolable{none}
\def\pagesLTS@messageNPN{%
The pagesLTS package was used, but\MessageBreak%
\textbackslash pagenumbering\MessageBreak%
@@ -609,8 +610,19 @@
\fi%
\if@filesw%
\overridelabel{pagesLTS.\pagesLTS@pnc}%
- \immediate\write\@auxout{\string
- \undonewlabel{pagesLTS.\pagesLTS@pnc.local}{\on@line}}%
+ \def\pagesLTS@uv{new}%
+ \ifx\pagesLTS@undolable\pagesLTS@uv%
+ \immediate\write\@auxout{\string
+ \undonewlabel{pagesLTS.\pagesLTS@pnc.local}}%
+ \else%
+ \def\pagesLTS@uv{old}%
+ \ifx\pagesLTS@undolable\pagesLTS@uv%
+ \immediate\write\@auxout{\string
+ \undonewlabel{pagesLTS.\pagesLTS@pnc.local}{\on@line}}%
+ \else%
+ \relax % Error: no undolable package at all, message given above
+ \fi
+ \fi
\fi%
\addtocounter{page}{+1}
\pagesLTS@putlabel{pagesLTS.\pagesLTS@pnc.local}{\theCurrentPageLocal}%
@@ -869,7 +881,30 @@
pagesLTS supports hyperref. Congratulations!\MessageBreak%
}%
\global\def\pagesLTS@hyper{1}%
- \@ifpackagelater{hyperref}{2010/06/03}{% 2010/06/04 v6.81f
+ \@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%
+ for project pax (PDFAnnotExtractor).\MessageBreak%
+ }%
+ }{\relax}%
+ \@ifpackageloaded{undolabl}%
+ {\@ifpackagelater{undolabl}{2010/07/14}% 2010/07/15 v1.0d
+ {\gdef\pagesLTS@undolable{new}%
+ }{\gdef\pagesLTS@undolable{old}%
+ \PackageWarning{pagesLTS}{Obsolete 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{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%
+ }%
+ }
+ \@ifpackagelater{hyperref}{2010/06/17}{% 2010/06/18 v6.81g
\relax}{%
\PackageWarningNoLine{pagesLTS}{Old hyperref package detected:\MessageBreak%
There is a newer version of the\MessageBreak%
@@ -878,9 +913,25 @@
}%
}%
%% pagesLTS supports the use of the package hyperref by
- %% Heiko Oberdiek (hyperref version 2010/06/04 v6.81f).
+ %% Heiko Oberdiek (hyperref version 2010/06/18 v6.81g).
%% pagesLTS may work with earlier versions of this packages,
%% but this was not tested.
+ %% 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
+ %% }{}%
+ %%
}%
{\PackageWarning{pagesLTS}{Package hyperref NOT detected.\MessageBreak%
pagesLTS would support hyperref. The page references\MessageBreak%