summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-08-02 21:30:38 +0000
committerKarl Berry <karl@freefriends.org>2015-08-02 21:30:38 +0000
commit7046ed85324287e5a526eb8231166ad3da6758ca (patch)
tree5ce5108382061a2f38d88fe6a31ceb97cb68d08b /Master/texmf-dist
parentc4cbbdc6c246816defebc2afa9fd9b82b42118e3 (diff)
pageslts (2aug15)
git-svn-id: svn://tug.org/texlive/trunk@38025 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/pageslts/README159
-rw-r--r--Master/texmf-dist/doc/latex/pageslts/pageslts-example.pdfbin317763 -> 323566 bytes
-rw-r--r--Master/texmf-dist/doc/latex/pageslts/pageslts-example.tex73
-rw-r--r--Master/texmf-dist/doc/latex/pageslts/pageslts.pdfbin617387 -> 617588 bytes
-rw-r--r--Master/texmf-dist/source/latex/pageslts/pageslts.drv32
-rw-r--r--Master/texmf-dist/source/latex/pageslts/pageslts.dtx601
-rw-r--r--Master/texmf-dist/source/latex/pageslts/pageslts.ins40
-rw-r--r--Master/texmf-dist/tex/latex/pageslts/pageslts.sty151
8 files changed, 547 insertions, 509 deletions
diff --git a/Master/texmf-dist/doc/latex/pageslts/README b/Master/texmf-dist/doc/latex/pageslts/README
index 2d5cf1fa59e..636d3e1a93d 100644
--- a/Master/texmf-dist/doc/latex/pageslts/README
+++ b/Master/texmf-dist/doc/latex/pageslts/README
@@ -1,4 +1,4 @@
-README for pageslts package, 2014/01/19, v1.2c
+README for pageslts package, 2015/08/02, v1.2d
TABLE OF CONTENTS
@@ -52,21 +52,33 @@ page numbering (with alphalph package and according
options).
\pageref* and \pageref*, for using hyperref but suppressing
links, are supported.
-This material is subject to the LaTeX Project Public License
-(LPPL). See http://www.ctan.org/license/lppl1.3
-for the details of that license.
+
+This material is published under the LPPL 1.3c: This work
+may be distributed and/or modified under the conditions of
+the LaTeX Project Public License, either version 1.3c
+of this license or (at your option) any later version.
+This version of this license is in
+http://www.latex-project.org/lppl/lppl-1-3c.txt
+and the latest version of this license is in
+http://www.latex-project.org/lppl.txt
+and version 1.3c or later is part of all distributions
+of LaTeX version 2005/12/01 or later.
2 DOWNLOAD
==========
`pageslts' is available on CTAN:
- http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/
+https://www.ctan.org/pkg/pageslts
-Also a ZIP file is provided that contains the files, already
-sorted in a TDS tree:
- http://mirrors.ctan.org/install/macros/latex/contrib/
- pageslts.tds.zip
+Also a ZIP file is provided that contains the files:
+the manual (pageslts.pdf), the example (pageslts-example.tex),
+the compiled example (pageslts-example.pdf),
+driver (pageslts.drv), pageslts.dtx,
+installation file (pageslts.ins),
+the style file (pageslts.sty),
+and this README, already sorted in a TDS tree:
+http://mirrors.ctan.org/install/macros/latex/contrib/pageslts.tds.zip
3 INSTALLATION
@@ -74,11 +86,11 @@ sorted in a TDS tree:
Installation with ZIP file in TDS format
----------------------------------------
-The ZIP file `pageslts.tds.zip' contains the files sorted
-in a TDS tree. Thus you can directly unpack the ZIP file
-inside a TDS tree.
-(See http://www.ctan.org/TDS-guidelines for an explanation
-of TDS.)
+The ZIP file `pageslts.tds.zip' contains the files
+sorted in a TDS tree. Thus you can directly unpack the
+ZIP file inside a TDS tree.
+See https://www.ctan.org/TDS-guidelines for an explanation
+of TDS.
Example:
cd /...somewhere.../texmf
unzip /...downloadpath.../pageslts.tds.zip
@@ -89,103 +101,96 @@ Example:
Manual installation
-------------------
-a) Download the pageslts files from CTAN or the TUG server.
+a) Download the pageslts files from CTAN.
If necessary, unpack them.
-b) Generate the package and driver files:
- tex pageslts.ins
-c) Install the file `*.sty' in your TDS tree:
- cp *.sty TDS:tex/latex/pageslts/
+b) Check for old `pagesLTS.sty' at other locations in your
+ TeX installation and delete them (or back them up,
+ but in a way TeX does NOT find them automatically).
+c) Generate the package and driver files:
+ tex pageslts.dtx
+d) Install the file `pageslts.sty' in your TDS tree:
+ cp pageslts.sty TDS:tex/latex/pageslts/
Replace `TDS:' by the prefix of your TDS tree
(texmf directory).
-d) Copy the documentation files to
+e) Create the documentation, if necessary, e.g.
+ pdflatex pageslts.dtx
+ makeindex -s gind.ist pageslts.idx
+ pdflatex pageslts.dtx
+ makeindex -s gind.ist pageslts.idx
+ pdflatex pageslts.dtx
+f) Update the databases, if necessary, e.g. for teTeX:
+ mktexlsr .../texmf
+g) Create the pageslts-example.pdf, if necessary, e.g.
+ pdflatex pageslts-example.tex
+ pdflatex pageslts-example.tex
+ pdflatex pageslts-example.tex
+h) Copy the documentation files to
"TDS:doc/latex/pageslts/":
- README, pageslts.pdf,pageslts-example.tex,
+ README, pageslts.pdf, pageslts-example.tex,
pageslts-example.pdf.
-e) Update the databases if necessary, e. g. for teTeX:
- mktexlsr .../texmf
4 ADDITIONAL PACKAGES
=====================
-Depending on the driver and option settings, pageslts loads
-other packages:
-
-For unpacking the pageslts.dtx file and constructing the
-documentation it is required:
-- TeXFormat LaTeX2e, 2011/06/27, v2e
-- document class ltxdoc, 2007/11/11, v2.0u,
- CTAN:macros/latex/base/ltxdoc.dtx
-- package holtxdoc, 2012/03/21, v0.24,
- CTAN:macros/latex/contrib/oberdiek/holtxdoc.dtx
-- package hypdoc, 2011/08/19, v1.11,
- CTAN:macros/latex/contrib/oberdiek/hypdoc.dtx
-- package geometry, 2010/09/12, v5.6,
- CTAN:macros/latex/contrib/geometry/geometry.dtx
-- package ulem, 2012/05/18, (no version number given),
- CTAN:macros/latex/contrib/ulem/
-
-The pageslts.sty for LATEX2e (i. e. all documents using the
+The pageslts.sty for LaTeX2e (i. e. all documents using the
pageslts package) requires:
-- TeXFormat LaTeX2e, 2011/06/27, v2e
-- package atveryend, 2011/06/30, v1.8,
- CTAN:macros/latex/contrib/oberdiek/atveryend.dtx
-- package letltxmacro, 2010/09/02, v1.4,
- CTAN:macros/latex/contrib/oberdiek/letltxmacro.dtx
-- package ltxcmds, 2011/11/09, v1.22,
- CTAN:macros/latex/contrib/oberdiek/ltxcmds.dtx
-- package kvoptions, 2011/06/30, v3.11,
- CTAN:macros/latex/contrib/oberdiek/kvoptions.dtx
-- package everyshi, 2001/05/15, v3.00,
- CTAN:macros/latex/contrib/ms/everyshi.dtx
-- package undolabl, 2012/01/01, v1.0k,
- CTAN:macros/latex/contrib/undolabl/undolabl.dtx
+- TeXFormat LaTeX2e, 2015/01/01
+- package atveryend, 2011/06/30, v1.8, https://www.ctan.org/pkg/atveryend
+- package everyshi, 2001/05/15, v3.00, https://www.ctan.org/pkg/everyshi
+- package kvoptions, 2011/06/30, v3.11, https://www.ctan.org/pkg/kvoptions
+- package letltxmacro, 2010/09/02, v1.4, https://www.ctan.org/pkg/letltxmacro
+- package ltxcmds, 2011/11/09, v1.22, https://www.ctan.org/pkg/ltxcmds
+- package rerunfilecheck, 2011/04/15, v1.7, https://www.ctan.org/pkg/rerunfilecheck
+- package undolabl, 2015/03/29, v1.0l, https://www.ctan.org/pkg/undolabl
The pageslts-example.tex requires the same files as all
documents using the pageslts package, and additionally:
-- package alphalph, 2011/05/13, v2.4,
- CTAN:macros/latex/generic/oberdiek/alphalph.dtx
-- package lipsum, 2011/04/14, v1.2,
- CTAN:macros/latex/contrib/lipsum/lipsum.dtx
-- package showkeys, 2007/08/07, v3.15,
- CTAN:macros/latex/required/tools/showkeys.dtx
-- package hyperref, 2012/11/06, v6.83m,
- CTAN:macros/latex/contrib/hyperref.zip
-- package pageslts, 2014/01/19, v1.2c,
- CTAN:macros/latex/contrib/pageslts/pageslts.dtx
+- class article, 2014/09/29, v1.4h, from classes.dtx: https://www.ctan.org/pkg/classes
+- package alphalph, 2011/05/13, v2.4, https://www.ctan.org/pkg/alphalph
+- package lipsum, 2014/07/27, v1.3, https://www.ctan.org/pkg/lipsum
+- package showkeys, 2014/10/28, v3.17, https://www.ctan.org/pkg/showkeys
+- package hyperref, 2012/11/06, v6.83m, https://www.ctan.org/pkg/hyperref
+- package pageslts, 2015/08/02, v1.2d, https://www.ctan.org/pkg/pageslts
(Well, it is the example file for this package, and
because you are reading the README for the pageslts
package, it can be assumed that you already have some
version of it - is it the current one?)
-
which again load other packages
(see the result of the \listfiles command in the log-file
of the example).
+Also the pageslts.dtx loads other packages
+(for unpacking and constructing the documentation),
+see "7.1 Downloads" in the manual
+http://mirrors.ctan.org/macros/latex/contrib/pageslts/pageslts.pdf
5 PACKAGE COMPATIBILITY
=======================
-* endfloat package
+* endfloat package:
pageslts is not compatible with very old versions of
endfloat(2.0 and older).
- Just get the recent version of the endfloat package
- from CTAN.
+ Just get the recent version of the endfloat package from
+ https://www.ctan.org/pkg/endfloat
-* lastpage package
+* lastpage package:
\usepackage[pagecontinue=false]{pageslts}
can simulate the behaviour of the lastpage package.
Loading old (!) versions of the lastpage package before
the pageslts package before the hyperref package results
in multiply definitions of the LastPage label.
-* undolabl package
+* undolabl package:
Version >= 1.0h is needed.
+* The romanbarpagenumber and pageslts package currently are
+ not compatible.
+
6 AUTHOR/MAINTAINER
=====================
-* H.-Martin Münch
+ H.-Martin Münch
7 BUG REPORTS
@@ -194,15 +199,15 @@ which again load other packages
A bug report should contain:
* Comprehensive problem description. This includes error or
warning messages.
- * \errorcontextlines=\maxdimen can be added in the
- TeX code to get more information in TeX error messages.
+* \errorcontextlines=\maxdimen can be added in the
+ TeX code to get more information in TeX error messages.
* Minimal test file that shows the problem, but does not
contain any unnecessary packages and code.
* Used drivers/programs.
* Version information about used packages and programs.
- * If you are using LaTeX, then add "\listfiles". Then
- a list of version information is printed at the end
- of the LaTeX run.
+* If you are using LaTeX, then add "\listfiles". Then
+ a list of version information is printed at the end
+ of the LaTeX run.
* Please no other files than the minimal test file.
The other files .log, .dvi, .ps, .pdf are seldom
necessary, so send them only on request.
@@ -218,4 +223,4 @@ Bug reports can be send to the maintainer:
8 KNOWN PROBLEMS
=================
-* as yet: none... \ No newline at end of file
+* except those already mentioned above: none. \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/pageslts/pageslts-example.pdf b/Master/texmf-dist/doc/latex/pageslts/pageslts-example.pdf
index 2371c04ae2e..f0175c42776 100644
--- a/Master/texmf-dist/doc/latex/pageslts/pageslts-example.pdf
+++ b/Master/texmf-dist/doc/latex/pageslts/pageslts-example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/pageslts/pageslts-example.tex b/Master/texmf-dist/doc/latex/pageslts/pageslts-example.tex
index a55b7acae07..72eda0c39b7 100644
--- a/Master/texmf-dist/doc/latex/pageslts/pageslts-example.tex
+++ b/Master/texmf-dist/doc/latex/pageslts/pageslts-example.tex
@@ -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,19 +55,22 @@
%% 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
%%
-\documentclass[british]{article}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{lipsum}[2011/04/14]% v1.2
-\usepackage[draft]{showkeys}[2007/08/07]% v3.15
+\documentclass[british]{article}[2014/09/29]% v1.4h
+\usepackage{lipsum}[2014/07/27]% v1.3
+\usepackage[draft]{showkeys}[2014/10/28]% v3.17
%% Use final instead of draft to hide the keys. %%
-\usepackage{hyperref}[2012/11/06]% v6.83m
+\usepackage{hyperref}[2012/11/06]% v6.83m
\hypersetup{%
extension=pdf,%
plainpages=false,%
@@ -84,7 +87,7 @@
bookmarksopen=true%
}
\usepackage[pagecontinue=true,alphMult=ab,AlphMulti=AB,fnsymbolmult=true,%
- romanMult=true,RomanMulti=true]{pageslts}[2014/01/19]% v1.2c
+ romanMult=true,RomanMulti=true]{pageslts}[2015/08/02]% v1.2d
%% These are the default options. %%
\makeatletter
@@ -116,7 +119,7 @@
\markboth{Example for pageslts}{Example for pageslts}
This example demonstrates the most common uses of package\\
-\textsf{pageslts}, v1.2c as of 2014/01/19 (HMM).\\
+\textsf{pageslts}, v1.2d as of 2015/08/02 (HMM).\\
The used options were \texttt{pagecontinue=true},
\texttt{alphMult=ab}, \texttt{AlphMulti=AB}, \linebreak
\texttt{fnsymbolmult=true},
@@ -157,12 +160,10 @@ trademark symbol; they are the property of their respective
trademark owner. There is no intention of infringement; the
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 XI (11.0.6): \underline{E}dit $>$
-Prefere\underline{n}ces (Ctrl+k) $>$ Page Display $>$
-Page Content and Information $>$ Use logical page
-\nolinebreak{\underline{n}umbers.)}\\
+\textbf{Tip}: Use \textit{logical page numbers}
+for the display of the pdf (in Adobe Reader DC 2015.008.20082:
+Edit $>$ Preferences $>$ Categories: Page Display $>$
+Page Content and Information: Use logical page numbers)!\\
You want negative page numbers? Not only arabic, but even roman,
Roman, alph, Alph or fnsymbol ones? No problem, e.\,g. just give a\\
@@ -484,34 +485,10 @@ current page numbering scheme): \theCurrentPageLocal\\
\section{fnsymbol}
-Adobe Reader XI (11.0.1) does not show the correct page names
-for all pages with \texttt{fnsymbol} page numbering scheme:
-
-\begin{center}
-\begin{tabular}{c|c|c|c}
-page & page & \multicolumn{2}{c|}{shown by the Reader} \\
-number & name & without & \multicolumn{1}{c|}{with} \\
- & & \multicolumn{2}{c|}{\textsf{alphalph} \&\ \textsf{pageslts}}\\ \hline
-$-2$ & \texttt{LaTeX Error} & & \ensuremath {-\ }\\
-$-1$ & \texttt{LaTeX Error} & & \ensuremath {- *}\\
- $0$ & (ignored by \LaTeX) & & 0 \\
- $1$ & \ensuremath {*} & * & \ensuremath {*} \\
- $2$ & \ensuremath {\dagger } & & \\
- $3$ & \ensuremath {\ddagger } & & \\
- $4$ & \ensuremath {\mathsection } & & \\
- $5$ & \ensuremath {\mathparagraph } & & \\
- $6$ & \ensuremath {\delimiter "026B30D } & "026B30D & \ensuremath {**} \\
- $7$ & \ensuremath {**} & ** & \\
- $8$ & \ensuremath {\dagger \dagger } & & \\
- $9$ & \ensuremath {\ddagger \ddagger } & & \\
-$10$ & \texttt{LaTeX Error} & & \\
-$11$ & \texttt{LaTeX Error} & & \ensuremath {***}\\
-$12$ & \texttt{LaTeX Error} & & \\
-\end{tabular}
-\end{center}
-
-\noindent and so on, while at least the (\ldots\ of \ldots ) part
-of the page number is displayed correctly.\\
+Adobe Reader DC 2015.008.20082 does not show the correct page names
+for all pages with \texttt{fnsymbol} page numbering scheme,
+while at least the (\ldots\ of \ldots ) part of the page number is displayed correctly.
+(Adobe Reader~X even got all pages right.)
\bigskip
diff --git a/Master/texmf-dist/doc/latex/pageslts/pageslts.pdf b/Master/texmf-dist/doc/latex/pageslts/pageslts.pdf
index 8bffe82fd48..fd7e28e724c 100644
--- a/Master/texmf-dist/doc/latex/pageslts/pageslts.pdf
+++ b/Master/texmf-dist/doc/latex/pageslts/pageslts.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/pageslts/pageslts.drv b/Master/texmf-dist/source/latex/pageslts/pageslts.drv
index d72bab8c6cf..a19534f6e43 100644
--- a/Master/texmf-dist/source/latex/pageslts/pageslts.drv
+++ b/Master/texmf-dist/source/latex/pageslts/pageslts.drv
@@ -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,19 +55,23 @@
%% 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]
-\ProvidesFile{pageslts.drv}[2014/01/19 v1.2c
+\NeedsTeXFormat{LaTeX2e}[2015/01/01]
+\ProvidesFile{pageslts.drv}[2015/08/02 v1.2d
Refers to special pages' numbers/names (HMM)]
-\documentclass[landscape]{ltxdoc}[2007/11/11]% v2.0u
-\usepackage{geometry}[2010/09/12]% v5.6
-\usepackage{holtxdoc}[2012/03/21]% v0.24
+\documentclass[landscape]{ltxdoc}[2015/03/26]% v2.0w
+\usepackage{geometry}[2010/09/12]% v5.6
+\usepackage{holtxdoc}[2012/03/21]% v0.24
%% pageslts may work with earlier versions of LaTeX2e and those
%% class and packages, but this was not tested.
%% Please consider updating your LaTeX, class, and packages
@@ -90,10 +94,10 @@
pdfwindowui=true,%
pdfnewwindow=true%
}
-\usepackage{ulem}[2012/05/18]% no version given in the ulem.sty file
+\usepackage{ulem}[2012/05/18]% no version is given in the ulem.sty file
\CodelineIndex
\hyphenation{created every-thing ignored}
-\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}%
+\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}
\makeatletter
\@ifundefined{eTeX}{\gdef\eTeX{$\m@th \varepsilon $-\TeX }}{% else \relax
}
diff --git a/Master/texmf-dist/source/latex/pageslts/pageslts.dtx b/Master/texmf-dist/source/latex/pageslts/pageslts.dtx
index e17ddf14f84..dd8806dd1a4 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
%
% File: pageslts.dtx
-% 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.
%
@@ -25,49 +25,18 @@
%
% The Current Maintainer of this work is H.-Martin Muench.
%
-% 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.
-%
-% Distribution:
-% http://mirrors.ctan.org/macros/latex/contrib/pageslts/pageslts.dtx
-% http://mirrors.ctan.org/macros/latex/contrib/pageslts/pageslts.pdf
-% http://mirrors.ctan.org/install/macros/latex/contrib/pageslts.tds.zip
-%
-% Unpacking:
-% (a) If pageslts.ins is present:
-% tex pageslts.ins
-% (b) Without pageslts.ins:
-% tex pageslts.dtx
-% (c) If you insist on using LaTeX
-% latex \let\install=y\input{pageslts.dtx}
-% (quote the arguments according to the demands of your shell)
-%
-% Documentation:
-% (a) If pageslts.drv is present:
-% (pdf)latex pageslts.drv
-% makeindex -s gind.ist pageslts.idx
-% (pdf)latex pageslts.drv
-% makeindex -s gind.ist pageslts.idx
-% (pdf)latex pageslts.drv
-% (b) Without pageslts.drv:
-% (pdf)latex pageslts.dtx
-% makeindex -s gind.ist pageslts.idx
-% (pdf)latex pageslts.dtx
-% makeindex -s gind.ist pageslts.idx
-% (pdf)latex pageslts.dtx
-%
-% The class ltxdoc loads the configuration file ltxdoc.cfg
-% if available. Here you can specify further options, e.g.
-% use DIN A4 as paper format:
-% \PassOptionsToClass{a4paper}{article}
-%
-% Installation:
-% TDS:tex/latex/pageslts/pageslts.sty
-% TDS:doc/latex/pageslts/pageslts.pdf
-% TDS:doc/latex/pageslts/pageslts-example.tex
-% TDS:source/latex/pageslts/pageslts.dtx
+% 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.
+%
+% 'pageslts' is available on CTAN:
+% https://www.ctan.org/pkg/pageslts
+%
+% Also a TDS.ZIP file is provided that contains all the files
+% already sorted in a TDS tree:
+% http://mirrors.ctan.org/install/macros/latex/contrib/pageslts.tds.zip
%
%<*ignore>
\begingroup
@@ -84,7 +53,7 @@
\input docstrip.tex
\Msg{*********************************************************************************}
\Msg{* Installation}
-\Msg{* Package: pageslts 2014/01/19 v1.2c Refers to special pages' numbers/names (HMM)}
+\Msg{* Package: pageslts 2015/08/02 v1.2d Refers to special pages' numbers/names (HMM)}
\Msg{*********************************************************************************}
\keepsilent
@@ -96,9 +65,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.
@@ -142,12 +111,16 @@ This package first started as a revision of the lastpage
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
\endpreamble
\let\MetaPrefix\DoubleperCent
@@ -168,7 +141,7 @@ In memoriam Tommy Muench + 2014/01/02.
\Msg{* To finish the installation you have to move the following}
\Msg{* file into a directory searched by TeX:}
\Msg{*}
-\Msg{* pageslts.sty}
+\Msg{* pageslts.sty}
\Msg{*}
\Msg{* To produce the documentation run the file `pageslts.drv'}
\Msg{* through (pdf)LaTeX, e.g.}
@@ -202,12 +175,12 @@ In memoriam Tommy Muench + 2014/01/02.
%
% \begin{macrocode}
%<*driver>
-\NeedsTeXFormat{LaTeX2e}[2011/06/27]
-\ProvidesFile{pageslts.drv}[2014/01/19 v1.2c
+\NeedsTeXFormat{LaTeX2e}[2015/01/01]
+\ProvidesFile{pageslts.drv}[2015/08/02 v1.2d
Refers to special pages' numbers/names (HMM)]
-\documentclass[landscape]{ltxdoc}[2007/11/11]% v2.0u
-\usepackage{geometry}[2010/09/12]% v5.6
-\usepackage{holtxdoc}[2012/03/21]% v0.24
+\documentclass[landscape]{ltxdoc}[2015/03/26]% v2.0w
+\usepackage{geometry}[2010/09/12]% v5.6
+\usepackage{holtxdoc}[2012/03/21]% v0.24
%% pageslts may work with earlier versions of LaTeX2e and those
%% class and packages, but this was not tested.
%% Please consider updating your LaTeX, class, and packages
@@ -230,10 +203,10 @@ In memoriam Tommy Muench + 2014/01/02.
pdfwindowui=true,%
pdfnewwindow=true%
}
-\usepackage{ulem}[2012/05/18]% no version given in the ulem.sty file
+\usepackage{ulem}[2012/05/18]% no version is given in the ulem.sty file
\CodelineIndex
\hyphenation{created every-thing ignored}
-\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}%
+\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}
\makeatletter
\@ifundefined{eTeX}{\gdef\eTeX{$\m@th \varepsilon $-\TeX }}{% else \relax
}
@@ -246,7 +219,7 @@ In memoriam Tommy Muench + 2014/01/02.
%
% \fi
%
-% \CheckSum{1706}
+% \CheckSum{1792}
%
% \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
@@ -280,9 +253,11 @@ In memoriam Tommy Muench + 2014/01/02.
% \edef\x{\noexpand\DoNotIndex{\@backslashchar9}}%^^A
% }%^^A
% \expandafter\endgroup\x
+%
+% \DoNotIndex{\",\-,\,,\\,\noindent}
% \DoNotIndex{\documentclass,\usepackage,\ProvidesPackage}
% \DoNotIndex{\NeedsTeXFormat,\TeX,\LaTeX}
-% \DoNotIndex{\",\,,\\,\ldots,\thinspace,\textbackslash,\noindent}
+% \DoNotIndex{\ldots,\thinspace,\textbackslash}
% \DoNotIndex{\begin,\end}
% \DoNotIndex{\textbf,\textit,\textquotedblleft,\textquotedblright,\textsc,\textsf,\texttt,\underline}
% \DoNotIndex{\ifx,\ifnum,\ifodd,\enduremath}
@@ -296,13 +271,13 @@ In memoriam Tommy Muench + 2014/01/02.
% \section,\subsection,\tableofcontents,\verb}
%
% \title{The \xpackage{pageslts} package}
-% \date{2014/01/19 v1.2c}
+% \date{2015/08/02 v1.2d}
% \author{H.-Martin M\"{u}nch\\\xemail{Martin.Muench at Uni-Bonn.de}}
%
% \maketitle
%
% \begin{abstract}
-% This package puts the labels \texttt{LastPage}
+% \noindent This \LaTeX{} package puts the labels \texttt{LastPage}
% (|\AtEndDocument|) and \texttt{VeryLastPage} (|\AfterLastShipout|)
% into the \xfile{.aux} file, allowing the user to refer
% to the (very) last page of a document. This might be
@@ -446,10 +421,9 @@ In memoriam Tommy Muench + 2014/01/02.
% \textbf{logical page numbers} together with \xpackage{hyperref}!
% \label{logical page numbers}
% \begin{description}
-% \item [-] In Adobe Reader XI (11.0.6) enable:\\
-% \underline{E}dit $>$ Prefere\underline{n}ces (Ctrl+k)
-% $>$ Page Display $>$ Page Content and Information
-% $>$ Use logical page \nolinebreak{\underline{n}umbers\ .}
+% \item [-] In Adobe Reader DC 2015.008.20082 enable:\\
+% Edit $>$ Preferences $>$ Categories: Page Display $>$
+% Page Content and Information: Use logical page numbers
%
% \item[-] Use the \xpackage{hyperref} package with option |plainpages=false|\,.
% \end{description}
@@ -1134,39 +1108,13 @@ In memoriam Tommy Muench + 2014/01/02.
% \begin{description}
% \item[-] There can be a counter overflow, see preceding subsection~\ref{ss:overflow}.
%
-% \item[-] Adobe Reader XI (11.0.1) does not show the correct page names
-% for all pages with \texttt{fnsymbol} page numbering scheme:
-%
-% \begin{center}
-% \begin{tabular}{c|c|c|c}
-% page & page & \multicolumn{2}{c|}{shown by the Reader} \\
-% number & name & without & \multicolumn{1}{c|}{with} \\
-% & & \multicolumn{2}{c|}{\xpackage{alphalph} \&\ \xpackage{pageslts}}\\ \hline
-% $-2$ & \texttt{LaTeX Error} & & \ensuremath {-\ } \\
-% $-1$ & \texttt{LaTeX Error} & & \ensuremath {- *} \\
-% $0$ & (ignored by \LaTeX) & & 0 \\
-% $1$ & \ensuremath {*} & * & \ensuremath {*} \\
-% $2$ & \ensuremath {\dagger } & & \\
-% $3$ & \ensuremath {\ddagger } & & \\
-% $4$ & \ensuremath {\mathsection } & & \\
-% $5$ & \ensuremath {\mathparagraph } & & \\
-% $6$ & \ensuremath {\delimiter "026B30D } & "026B30D & \ensuremath {**} \\
-% $7$ & \ensuremath {**} & ** & \\
-% $8$ & \ensuremath {\dagger \dagger } & & \\
-% $9$ & \ensuremath {\ddagger \ddagger } & & \\
-% $10$ & \texttt{LaTeX Error} & & \\
-% $11$ & \texttt{LaTeX Error} & & \ensuremath {***} \\
-% $12$ & \texttt{LaTeX Error} & & \\
-% \end{tabular}
-% \end{center}
-%
-% \noindent and so on, while at least the (\ldots\ of \ldots )
-% part of the page number is displayed correctly (see
-% page~\pageref{logical page numbers}, tip about logical page numbers).
+% \item[-] Adobe Reader DC 2015.008.20082 does not show the correct page names
+% for all pages with \texttt{fnsymbol} page numbering scheme (see the example file),
+% while at least the (\ldots\ of \ldots ) part of the page number is displayed correctly
+% (see page~\pageref{logical page numbers}, tip about logical page numbers).
% When the \xpackage{alphalph} package and the \xpackage{pageslts} package with
-% |fnsymbolmult| option are used, page names like
-% \ensuremath {- *}, 0, \ensuremath {*}, \ensuremath {**} are
-% also presented correctly by the Reader. (Adobe Reader~X even got the other pages right.)
+% |fnsymbolmult| option are used, more page names are presented correctly by the Reader.
+% (Adobe Reader~X even got all pages right.)
% \end{description}
%
% \newpage
@@ -1225,8 +1173,8 @@ In memoriam Tommy Muench + 2014/01/02.
% \url{ftp://tug.ctan.org/pub/tex-archive/obsolete/macros/latex209/contrib/misc/nofm.sty},\\
% does not work with e.\,g. \xpackage{hyperref}, redefines |\enddocument|
% as well as |\@oddhead|, |\@evenhead|, |\@oddfoot|, and |\@evenfoot|.\\
-% If you know the (\CTAN{}) location of a \textbf{working}~(!) version,
-% please send me an e-mail, thanks!
+% If you know the (\url{https://www.CTAN.org}) location of a%
+% \textbf{working}~(!) version, please send me an e-mail, thanks!
% \end{description}
%
% \DescribeMacro{count1to}
@@ -1246,9 +1194,9 @@ In memoriam Tommy Muench + 2014/01/02.
% \bigskip
%
% \noindent (You programmed or found another alternative,
-% which is available at \CTAN ?\\
-% OK, send an e-mail to me with the name, location at \CTAN , and
-% a short notice, and I will probably include it in the list above.)\\
+% which is available at \url{https://www.CTAN.org}?\\
+% OK, send an e-mail to me with the name, location at CTAN,
+% and a short notice, and I will probably include it in the list above.)\\
%
% \smallskip
%
@@ -1260,12 +1208,11 @@ In memoriam Tommy Muench + 2014/01/02.
%
% \begin{macrocode}
%<*example>
-\documentclass[british]{article}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{lipsum}[2011/04/14]% v1.2
-\usepackage[draft]{showkeys}[2007/08/07]% v3.15
+\documentclass[british]{article}[2014/09/29]% v1.4h
+\usepackage{lipsum}[2014/07/27]% v1.3
+\usepackage[draft]{showkeys}[2014/10/28]% v3.17
%% Use final instead of draft to hide the keys. %%
-\usepackage{hyperref}[2012/11/06]% v6.83m
+\usepackage{hyperref}[2012/11/06]% v6.83m
\hypersetup{%
extension=pdf,%
plainpages=false,%
@@ -1282,7 +1229,7 @@ In memoriam Tommy Muench + 2014/01/02.
bookmarksopen=true%
}
\usepackage[pagecontinue=true,alphMult=ab,AlphMulti=AB,fnsymbolmult=true,%
- romanMult=true,RomanMulti=true]{pageslts}[2014/01/19]% v1.2c
+ romanMult=true,RomanMulti=true]{pageslts}[2015/08/02]% v1.2d
%% These are the default options. %%
\makeatletter
@@ -1314,7 +1261,7 @@ In memoriam Tommy Muench + 2014/01/02.
\markboth{Example for pageslts}{Example for pageslts}
This example demonstrates the most common uses of package\\
-\textsf{pageslts}, v1.2c as of 2014/01/19 (HMM).\\
+\textsf{pageslts}, v1.2d as of 2015/08/02 (HMM).\\
The used options were \texttt{pagecontinue=true},
\texttt{alphMult=ab}, \texttt{AlphMulti=AB}, \linebreak
\texttt{fnsymbolmult=true},
@@ -1356,12 +1303,10 @@ trademark symbol; they are the property of their respective
trademark owner. There is no intention of infringement; the
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 XI (11.0.6): \underline{E}dit $>$
-Prefere\underline{n}ces (Ctrl+k) $>$ Page Display $>$
-Page Content and Information $>$ Use logical page
-\nolinebreak{\underline{n}umbers.)}\\
+\textbf{Tip}: Use \textit{logical page numbers}
+for the display of the pdf (in Adobe Reader DC 2015.008.20082:
+Edit $>$ Preferences $>$ Categories: Page Display $>$
+Page Content and Information: Use logical page numbers)!\\
You want negative page numbers? Not only arabic, but even roman,
Roman, alph, Alph or fnsymbol ones? No problem, e.\,g. just give a\\
@@ -1683,34 +1628,10 @@ current page numbering scheme): \theCurrentPageLocal\\
\section{fnsymbol}
-Adobe Reader XI (11.0.1) does not show the correct page names
-for all pages with \texttt{fnsymbol} page numbering scheme:
-
-\begin{center}
-\begin{tabular}{c|c|c|c}
-page & page & \multicolumn{2}{c|}{shown by the Reader} \\
-number & name & without & \multicolumn{1}{c|}{with} \\
- & & \multicolumn{2}{c|}{\textsf{alphalph} \&\ \textsf{pageslts}}\\ \hline
-$-2$ & \texttt{LaTeX Error} & & \ensuremath {-\ }\\
-$-1$ & \texttt{LaTeX Error} & & \ensuremath {- *}\\
- $0$ & (ignored by \LaTeX) & & 0 \\
- $1$ & \ensuremath {*} & * & \ensuremath {*} \\
- $2$ & \ensuremath {\dagger } & & \\
- $3$ & \ensuremath {\ddagger } & & \\
- $4$ & \ensuremath {\mathsection } & & \\
- $5$ & \ensuremath {\mathparagraph } & & \\
- $6$ & \ensuremath {\delimiter "026B30D } & "026B30D & \ensuremath {**} \\
- $7$ & \ensuremath {**} & ** & \\
- $8$ & \ensuremath {\dagger \dagger } & & \\
- $9$ & \ensuremath {\ddagger \ddagger } & & \\
-$10$ & \texttt{LaTeX Error} & & \\
-$11$ & \texttt{LaTeX Error} & & \ensuremath {***}\\
-$12$ & \texttt{LaTeX Error} & & \\
-\end{tabular}
-\end{center}
-
-\noindent and so on, while at least the (\ldots\ of \ldots ) part
-of the page number is displayed correctly.\\
+Adobe Reader DC 2015.008.20082 does not show the correct page names
+for all pages with \texttt{fnsymbol} page numbering scheme,
+while at least the (\ldots\ of \ldots ) part of the page number is displayed correctly.
+(Adobe Reader~X even got all pages right.)
\bigskip
@@ -2201,8 +2122,8 @@ a package with output \linebreak
% \end{macrocode}
%
% \begin{macrocode}
-\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)]
% \end{macrocode}
@@ -2259,12 +2180,47 @@ a package with output \linebreak
% \end{macrocode}
%
+% For |\ltx@ifpackageloaded| the \xpackage{ltxcmds} package is needed,
+% also by \textsc{Heiko Oberdiek} (see subsection~\ref{ss:Downloads}):
+%
+% \begin{macrocode}
+\RequirePackage{ltxcmds}[2011/11/09]% v1.22
+% \end{macrocode}
+%
% For its |\AfterLastShipout| (as well as its |\AtEndAfterFileList|) command
% we need the \xpackage{atveryend} package by \textsc{Heiko Oberdiek}
% (see subsection~\ref{ss:Downloads}):
%
% \begin{macrocode}
\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%
+ }%
+ }
+
% \end{macrocode}
%
% For its |\EveryShipout| command we need the \xpackage{everyshi}
@@ -2281,13 +2237,6 @@ a package with output \linebreak
\RequirePackage{letltxmacro}[2010/09/02]% v1.4
% \end{macrocode}
%
-% For |\ltx@ifpackageloaded| the \xpackage{ltxcmds} package is needed,
-% also by \textsc{Heiko Oberdiek} (see subsection~\ref{ss:Downloads}):
-%
-% \begin{macrocode}
-\RequirePackage{ltxcmds}[2011/11/09]% v1.22
-% \end{macrocode}
-%
% For the handling of the options we need the \xpackage{kvoptions}
% package also by \textsc{Heiko Oberdiek} (see subsection~\ref{ss:Downloads}):
%
@@ -2301,7 +2250,7 @@ a package with output \linebreak
% is used twice (or even more often).
%
% \begin{macrocode}
-\RequirePackage{undolabl}[2012/01/01]% v1.0k
+\RequirePackage{undolabl}[2015/03/29]% v1.0l
% \end{macrocode}
%
% We use the \xpackage{rerunfilecheck} package by \textsc{Heiko Oberdiek}
@@ -2340,7 +2289,7 @@ a package with output \linebreak
% and so interfered drastically with the \LaTeXe\ commands which
% make use of |\AtEndDocument|. Newer versions of \xpackage{endfloat}
% exists (at the time of writing this documentation: v2.5d as of 2011/12/25)
-% in modern documentation form, which are available from \CTAN{}
+% in modern documentation form, which are available from \url{https://www.CTAN.org}
% (see subsection~\ref{ss:Downloads}).
% A~note is placed here, and later it is checked whether a (very) old
% \xpackage{endfloat} package is in use. If it is, a warning or even
@@ -2634,20 +2583,49 @@ a package with output \linebreak
% \end{macrocode}
%
-% It is checked whether writing into an \xfile{.aux}-file is allowed.
+% It is checked whether writing to files is allowed.
% The \xpackage{pageslts} package cannot be used without that!
-% If it is allowed, we define |\pagesLTS@loaded| as |p@gesLTSnotlo@ded|
-% for the next run.
+% Some packages (e.\,g. \xpackage{tikz} and \xpackage{selectp}) sometimes prevent
+% the output to the \xfile{aux} file. In that case a warning or an error message
+% is issued. This is no problem as long as there is/was another compilation run
+% where the labels can/could be processed via the \xfile{aux} file.\\
+% If it is allowed to write to the \xfile{aux} file, we define
+% |\pagesLTS@loaded| as |p@gesLTSnotlo@ded| for the next compilation run.
%
% \begin{macrocode}
-\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%
+% \end{macrocode}
+%
+% \noindent then |\relax|.\newline
+% When writing to files is not allowed, nothing can be done.
+% But when the labels were already processed via the \xfile{aux} file,
+% nothing needs to be done (if enough compilation runs have been done before).
+%
+% \begin{macrocode}
+ \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%
+ }
% \end{macrocode}
%
@@ -3958,7 +3936,7 @@ a package with output \linebreak
% \xpackage{showkeys} cannot present the respective label.
%
% \begin{macrocode}
- \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%
@@ -4214,9 +4192,8 @@ a package with output \linebreak
\@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
}%
@@ -4227,17 +4204,17 @@ a package with output \linebreak
%
% \begin{macrocode}
\@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%
}%
@@ -4245,8 +4222,7 @@ a package with output \linebreak
}{\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%
}%
}
@@ -4262,7 +4238,8 @@ a package with output \linebreak
\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%
}%
}%
@@ -4289,19 +4266,40 @@ a package with output \linebreak
%
% \begin{macrocode}
\ltx@ifpackageloaded{showkeys}{%
- \@ifpackagewith{showkeys}{final}{}{\gdef\pagesLTS@SK{1}}}{}%
+ \@ifpackagewith{showkeys}{final}{}{\gdef\pagesLTS@SK{1}}}{% else \relax
+ }%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AtEndDocument}
-% \indent |\AtEndDocument| we first give the error message about the missing
-% (i.\,e.~not found) page numbering scheme, which could not be given in |\EveryShipout|.
+% \indent |\AtEndDocument| the check is repeated. If \xpackage{showkeys} was
+% loaded after the check performed before, an error message is issued.
%
% \begin{macrocode}
\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
+ }%
+% \end{macrocode}
+%
+% We also give the error message about the missing (i.\,e.~not found)
+% page numbering scheme, which could not be given in |\EveryShipout|.
+%
+% \begin{macrocode}
+ \ifx\pncmissing\pagesLTS@one\relax%
\PackageError{pageslts}{pagenumbering scheme missing}{\pagesLTS@messageNPN }%
\fi%
% \end{macrocode}
@@ -4328,8 +4326,7 @@ a package with output \linebreak
\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}%
@@ -4447,8 +4444,6 @@ a package with output \linebreak
\addtocounter{CurrentPage}{+1}%
% \end{macrocode}
%
-% \pagebreak
-%
% The \texttt{VeryLastPage} label is set here, and when
% |\lastpageref{VeryLastPage}| instead of |\lastpageref{LastPage}| is used,
% it should really point to the last page.
@@ -4489,6 +4484,8 @@ a package with output \linebreak
% \end{macrocode}
% \end{macro}
%
+% \pagebreak
+%
% \begin{macro}{\AtEndAfterFileList}
% \indent |\AtEndAfterFileList{...}| is even later:
% \begin{quote}
@@ -4516,8 +4513,6 @@ a package with output \linebreak
% \end{macrocode}
% \end{macro}
%
-% \pagebreak
-%
% \begin{macro}{\frontmatter}
% \indent |\frontmatter| often contains |\pagenumbering|, but for some unknown reason
% there are problems when another |\pagenumbering| with different page numbering scheme
@@ -4529,33 +4524,33 @@ a package with output \linebreak
% before |\frontmatter| was initiated at the same page.
% \end{macro}
%
-% First we need an |\ifundefined|, which neither requires \eTeX{} nor
+% We need an |\ifundefined|, which neither requires \eTeX{} nor
% defines the command, which is to be tested, to |\relax| (in which case
-% it would be no longer undefined for further tests).\\
-% The code of Markus Kohm from
-% \url{http://de.comp.text.tex.narkive.com/uNza5NAA/ifundef-and-ifdef}
-% is fine for this:
+% it would be no longer undefined for further tests). For this we use
+% code from \textsc{Markus Kohm} similar to his |\scr@ifundefinedorrelax| from %
+% \xpackage{scrbase.sty} of the KOMA script bundle,
+% but without the necessarity to use \eTeX :
%
-% \begin{macro}{\ifund@fined}
% \begin{macrocode}
-\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%
}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macrocode}
-\ifund@fined{frontmatter}{\relax}{%
+\pagesLTS@ifundefinedorrelax{frontmatter}{% \relax
+}{% else
\ltx@GlobalPrependToMacro{\frontmatter}{\pagesLTS@prefrontmatter}%
\ltx@GlobalAppendToMacro{\frontmatter}{\pagesLTS@postfrontmatter}%
- }
+ }
% \end{macrocode}
%
@@ -4611,61 +4606,61 @@ a package with output \linebreak
%
% \subsection{Downloads\label{ss:Downloads}}
%
-% Everything should be available on \CTAN{}, \url{ftp://ftp.ctan.org/tex-archive/},
+% Everything is available at \url{https://www.ctan.org},
% but may need additional packages themselves.\\
%
% \DescribeMacro{pageslts.dtx}
-% For unpacking the |pageslts.dtx| file and constructing the documentation it is required:
+% For unpacking the |thumbs.dtx| file and constructing the documentation it is required:
% \begin{description}
-% \item[-] \TeX Format \LaTeXe, 2011/06/27, v2$\varepsilon $: \CTAN{}
+% \item[-] \TeX Format \LaTeXe{}: \url{https://www.CTAN.org}
%
-% \item[-] document class \textsf{ltxdoc}, 2007/11/11, v2.0u, \CTAN{macros/latex/base/ltxdoc.dtx}
+% \item[-] document class \xclass{ltxdoc}, 2015-03-26, 2.0w, \url{https://www.ctan.org/pkg/ltxdoc}
%
-% \item[-] package \xpackage{holtxdoc}, 2012/03/21, v0.24, \CTAN{macros/latex/contrib/oberdiek/holtxdoc.dtx}
+% \item[-] package \xpackage{holtxdoc}, 2012/03/21, v0.24, \url{https://www.ctan.org/pkg/holtxdoc}
%
-% \item[-] package \xpackage{hypdoc}, 2011/08/19, v1.11, \CTAN{macros/latex/contrib/oberdiek/hypdoc.dtx}
+% \item[-] package \xpackage{hypdoc}, 2011/08/19, v1.11, \url{https://www.ctan.org/pkg/hypdoc}
%
-% \item[-] package \xpackage{geometry}, 2010/09/12, v5.6, \CTAN{macros/latex/contrib/geometry/geometry.dtx}
+% \item[-] package \xpackage{geometry}, 2010/09/12, v5.6, \url{https://www.ctan.org/pkg/geometry}
%
-% \item[-] package \xpackage{ulem}, 2012/05/18, no version number given, \CTAN{macros/latex/contrib/ulem/}
+% \item[-] package \xpackage{ulem}, 2012/05/18, no version number given, \url{https://www.ctan.org/pkg/ulem}
% \end{description}
%
% \DescribeMacro{pageslts.sty}
-% The |pageslts.sty| for \LaTeXe\ (i.\,e. all documents using
+% The |pageslts.sty| for \LaTeXe{} (i.\,e. all documents using
% the \xpackage{pageslts} package) requires:
% \begin{description}
-% \item[-] \TeX Format \LaTeXe, 2011/06/27, v2$\varepsilon $, \CTAN{}
+% \item[-] \TeX{} Format \LaTeXe{}, \url{https://www.CTAN.org}
%
-% \item[-] package \xpackage{atveryend}, 2011/06/30, v1.8, \CTAN{macros/latex/contrib/oberdiek/atveryend.dtx}
+% \item[-] package \xpackage{atveryend}, 2011/06/30, v1.8, \url{https://www.ctan.org/pkg/atveryend}
%
-% \item[-] package \xpackage{everyshi}, 2001/05/15, v3.00, \CTAN{macros/latex/contrib/ms/everyshi.dtx}
+% \item[-] package \xpackage{everyshi}, 2001/05/15, v3.00, \url{https://www.ctan.org/pkg/everyshi}
%
-% \item[-] package \xpackage{kvoptions}, 2011/06/30, v3.11, \CTAN{macros/latex/contrib/oberdiek/kvoptions.dtx}
+% \item[-] package \xpackage{kvoptions}, 2011/06/30, v3.11, \url{https://www.ctan.org/pkg/kvoptions}
%
-% \item[-] package \xpackage{letltxmacro}, 2010/09/02, v1.4, \CTAN{macros/latex/contrib/oberdiek/letltxmacro.dtx}
+% \item[-] package \xpackage{letltxmacro}, 2010/09/02, v1.4, \url{https://www.ctan.org/pkg/letltxmacro}
%
-% \item[-] package \xpackage{ltxcmds}, 2011/11/09, v1.22, \CTAN{macros/latex/contrib/oberdiek/ltxcmds.dtx}
+% \item[-] package \xpackage{ltxcmds}, 2011/11/09, v1.22, \url{https://www.ctan.org/pkg/ltxcmds}
%
-% \item[-] package \xpackage{rerunfilecheck}, 2011/04/15, v1.7, \CTAN{macros/latex/contrib/oberdiek/rerunfilecheck.dtx}
+% \item[-] package \xpackage{rerunfilecheck}, 2011/04/15, v1.7, \url{https://www.ctan.org/pkg/rerunfilecheck}
%
-% \item[-] package \xpackage{undolabl}, 2012/01/01, v1.0k, \CTAN{macros/latex/contrib/undolabl/undolabl.dtx}\\
+% \item[-] package \xpackage{undolabl}, 2015/03/29, v1.0l, \url{https://www.ctan.org/pkg/undolabl}\\
% \end{description}
%
% \DescribeMacro{pageslts-example.tex}
% The |pageslts-example.tex| requires the same files as all
% documents using the \xpackage{pageslts} package, and additionally:
% \begin{description}
-% \item[-] class \textsf{article}, 2007/10/19, v1.4h, from \textsf{classes.dtx}: \CTAN{macros/latex/base/classes.dtx}
+% \item[-] class \textsf{article}, 2014/09/29, v1.4h, from \textsf{classes.dtx}: \url{https://www.ctan.org/pkg/classes}
%
-% \item[-] package \xpackage{alphalph}, 2011/05/13, v2.4, \CTAN{macros/latex/contrib/oberdiek/alphalph.dtx}
+% \item[-] package \xpackage{alphalph}, 2011/05/13, v2.4, \url{https://www.ctan.org/pkg/alphalph}
%
-% \item[-] package \xpackage{lipsum}, 2011/04/14, v1.2, \CTAN{macros/latex/contrib/lipsum/lipsum.dtx}
+% \item[-] package \xpackage{lipsum}, 2014/07/27, v1.3, \url{https://www.ctan.org/pkg/lipsum}
%
-% \item[-] package \xpackage{showkeys}, 2007/08/07, v3.15, \CTAN{macros/latex/required/tools/showkeys.dtx}
+% \item[-] package \xpackage{showkeys}, 2014/10/28, v3.17, \url{https://www.ctan.org/pkg/showkeys}
%
-% \item[-] package \xpackage{hyperref}, 2012/11/06, v6.83m, \CTAN{macros/latex/contrib/hyperref.zip}
+% \item[-] package \xpackage{hyperref}, 2012/11/06, v6.83m, \url{https://www.ctan.org/pkg/hyperref}
%
-% \item[-] package \xpackage{pageslts}, 2014/01/19, v1.2c, \CTAN{macros/latex/contrib/pageslts/pageslts.dtx}\\
+% \item[-] package \xpackage{pageslts}, 2015/08/02, v1.2d, \url{https://www.ctan.org/pkg/pageslts}\\
% (Well, it is the example file for this package, and because you are reading the
% documentation for the \xpackage{pageslts} package, it can be assumed that you already
% have some version of it~-- is it the current one?)
@@ -4677,7 +4672,7 @@ a package with output \linebreak
% The \xpackage{papermas} package is not required, but requires itself the
% the \xpackage{pageslts} package and can be considered as kind of add-on:
% \begin{description}
-% \item[-] package \xpackage{papermas}, 2011/08/22, v1.0h, \CTAN{macros/latex/contrib/papermas/papermas.dtx}
+% \item[-] package \xpackage{papermas}, 2011/08/22, v1.0h, \url{https://www.ctan.org/pkg/papermas}
% \end{description}
%
% \DescribeMacro{endfloat}
@@ -4686,14 +4681,14 @@ a package with output \linebreak
% of the \xpackage{endfloat} package (see subsection~\ref{sec:endfloat}),
% here the recent one is listed:
% \begin{description}
-% \item[-] package \xpackage{endfloat}, 2011/12/25, v2.5d, \CTAN{macros/latex/contrib/endfloat/endfloat.dtx}
+% \item[-] package \xpackage{endfloat}, 2011/12/25, v2.5d, \url{https://www.ctan.org/pkg/endfloat}
% \end{description}
%
% \DescribeMacro{prelim2e}
% The \xpackage{prelim2e} package is not required either, but because
% |Prelim@EveryShipout| code was taken from that package, it is listed, too:
% \begin{description}
-% \item[-] package \xpackage{prelim2e}, 2009/05/29, v1.3, \CTAN{macros/latex/contrib/ms/prelim2e.dtx}
+% \item[-] package \xpackage{prelim2e}, 2009/05/29, v1.3, \url{https://www.ctan.org/pkg/prelim2e}
% \end{description}
%
% \DescribeMacro{fancyhdr}
@@ -4702,9 +4697,9 @@ a package with output \linebreak
% (the \xpackage{lastpage} package used its predecessor \xpackage{fancyheadings}),
% but because they were mentioned, also they are listed here:
% \begin{description}
-% \item[-] package \xpackage{fancyhdr}, 2005/03/22, v3.2, \CTAN{macros/latex/contrib/fancyhdr.zip}
+% \item[-] package \xpackage{fancyhdr}, \url{https://www.ctan.org/pkg/fancyhdr}
%
-% \item[-] package \xpackage{nccfancyhdr}, 2004/12/07, v1.1, \CTAN{macros/latex/contrib/ncctools/source/nccfancyhdr.dtx}
+% \item[-] package \xpackage{nccfancyhdr}, \url{https://www.ctan.org/pkg/nccfancyhdr}
% \end{description}
%
% \DescribeMacro{lastpage}
@@ -4715,19 +4710,19 @@ a package with output \linebreak
% \DescribeMacro{zref}
% As possible alternatives in section \ref{sec:Alternatives} there are listed
% \begin{description}
-% \item[-] package \xpackage{lastpage}, 2013/01/28, v1.2l, \CTAN{macros/latex/contrib/lastpage/lastpage.dtx}
+% \item[-] package \xpackage{lastpage}, 2015/03/29, v1.2m, \url{https://www.ctan.org/pkg/lastpage}
%
-% \item[-] package \xpackage{totpages}, 2005/09/19, v2.00, \CTAN{macros/latex/contrib/totpages/totpages.dtx}
+% \item[-] package \xpackage{totpages}, 2005/09/19, v2.00, \url{https://www.ctan.org/pkg/totpages}
%
-% \item[-] package \xpackage{totcount}, 2011/01/25, v1.2, \CTAN{macros/latex/contrib/totcount/totcount.dtx}
+% \item[-] package \xpackage{totcount}, 2011/01/25, v1.2, \url{https://www.ctan.org/pkg/totcount}
%
-% \item[-] package \xpackage{nofm}, 1991/02/25, v?.?,
+% \item[-] package \xpackage{nofm}, 1991/02/25, without version number,
% \url{ftp://tug.ctan.org/pub/tex-archive/obsolete/macros/latex209/contrib/misc/nofm.sty},
% does not work with e.\,g. \xpackage{hyperref}
%
-% \item[-] package \xpackage{count1to}, 2009/05/24, v2.1, \CTAN{macros/latex/contrib/ms/count1to.dtx}
+% \item[-] package \xpackage{count1to}, 2009/05/24, v2.1, \url{https://www.ctan.org/pkg/count1to}
%
-% \item[-] package \xpackage{zref}, 2012/04/04, v2.24, \CTAN{macros/latex/contrib/oberdiek/zref.dtx}
+% \item[-] package \xpackage{zref}, 2012/04/04, v2.24, \url{https://www.ctan.org/pkg/zref}
% \end{description}
%
% \DescribeMacro{Oberdiek}
@@ -4743,31 +4738,34 @@ a package with output \linebreak
% (especially \xpackage{alphalph}, \xpackage{atveryend}, \xpackage{holtxdoc}, \xpackage{letltxmacro},
% \xpackage{ltxcmds}, \xpackage{kvoptions}, \xpackage{rerunfilecheck}, and \xpackage{zref})
% are also available in a TDS compliant ZIP archive:\\
-% \CTAN{install/macros/latex/contrib/oberdiek.tds.zip}.\\
+% \url{http://mirrors.ctan.org/install/macros/latex/contrib/oberdiek.tds.zip}.\\
% It is probably best to download and use this, because the packages in there
-% should be both recent and compatible.\\
+% are quite probably both recent and compatible among themselves.
%
-% \vspace{2cm}
+% \DescribeMacro{hyperref}
+% \noindent \xpackage{hyperref} is not included in that bundle and needs to be
+% downloaded separately,\\
+% \url{http://mirrors.ctan.org/install/macros/latex/contrib/hyperref.tds.zip}.
%
% \DescribeMacro{M\"{u}nch}
% A hyperlinked list of my (other) packages can be found at
-% \url{http://ctan.org/author/muench-hm}.\\
+% \url{https://www.ctan.org/author/muench-hm}.
%
% \subsection{Package, unpacking TDS}
-% \paragraph{Package.} This package is available on \CTAN{}.
+% \paragraph{Package.} This package is available on \url{CTAN.org}.
% \begin{description}
-% \item[\CTAN{macros/latex/contrib/pageslts/pageslts.dtx}]\hspace*{0.1cm} \\
+% \item[\url{http://mirrors.ctan.org/macros/latex/contrib/pageslts/pageslts.dtx}]\hspace*{0.1cm} \\
% The source file.
-% \item[\CTAN{macros/latex/contrib/pageslts/pageslts.pdf}]\hspace*{0.1cm} \\
+% \item[\url{http://mirrors.ctan.org/macros/latex/contrib/pageslts/pageslts.pdf}]\hspace*{0.1cm} \\
% The documentation.
-% \item[\CTAN{macros/latex/contrib/pageslts/pageslts-example.pdf}]\hspace*{0.1cm} \\
+% \item[\url{http://mirrors.ctan.org/macros/latex/contrib/pageslts/pageslts-example.pdf}]\hspace*{0.1cm} \\
% The compiled example file, as it should look like.
-% \item[\CTAN{macros/latex/contrib/pageslts/README}]\hspace*{0.1cm} \\
+% \item[\url{http://mirrors.ctan.org/macros/latex/contrib/pageslts/README}]\hspace*{0.1cm} \\
% The README file.
% \end{description}
-% There is also a pageslts.tds.zip available:
+% There is also a |thumbs.tds.zip| available:
% \begin{description}
-% \item[\CTAN{install/macros/latex/contrib/pageslts.tds.zip}]\hspace*{0.1cm} \\
+% \item[\url{http://mirror.ctan.org/install/macros/latex/contrib/pageslts.tds.zip}]\hspace*{0.1cm} \\
% Everything in TDS compliant, compiled format.
% \end{description}
% which additionally contains\\
@@ -4780,11 +4778,11 @@ a package with output \linebreak
%
% \bigskip
%
-% \noindent For required other packages, see the preceding subsection.
+% \noindent For required other packages see the preceding subsection.
%
% \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
-% \docstrip\ archive. The files are extracted by running the
-% \xfile{.dtx} through \plainTeX:
+% \docstrip{} archive. The files are extracted by running the
+% \xfile{.dtx} through \plainTeX :
% \begin{quote}
% \verb|tex pageslts.dtx|
% \end{quote}
@@ -4939,18 +4937,22 @@ a package with output \linebreak
% \textsc{Andres L\"{o}h} for the code to determine the current page
% numbering scheme, and the \Newsgroup{comp.text.tex} and
% \Newsgroup{de.comp.text.tex} newsgroups for their help in all things \TeX{}.
-% For bug reports I thank Micha\l{} Herman and kwikwi.
+% For bug reports I thank Micha\l{} Herman, kwikwi, and Joshua Ellis.
%
% \phantomsection
% \begin{History}\label{History}
+%
+% Some old versions have been archived at
+% \url{http://ctanhg.scharrer-online.de/pkg/pageslts.html}.
+%
% \begin{Version}{1994/06/17, \xpackage{lastpage}}
-% \item \xpackage{lastpage} v0.99a: First shot by Jeffrey P. Goldberg.
+% \item \xpackage{lastpage} v0.99a: First shot by \textsc{Jeffrey P. Goldberg}.
% \end{Version}
% \begin{Version}{1994/06/25, \xpackage{lastpage}}
-% \item \xpackage{lastpage} v0.1b: Last version number created by Jeffrey P. Goldberg.
+% \item \xpackage{lastpage} v0.1b: Last version number created by \textsc{Jeffrey P. Goldberg}.
% \end{Version}
% \begin{Version}{1994/07/20, \xpackage{lastpage}}
-% \item \xpackage{lastpage} v0.1b (again): Documentation updated by Jeffrey P. Goldberg.\\
+% \item \xpackage{lastpage} v0.1b (again): Documentation updated by \textsc{Jeffrey P. Goldberg}.\\
% The main source code of the \xpackage{lastpage} package 1994/07/20 v0.1b was:\\
% \begin{verbatim}
% \NeedsTeXFormat{LaTeX2e}[1994/06/01]
@@ -4983,19 +4985,18 @@ a package with output \linebreak
% page numbering scheme (even on the last page).
% \item Introduction of \xpackage{kvoptions} into this package.
% \item Check for incompatible \xpackage{endfloat} package.
-% \item \xpackage{lastpage209.sty} for \LaTeX209.
-% \item Replacement of |\filedate|, |-version|, |-name|,\ldots\ because
+% \item \xpackage{lastpage209.sty} for \LaTeX209 .
+% \item Replacement of |\filedate|, |-version|, |-name|,\ldots{} because
% of \LaTeX~bug 2705:\\
% Synopsis: Possible problem with |\fileversion| and |\filedate|\\
% \url{http://www.latex-project.org/cgi-bin/ltxbugs2html?category=LaTeX&responsible=anyone&state=anything&keyword=lastpage&pr=latex%2F2705&search=}
% \item \xpackage{alphalph} support included.
% \item Page numbering extension |\erroralph| by \textsc{Heiko Oberdiek} included.
% \item (Page-) Numbering extension for |roman| and |Roman| numbers included.
-% \item Incompatible, old \xpackage{lastpage} package \textquotedblleft killed\textquotedblright.
-% \item Example |pagesLTS-example.tex|.
+% \item Incompatible, old \xpackage{lastpage} package \textquotedblleft killed\textquotedblright .
+% \item Example |pagesLTS-example.tex| added.
% \item Alternatives listing (section \ref{sec:Alternatives}).
-% \item Listing of \TeX\ sources (subsection \ref{ss:Downloads}).
-% \item A~lot~(!) of details.
+% \item Listing of \TeX{} sources (subsection \ref{ss:Downloads}).
% \item Complete rewriting of the documentation.
% \item Everything in DTX framework.
% \item New package name: \xpackage{pagesLTS} for Last, Total,
@@ -5005,15 +5006,12 @@ a package with output \linebreak
% \item Abstract changed: Negative \texttt{roman} and \texttt{Roman} page
% numbers are now possible.
% \item Some references to other packages have been updated.
-% \item Several typing mistakes have been corrected
-% (and new ones have been included probably) -
+% \item Several typing mistakes have been corrected~-
% both in the \xfile{sty}le file as well as in this documentation.
% \end{Version}
% \begin{Version}{2010/06/03 v1.1b \xpackage{pagesLTS}}
% \item Corrected a bug in |\XXRoman|, where |\roman| instead of |\Roman| had been used.
% \item New \xpackage{papermas} package mentioned.
-% \item Updated references to other packages.
-% \item TDS locations updated.
% \item Several changes in the documentation and the Readme file.
% \end{Version}
% \begin{Version}{2010/06/24 v1.1c \xpackage{pagesLTS}}
@@ -5022,8 +5020,7 @@ a package with output \linebreak
% \item Corrected the location of the package at CTAN.
% (In this version \xfile{TDS} was still missing due to packaging error.)
% \item Corrected Message format in pagesLTS.\xfile{ins}.
-% \item Updated references to other packages: \xpackage{hyperref}, \xpackage{undolabl}, and \xpackage{papermas}.
-% \item Added a list of my other packages.
+% \item Updates to the documentation.
% \end{Version}
% \begin{Version}{2010/07/15 v1.1d \xpackage{pagesLTS}}
% \item Added the |\@ifclassloaded{revtex4}| code for |\lastpage@putlabel| (changed to
@@ -5032,20 +5029,17 @@ a package with output \linebreak
% \item In the documentation added the explanation of the occurence of multiply definitions
% of the |LastPage| label with \xpackage{lastpage}, \xpackage{pagesLTS}, \xpackage{hyperref}
% package (in that order).
-% \item Corrected the given location of the \xpackage{pagesLTS.tds.zip} file at CTAN.
-% \item Updated references to other packages: \xpackage{hyperref} and \xpackage{undolabl}.
-% \item Updated to new version of \xpackage{undolabl} package [2010/07/15] v1.0d,
+% \item Updated to (then) new version of \xpackage{undolabl} package [2010/07/15] v1.0d,
% which uses |\undonewlabel| with only one instead of two arguments.
% \item Added a warning message, if \xpackage{hyperref} \textit{and} \xpackage{pdfpages} are \textit{both} used.
% (Should not \xpackage{hyperref} give this warning?)
-% \item The usual correction of typos and minor details in the documentation.
+% \item Updates to the documentation.
% \end{Version}
% \begin{Version}{2010/07/29 v1.1e \xpackage{pagesLTS}}
% \item Removed \xpackage{lastpage209.sty}, because it is now contained
% in the \xpackage{lastpage}\xfile{.dtx}\ file, v\,$\geq 1.2$a.
% \item Removed the |\@ifclassloaded{revtex4}| code for |\lastpage@putlabel|.
% \item Handling of \xpackage{lastpage} package adapted to updated version~1.2(a).
-% \item There is a new version of the used \xpackage{geometry} package: 2010/07/13,~v5.5.
% \item Corrected error in \xpackage{lastpage} code [1994/07/20 v0.1b] given in \ref{History}~History.
% \item Version handling for \xpackage{undolabl} package updated.
% \item Included a |\CheckSum|.
@@ -5054,7 +5048,7 @@ a package with output \linebreak
% \begin{Version}{2010/08/08 v1.1f \xpackage{pagesLTS}}
% \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 \sout{\ is}\uwave{\ was} 9.3.3 (instead of 9.3.1).
+% \item Updates to the documentation.
% \end{Version}
% \begin{Version}{2010/08/12 v1.1g \xpackage{pagesLTS}}
% \item Now the rerun warning is given \textit{after} e.\,g. the |\listfiles|,
@@ -5077,7 +5071,7 @@ a package with output \linebreak
% |\Hy@Warning|.
% \end{Version}
% \begin{Version}{2010/09/12 v1.1j \xpackage{pagesLTS}}
-% \item Bug fix: \LaTeX\ issued a \textquotedblleft \texttt{Label(s) may have changed.%
+% \item Bug fix: \LaTeX{} issued a \textquotedblleft \texttt{Label(s) may have changed.%
% Rerun to get cross-references right.}\textquotedblright -warning,
% even if labels had not changed but were overwritten.
% \item Starred version of |\lastpageref| for suppressing hyperlinks introduced.
@@ -5086,8 +5080,6 @@ a package with output \linebreak
% \begin{Version}{2010/09/22 v1.1k \xpackage{pagesLTS}}
% \item When no \texttt{fnsymbol} pagenumbering scheme is used, the respective
% counters are not defined, saving three counters.
-% \item Updated to version 2010/09/13 v6.81n of the \xpackage{hyperref} package
-% (which needs two more counters than the old 2010/06/18 v6.81g version).
% \item Moved the package from \texttt{.../latex/muench/pagesLTS/...} to
% \texttt{.../latex/pagesLTS/...}.\\
% (Please make sure that the old version of the \xpackage{pagesLTS} package
@@ -5098,7 +5090,6 @@ a package with output \linebreak
% had to be moved to the outside of |\EveryShipout|, because it wrote its
% message into the document instead to the screen and the \xfile{.log}-file.
% \item Updated to version 2010/04/24 v0.19 of the \xpackage{holtxdoc} package.
-% \item \xpackage{lastpage} package has a new version: 2010/09/24 v1.2f.
% \end{Version}
% \begin{Version}{2011/02/01 v1.1m \xpackage{pagesLTS}}
% \item Added a new warning subsection about \xpackage{hyperref} and repeated page
@@ -5112,18 +5103,10 @@ a package with output \linebreak
% \xpackage{showkeys} package.)
% \item Bug fix: In some situations a rerun warning was given even if no rerun
% was necessary.
-% \item Replaced the list of my packages with a link to a web page list of those,
-% which has the advantage of showing the recent versions of all those packages.
-% \item There is a new version of the used \xpackage{geometry} package: 2010/09/12,~v5.6.
-% \item There \sout{\ is}\uwave{\ was} a new version of the
-% \xpackage{hyperref} package: 2010/12/16,~v6.81z.
% \item The recent version of the Adobe Reader \sout{\ is}\uwave{\ was} X (10.0.0)
% (instead of 9.3.3). Its handling of special page numbers was improved.
% \item The option \texttt{alphMult}\ \ is now set to \texttt{ab} by default.
% \item The option \texttt{AlphMulti}\ is now set to \texttt{AB} by default.
-% \item There is a new version of the \xpackage{lastpage} package: 2011/02/01,~v1.2g.
-% \item There is a new version of the used \xpackage{undolabl} package: 2011/02/01,~v1.0h.
-% \item There \sout{\ is}\uwave{\ was} a new version of the \xpackage{papermas} package: 2011/02/01,~v1.0e.
% \item Some details.
% \end{Version}
% \begin{Version}{2011/03/16 v1.1n \xpackage{pagesLTS}}
@@ -5138,18 +5121,12 @@ a package with output \linebreak
% \item Bug fix: The \xpackage{ulem} package is needed to generate the documentation from the
% \xfile{pagesLTS.dtx} file, but was not listed as necessary package.
% \item Bug fix: One reference to an outdated version of \xpackage{undolabl} package,
-% replaced by the recent version.
-% \item There \sout{\ is}\uwave{\ was} a new version of the \xpackage{hyperref} package:
-% 2011/03/09,~v6.82d.
-% \item The recent version of the Adobe Reader \sout{\ is}\uwave{\ was}\ X~(10.0.1)
-% (instead of 10.0.0).
+% replaced by the (then) recent version.
% \item Some minor details.
% \end{Version}
% \begin{Version}{2011/03/17 v1.1o \xpackage{pagesLTS}}
-% \item There \sout{\ is}\uwave{\ was}\ a new version of the \xpackage{lipsum} package:
-% 2011/02/08,~v1.1.
% \item Documentation and ReadMe bug fix: This \xpackage{pagesLTS} package is located at
-% \CTAN{macros/latex/contrib/pageslts/} instead of \ldots/pagesLTS/.
+% \url{https://www.ctan.org/pkg/pageslts} instead of \ldots /pagesLTS/.
% \item There is a new (possible) alternative package, \xpackage{totcount},
% see section~\ref{sec:Alternatives}.
% \item Bug fix: There was a reference to \xpackage{lastpage} 1994/07/20, v0.1b,
@@ -5161,15 +5138,9 @@ a package with output \linebreak
% Added checking against double loading as \xpackage{pagesLTS} and \xpackage{pageslts}.
% \item The \xpackage{holtxdoc} package was fixed (recent: 2011/02/04, v0.21), therefore
% the warning in \xfile{drv} could be removed.
-% \item There is a new version of the \xpackage{ulem} package: 2011/03/18
-% (no version number given).
-% \item There is a new version of the \xpackage{lipsum} package: 2011/04/14,~v1.2.
-% \item There \sout{\ is}\uwave{\ was}\ a new version of the used \xpackage{hyperref} package: 2011/04/17,~v6.82g.
% \item |\AtEndAfterFileList| from the \uwave{then} new version of the \xpackage{atveryend} package,
% 2011/04/23, v1.7, by \textsc{Heiko Oberdiek}, is now used for the rerun hint
% instead of appending to |\@dofilelist|.
-% \item The recent version of the Adobe Reader\ \sout{is}\uwave{was}\ 10.1.0
-% (instead of 10.0.1).
% \item Now defining $2$: |\def\pagesLTS@two{2}| (for example for the
% \xpackage{thumbs} package) and $3$: |\def\pagesLTS@three{3}|.
% \item Replaced |\texttt{\textbackslash|\ldots|}| by
@@ -5177,20 +5148,13 @@ a package with output \linebreak
% |\verb|\textbar \textbackslash \ldots \textbar{} in the example (where possible).
% \item When the \xpackage{alphalph} package is needed, it is loaded via |\RequirePackage|
% instead of crashing with an error message.
-% \item There are new version of the packages \xpackage{papermas}, \xpackage{undolabl}, and \xpackage{lastpage}.
% \item A lot of details (also in the documentation).
% \end{Version}
% \begin{Version}{2013/01/28 v1.2b}
% \item Updated to \TeX{} live 2012 (for compiling the documentation and example)
% and installed the available updates. Therefore I can no longer test
% whether \xpackage{pageslts} works with earlier versions of \LaTeX{}.
-% (It probably does, but there is no guarantee.)
% \item Replaced |\let| by |\LetLtxMacro|.
-% \item New versions of Adobe Reader and of the packages
-% \xpackage{alphalph}, \xpackage{atveryend}, \xpackage{endfloat}, \xpackage{holtxdoc},
-% \xpackage{hypdoc}, \xpackage{hyperref}, \xpackage{kvoptions}, \xpackage{lastpage},
-% \xpackage{papermas}, \xpackage{ulem}, \xpackage{undolabl}, and \xpackage{zref}
-% have become available.
% \item The \xpackage{nameref} package redefines |\label| to have five arguments
% instead of two, therefore |\newlabel{LastPage}{{}{\thepage}{}{}{}}| instead of
% |\newlabel{LastPage}{{}{\thepage}}| must be used.
@@ -5215,6 +5179,19 @@ a package with output \linebreak
% on the same page make no sense anyway.)
% \item Updates of minor details.
% \end{Version}
+% \begin{Version}{2015/08/02 v1.2d}
+% \item Updated to \TeX{} Live 2015 (for compiling the documentation and example)
+% and installed the available updates. Therefore I can no longer test
+% whether \xpackage{thumbs} works with earlier versions of \LaTeX .
+% (It probably does, but there is no guarantee.)
+% \item A |ifundefinedorrelax| similar to the one from \xpackage{scrbase.sty}
+% of the KOMA script bundle as 2013/12/19 v3.12 is used now,
+% without the need for \eTeX .
+% \item New versions of Adobe Reader and of some packages have become available.
+% \item Changed the message (type) to be displayed if writing to files is disallowed
+% (as pointed out by Joshua Ellis, thanks!).
+% \item Updates to several details, also in the documentation.
+% \end{Version}
% \end{History}
%
% \bigskip
@@ -5228,7 +5205,7 @@ a package with output \linebreak
% Note: \textsf{Y} is not missing in the following index, but no command beginning
% with this letter has been used in this \xpackage{pageslts} package.
%
-% \bigskip
+% \pagebreak
%
% \PrintIndex
%
diff --git a/Master/texmf-dist/source/latex/pageslts/pageslts.ins b/Master/texmf-dist/source/latex/pageslts/pageslts.ins
index c1ff591ae5b..ce680c5de3e 100644
--- a/Master/texmf-dist/source/latex/pageslts/pageslts.ins
+++ b/Master/texmf-dist/source/latex/pageslts/pageslts.ins
@@ -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,17 +55,21 @@
%% 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
%%
\input docstrip.tex
\Msg{*********************************************************************************}
\Msg{* Installation}
-\Msg{* Package: pageslts 2014/01/19 v1.2c Refers to special pages' numbers/names (HMM)}
+\Msg{* Package: pageslts 2015/08/02 v1.2d Refers to special pages' numbers/names (HMM)}
\Msg{*********************************************************************************}
\keepsilent
@@ -77,9 +81,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.
@@ -123,12 +127,16 @@ This package first started as a revision of the lastpage
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
\endpreamble
\let\MetaPrefix\DoubleperCent
@@ -149,7 +157,7 @@ In memoriam Tommy Muench + 2014/01/02.
\Msg{* To finish the installation you have to move the following}
\Msg{* file into a directory searched by TeX:}
\Msg{*}
-\Msg{* pageslts.sty}
+\Msg{* pageslts.sty}
\Msg{*}
\Msg{* To produce the documentation run the file `pageslts.drv'}
\Msg{* through (pdf)LaTeX, e.g.}
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}%