texlive[76011] Master/texmf-dist: pageslts (9aug25)
commits+karl at tug.org
commits+karl at tug.org
Sat Aug 9 21:36:38 CEST 2025
Revision: 76011
https://tug.org/svn/texlive?view=revision&revision=76011
Author: karl
Date: 2025-08-09 21:36:37 +0200 (Sat, 09 Aug 2025)
Log Message:
-----------
pageslts (9aug25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/pageslts/README
trunk/Master/texmf-dist/doc/latex/pageslts/pageslts-example.pdf
trunk/Master/texmf-dist/doc/latex/pageslts/pageslts-example.tex
trunk/Master/texmf-dist/doc/latex/pageslts/pageslts.pdf
trunk/Master/texmf-dist/source/latex/pageslts/pageslts.drv
trunk/Master/texmf-dist/source/latex/pageslts/pageslts.dtx
trunk/Master/texmf-dist/source/latex/pageslts/pageslts.ins
trunk/Master/texmf-dist/tex/latex/pageslts/pageslts.sty
Modified: trunk/Master/texmf-dist/doc/latex/pageslts/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pageslts/README 2025-08-09 19:36:29 UTC (rev 76010)
+++ trunk/Master/texmf-dist/doc/latex/pageslts/README 2025-08-09 19:36:37 UTC (rev 76011)
@@ -1,4 +1,4 @@
-README for pageslts package, 2025-06-05, v2.0e
+README for pageslts package, 2025-08-09, v2.0f
TABLE OF CONTENTS
Modified: trunk/Master/texmf-dist/doc/latex/pageslts/pageslts-example.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/pageslts/pageslts-example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pageslts/pageslts-example.tex 2025-08-09 19:36:29 UTC (rev 76010)
+++ trunk/Master/texmf-dist/doc/latex/pageslts/pageslts-example.tex 2025-08-09 19:36:37 UTC (rev 76011)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: pageslts
-%% Version: 2025-06-05 v2.0e
+%% Version: 2025-08-09 v2.0f
%% Info: Variants of last page labels
%%
%% Copyright (C) 2010 - 2025 by
@@ -86,7 +86,7 @@
}}{\usepackage{url}[2013/09/16]}% v3.4
\makeatother
\usepackage[pagecontinue=true,alphMult=ab,AlphMulti=AB,fnsymbolmult=true,%
- romanMult=true,RomanMulti=true]{pageslts}[2025-06-05]% v2.0e
+ romanMult=true,RomanMulti=true]{pageslts}[2025-08-09]% v2.0f
%% These are the default options. %%
\makeatletter
@@ -128,7 +128,7 @@
\markboth{Example for pageslts}{Example for pageslts}
This example demonstrates the most common uses of package\newline
-\textsf{pageslts}, v2.0e as of 2025-06-05 (HMM);\newline
+\textsf{pageslts}, v2.0f as of 2025-08-09 (HMM);\newline
\url{https://ctan.org/pkg/pageslts}.\bigskip
The used options were \texttt{pagecontinue=true},
@@ -246,10 +246,10 @@
but probably it only makes sense if page numbering scheme and format are
the same, e.\,g.\newline
\verb|\Roman{pagesLTS.current.local.Roman}|\newline
-or \verb|\Alph{pagesLTS.current.local.Alph}|. \verb|\arabic{...}| could
+or \verb|\Alph{pagesLTS.current.local.Alph}|. \verb|\number\value{...}| could
make sense even if combined with another page numbering scheme.
And this is exactly what \verb|\theCurrentPageLocal| does:\newline
-\nolinebreak{\verb|\def\theCurrentPageLocal{\arabic{pagesLTS.current.local.\pagesLTS at pnc}}|.}\bigskip
+\nolinebreak{\verb|\def\theCurrentPageLocal{\number\value{pagesLTS.current.local.\pagesLTS at pnc}}|.}\bigskip
Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\bigskip
@@ -749,7 +749,7 @@
the page numbers are continued.
This package remembered the
-$\arabic{pagesLTS.double.Roman}-1$,
+$\number\value{pagesLTS.double.Roman}-1$,
i.\,e.~\the\numexpr\value{pagesLTS.double.Roman}-1\relax, pages
already done in Roman output, and therefore continues with page
\textquotedblleft\Roman{pagesLTS.double.Roman}\textquotedblright{} in
@@ -765,13 +765,13 @@
\begin{verbatim}
\makeatletter%
\theCurrentPageLocal~of~\lastpageref*{%
-pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local}%
+pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local}%
\makeatother%
\end{verbatim}
provides this. Here: %
\makeatletter%
\theCurrentPageLocal~of~%
-\lastpageref*{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local}\newline%
+\lastpageref*{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local}\newline%
\makeatother%
for \verb|pagecontinue=true| is \verb|4 of 8| (including %
\makeatletter%
@@ -787,11 +787,11 @@
\makeatother%
and for \verb|pagecontinue=false| is \verb|1 of 5| .\bigskip
-\verb|pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local| is:
+\verb|pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local| is:
\begin{description}
\item[-] \verb|pagesLTS| just identifies this counter to belong to the pageslts package.
\item[-] \verb|\pagesLTS at pnc| is the Current Page Numbering scheme, i.\,e.~here it would be \verb|Roman|.
-\item[-] \verb|\arabic{pagesLTS.pnc.\pagesLTS at pnc}| is the value of counter\newline
+\item[-] \verb|\number\value{pagesLTS.pnc.\pagesLTS at pnc}| is the value of counter\newline
\verb|pagesLTS.pnc.\pagesLTS at pnc| printed in arabic numbers (1, 2, 3, ...) -- see below.
\item[-] \verb|local|: Local there are 5 pages with Roman numbering in this example, globally there are
$3+5+4=12$~pages with Roman numbering in this example, and the local numbers are wanted.
@@ -1035,7 +1035,7 @@
the page numbers are continued.
This package remembered the
-$\arabic{pagesLTS.double.Roman}-1$,
+$\number\value{pagesLTS.double.Roman}-1$,
i.\,e.~\the\numexpr\value{pagesLTS.double.Roman}-1\relax, pages
already done in%
\begin{description}
Modified: trunk/Master/texmf-dist/doc/latex/pageslts/pageslts.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/pageslts/pageslts.drv
===================================================================
--- trunk/Master/texmf-dist/source/latex/pageslts/pageslts.drv 2025-08-09 19:36:29 UTC (rev 76010)
+++ trunk/Master/texmf-dist/source/latex/pageslts/pageslts.drv 2025-08-09 19:36:37 UTC (rev 76011)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: pageslts
-%% Version: 2025-06-05 v2.0e
+%% Version: 2025-08-09 v2.0f
%% Info: Variants of last page labels
%%
%% Copyright (C) 2010 - 2025 by
@@ -67,7 +67,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2024-11-01]
\ProvidesFile{pageslts.drv}%
- [2025-06-05 v2.0e Refers to special pages' numbers/names (HMM)]
+ [2025-08-09 v2.0f Refers to special pages' numbers/names (HMM)]
\documentclass[landscape]{ltxdoc}[2024/02/08]% v2.1j Standard LaTeX documentation class
\usepackage{geometry}[2020/01/02]% v5.9 Page Geometry
\usepackage{holtxdoc}[2019/12/09]% v0.30 Private additional ltxdoc support (HO)
Modified: trunk/Master/texmf-dist/source/latex/pageslts/pageslts.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/pageslts/pageslts.dtx 2025-08-09 19:36:29 UTC (rev 76010)
+++ trunk/Master/texmf-dist/source/latex/pageslts/pageslts.dtx 2025-08-09 19:36:37 UTC (rev 76011)
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%
% File: pageslts.dtx
-% Version: 2025-06-05 v2.0e
+% Version: 2025-08-09 v2.0f
% Info: Variants of last page labels
%
% Copyright © 2010 - 2025 by
@@ -54,7 +54,7 @@
\input docstrip.tex
\Msg{**********************************************************************************}
\Msg{* Installation *}
-\Msg{* Package: pageslts 2025-06-05 v2.0e Refers to special pages' numbers/names (HMM)*}
+\Msg{* Package: pageslts 2025-08-09 v2.0f Refers to special pages' numbers/names (HMM)*}
\Msg{**********************************************************************************}
\keepsilent
@@ -66,7 +66,7 @@
This is a generated file.
Project: pageslts
-Version: 2025-06-05 v2.0e
+Version: 2025-08-09 v2.0f
Info: Variants of last page labels
Copyright (C) 2010 - 2025 by
@@ -176,7 +176,7 @@
%<*driver>
\NeedsTeXFormat{LaTeX2e}[2024-11-01]
\ProvidesFile{pageslts.drv}%
- [2025-06-05 v2.0e Refers to special pages' numbers/names (HMM)]
+ [2025-08-09 v2.0f Refers to special pages' numbers/names (HMM)]
\documentclass[landscape]{ltxdoc}[2024/02/08]% v2.1j Standard LaTeX documentation class
\usepackage{geometry}[2020/01/02]% v5.9 Page Geometry
\usepackage{holtxdoc}[2019/12/09]% v0.30 Private additional ltxdoc support (HO)
@@ -251,7 +251,7 @@
% \renewcommand{\indent}{\hspace*{\ltsindent}}
%
% \title{The \xpackage{pageslts} package}
-% \date{2025-06-05 v2.0e}
+% \date{2025-08-09 v2.0f}
% \author{H.-Martin Münch\\\xemail{Martin.Muench at Uni-Bonn.de}}
%
% \maketitle
@@ -603,9 +603,9 @@
% e.\,g.~|\Roman{pagesLTS.current.local.Roman}| or\newline
% |\Alph{pagesLTS.current.local.Alph}|.
% \pagebreak
-% |\arabic{pagesLTS.current.local.|\ldots|}| probably make sense even when combined with
+% |\number\value{pagesLTS.current.local.|\ldots|}| probably make sense even when combined with
% another page numbering scheme. And this is exactly what |\theCurrentPageLocal| does:\newline
-% |\def\theCurrentPageLocal{\arabic{pagesLTS.current.local.\pagesLTS at pnc}}|.\bigskip
+% |\def\theCurrentPageLocal{\number\value{pagesLTS.current.local.\pagesLTS at pnc}}|.\bigskip
%
% \DescribeMacro{pagesLTS. page numbering scheme . number }
% If you want to refer to the last page of the first, second,\ldots\ use of a
@@ -864,8 +864,8 @@
% \vspace{-\baselineskip}
% will arise. But if the counter has a value of $2\,147\,483\,647 = {}$MAX,
% and |\addtocounter{<name>}{+1}| is tried, no error is issued, but
-% |\arabic{<name>}| prints $-2147483648$, and further |\addtocounter{<name>}{+1}|s
-% give $-2147483647$, $-2147483646$ and so on.\newline
+% |\arabic{<name>}| (as well as |\number\value{<name>}|) prints $-2147483648$,
+% and further |\addtocounter{<name>}{+1}|s give $-2147483647$, $-2147483646$ and so on.\newline
% For a counter value of $-2\,147\,483\,647 = -$MAX and |\addtocounter{<name>}{-1}|s
% after $-2147483647$ it is printed $-2147483648$, $2147483647$, $2147483646$ and so on
% (without any message in the \xfile{log} file about any possible issue).
@@ -1001,7 +1001,7 @@
}}{\usepackage{url}[2013/09/16]}% v3.4
\makeatother
\usepackage[pagecontinue=true,alphMult=ab,AlphMulti=AB,fnsymbolmult=true,%
- romanMult=true,RomanMulti=true]{pageslts}[2025-06-05]% v2.0e
+ romanMult=true,RomanMulti=true]{pageslts}[2025-08-09]% v2.0f
%% These are the default options. %%
\makeatletter
@@ -1043,7 +1043,7 @@
\markboth{Example for pageslts}{Example for pageslts}
This example demonstrates the most common uses of package\newline
-\textsf{pageslts}, v2.0e as of 2025-06-05 (HMM);\newline
+\textsf{pageslts}, v2.0f as of 2025-08-09 (HMM);\newline
\url{https://ctan.org/pkg/pageslts}.\bigskip
The used options were \texttt{pagecontinue=true},
@@ -1161,10 +1161,10 @@
but probably it only makes sense if page numbering scheme and format are
the same, e.\,g.\newline
\verb|\Roman{pagesLTS.current.local.Roman}|\newline
-or \verb|\Alph{pagesLTS.current.local.Alph}|. \verb|\arabic{...}| could
+or \verb|\Alph{pagesLTS.current.local.Alph}|. \verb|\number\value{...}| could
make sense even if combined with another page numbering scheme.
And this is exactly what \verb|\theCurrentPageLocal| does:\newline
-\nolinebreak{\verb|\def\theCurrentPageLocal{\arabic{pagesLTS.current.local.\pagesLTS at pnc}}|.}\bigskip
+\nolinebreak{\verb|\def\theCurrentPageLocal{\number\value{pagesLTS.current.local.\pagesLTS at pnc}}|.}\bigskip
Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\bigskip
@@ -1664,7 +1664,7 @@
the page numbers are continued.
This package remembered the
-$\arabic{pagesLTS.double.Roman}-1$,
+$\number\value{pagesLTS.double.Roman}-1$,
i.\,e.~\the\numexpr\value{pagesLTS.double.Roman}-1\relax, pages
already done in Roman output, and therefore continues with page
\textquotedblleft\Roman{pagesLTS.double.Roman}\textquotedblright{} in
@@ -1680,13 +1680,13 @@
\begin{verbatim}
\makeatletter%
\theCurrentPageLocal~of~\lastpageref*{%
-pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local}%
+pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local}%
\makeatother%
\end{verbatim}
provides this. Here: %
\makeatletter%
\theCurrentPageLocal~of~%
-\lastpageref*{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local}\newline%
+\lastpageref*{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local}\newline%
\makeatother%
for \verb|pagecontinue=true| is \verb|4 of 8| (including %
\makeatletter%
@@ -1702,11 +1702,11 @@
\makeatother%
and for \verb|pagecontinue=false| is \verb|1 of 5| .\bigskip
-\verb|pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local| is:
+\verb|pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local| is:
\begin{description}
\item[-] \verb|pagesLTS| just identifies this counter to belong to the pageslts package.
\item[-] \verb|\pagesLTS at pnc| is the Current Page Numbering scheme, i.\,e.~here it would be \verb|Roman|.
-\item[-] \verb|\arabic{pagesLTS.pnc.\pagesLTS at pnc}| is the value of counter\newline
+\item[-] \verb|\number\value{pagesLTS.pnc.\pagesLTS at pnc}| is the value of counter\newline
\verb|pagesLTS.pnc.\pagesLTS at pnc| printed in arabic numbers (1, 2, 3, ...) -- see below.
\item[-] \verb|local|: Local there are 5 pages with Roman numbering in this example, globally there are
$3+5+4=12$~pages with Roman numbering in this example, and the local numbers are wanted.
@@ -1951,7 +1951,7 @@
the page numbers are continued.
This package remembered the
-$\arabic{pagesLTS.double.Roman}-1$,
+$\number\value{pagesLTS.double.Roman}-1$,
i.\,e.~\the\numexpr\value{pagesLTS.double.Roman}-1\relax, pages
already done in%
\begin{description}
@@ -2361,7 +2361,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[2024-11-01]
-\ProvidesPackage{pageslts}[2025-06-05 v2.0e Refers to special pages' numbers/names (HMM)]
+\ProvidesPackage{pageslts}[2025-08-09 v2.0f Refers to special pages' numbers/names (HMM)]
% \end{macrocode}
%
@@ -2687,7 +2687,7 @@
% \begin{macrocode}
\newcounter{CurrentPage}
\setcounter{CurrentPage}{1}
-\def\theCurrentPageLocal{\arabic{pagesLTS.current.local.\pagesLTS at pnc}}
+\def\theCurrentPageLocal{\number\value{pagesLTS.current.local.\pagesLTS at pnc}}
% \end{macrocode}
%
% The counter |pagesLTS.pagenr| is for saving into the \xfile{.aux} file
@@ -2746,7 +2746,7 @@
\ifnum\value{#1}<0%
% \end{macrocode}
%
-% |\arabic{#1}| gives the arabic number of argument |#1|,
+% |\number\value{#1}| gives the arabic number of argument |#1|,
% which is negative here (for example $-7$),
% \textquotedblleft |-|\textquotedblright{} puts another minus
% sign in front of it (for example $--7$), |\number| removes
@@ -2757,7 +2757,7 @@
% sign back in front of it (for example -vii).
%
% \begin{macrocode}
- -\romannumeral\number-\arabic{#1}%
+ -\romannumeral\number-\number\value{#1}%
\else%
0%
\fi%
@@ -2769,7 +2769,7 @@
% \newpage
% \begin{macro}{\XRoman}
% |\XRoman| does the same for uppercase |\Roman| numbers.
-% |-\uppercase{\romannumeral\number-\arabic{#1}}| cannot be used,
+% |-\uppercase{\romannumeral\number-\number\value{#1}}| cannot be used,
% because the result in the example is |-\uppercase{vii}| and
% not |-VII|.\footnote{This does not matter for the print out,
% but for the display of the logical page numbers
@@ -2795,7 +2795,7 @@
\Roman{#1}%
\else%
\ifnum\value{#1}<0%
- -\expandafter\@slowromancap\romannumeral\number-\arabic{#1}@%
+ -\expandafter\@slowromancap\romannumeral\number-\number\value{#1}@%
\else%
0%
\fi%
@@ -2863,7 +2863,7 @@
% \begin{macrocode}
\newcommand{\lastpages}[2]{%
\pagesLTS at providecounter{pagesLTS.#1.#2.local.cnt}%
- \arabic{pagesLTS.#1.#2.local.cnt}%
+ \number\value{pagesLTS.#1.#2.local.cnt}%
}
% \end{macrocode}
@@ -3167,8 +3167,8 @@
% number of the local page.
%
% \begin{macrocode}
- \newcounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}%
- \setcounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ \newcounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}%
+ \setcounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
\value{pagesLTS.current.local.\pagesLTS at pnc}}%
% \end{macrocode}
%
@@ -3182,22 +3182,22 @@
\ifx\pagesLTS at pnc\pagesLTS at fns%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}>1%
\setcounter{pagesLTS.tmpcounter}{\numexpr\value{pagesLTS.pnc.\pagesLTS at pnc}-1\relax}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
- -\value{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.tmpcounter}.local.count}}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ -\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.tmpcounter}.local.count}}%
\fi%
\else%
\ifx\pagesLTS at pnc\pagesLTS at silly%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}>1%
\setcounter{pagesLTS.tmpcounter}{\numexpr\value{pagesLTS.pnc.\pagesLTS at pnc}-1\relax}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
- -\value{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.tmpcounter}.local.count}}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ -\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.tmpcounter}.local.count}}%
\fi%
\else%
\ifx\pagesLTS at pnc\pagesLTS at gobble%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}>1%
\setcounter{pagesLTS.tmpcounter}{\numexpr\value{pagesLTS.pnc.\pagesLTS at pnc}-1\relax}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
- -\value{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.tmpcounter}.local.count}}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ -\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.tmpcounter}.local.count}}%
\fi%
\else%
% \end{macrocode}
@@ -3227,8 +3227,8 @@
\setcounter{pagesLTS.tmpcounter}{\numexpr\value{pagesLTS.pnc.\pagesLTS at pnc}-1\relax}%
\pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.done}%
\addtocounter{pagesLTS.\pagesLTS at pnc.done}{%
- \value{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.tmpcounter}.local.count}}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ \value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.tmpcounter}.local.count}}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
-\value{pagesLTS.\pagesLTS at pnc.done}}%
\fi%
\fi%
@@ -3237,7 +3237,7 @@
% A~numbered label is written:
%
% \begin{macrocode}
- \pagesLTS at writelabel{\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}}%
+ \pagesLTS at writelabel{\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}}%
% \end{macrocode}
%
% The values are written to the \xfile{.aux} file (if writing is allowed: |\if at filesw|),
@@ -3246,10 +3246,10 @@
% \begin{macrocode}
\if at filesw%
\immediate\write\@auxout{\string
- \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}}%
- \edef\pagesLTS at tmpB{\arabic{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}}%
+ \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}}%
+ \edef\pagesLTS at tmpB{\number\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}}%
\immediate\write\@auxout{\string
- \setcounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}{\pagesLTS at tmpB}}%
+ \setcounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}{\pagesLTS at tmpB}}%
\fi%
\fi%
% \end{macrocode}
@@ -3474,7 +3474,7 @@
% i.\,e.~not at the last page, it is defined as |\lastpagereftxt| (see above).
% When the page numbering scheme is |fnsymbol|, and the \xpackage{hyperref}
% package has been loaded, a hyperref instead of a label is used for the reference
-% to |pagesLTS.fnsymbol.local.\arabic{pagesLTS.fnsymbol.local}|.
+% to |pagesLTS.fnsymbol.local.\number\value{pagesLTS.fnsymbol.local}|.
% (And if the \texttt{pagesLTS.fnsymbol.local} counter did not exist yet,
% it is created here.)\bigskip
%
@@ -3485,8 +3485,8 @@
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.fnsymbol.local}%
\IfPackageLoadedTF{hyperref}{%
- \href{\#pagesLTS.fnsymbol.local.\arabic{pagesLTS.fnsymbol.local}}%
- {\arabic{pagesLTS.fnsymbol.local}}%
+ \href{\#pagesLTS.fnsymbol.local.\number\value{pagesLTS.fnsymbol.local}}%
+ {\number\value{pagesLTS.fnsymbol.local}}%
% \end{macrocode}
%
% When the page numbering scheme is |fnsymbol|, but the \xpackage{hyperref} package
@@ -3495,7 +3495,7 @@
% (because there will be no hyperlink anyway).
%
% \begin{macrocode}
- }{\arabic{pagesLTS.fnsymbol.local}}%
+ }{\number\value{pagesLTS.fnsymbol.local}}%
\else%
% \end{macrocode}
%
@@ -3506,9 +3506,9 @@
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.silly.local}%
\IfPackageLoadedTF{hyperref}{%
- \href{\#pagesLTS.silly.local.\arabic{pagesLTS.silly.local}}%
- {\arabic{pagesLTS.silly.local}}%
- }{\arabic{pagesLTS.silly.local}}%
+ \href{\#pagesLTS.silly.local.\number\value{pagesLTS.silly.local}}%
+ {\number\value{pagesLTS.silly.local}}%
+ }{\number\value{pagesLTS.silly.local}}%
% \end{macrocode}
%
% and for |gobble| pagenumbering:
@@ -3519,9 +3519,9 @@
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.gobble.local}%
\IfPackageLoadedTF{hyperref}{%
- \href{\#pagesLTS.gobble.local.\arabic{pagesLTS.gobble.local}}%
- {\arabic{pagesLTS.gobble.local}}%
- }{\arabic{pagesLTS.gobble.local}}%
+ \href{\#pagesLTS.gobble.local.\number\value{pagesLTS.gobble.local}}%
+ {\number\value{pagesLTS.gobble.local}}%
+ }{\number\value{pagesLTS.gobble.local}}%
% \end{macrocode}
%
% Otherwise just the common |\pageref| is applied:
@@ -3553,17 +3553,17 @@
\def\pagesLTS at tmpB{pagesLTS.fnsymbol.local}%
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.fnsymbol.local}%
- \arabic{pagesLTS.fnsymbol.local}%
+ \number\value{pagesLTS.fnsymbol.local}%
\else%
\def\pagesLTS at tmpB{pagesLTS.silly.local}%
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.silly.local}%
- \arabic{pagesLTS.silly.local}%
+ \number\value{pagesLTS.silly.local}%
\else%
\def\pagesLTS at tmpB{pagesLTS.gobble.local}%
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.gobble.local}%
- \arabic{pagesLTS.gobble.local}%
+ \number\value{pagesLTS.gobble.local}%
% \end{macrocode}
%
% There is no |\pageref*| without \xpackage{hyperref}.
@@ -3632,7 +3632,7 @@
% Therefore each page with |fnsymbol| page \textquotedblleft number\textquotedblright{} %
% receives a |\phantomsection| and a label, which includes a number increased by one
% for each page. This is done for
-% |pagesLTS.fnsymbol.local.\arabic{pagesLTS.fnsymbol.cont}| as well as
+% |pagesLTS.fnsymbol.local.\number\value{pagesLTS.fnsymbol.cont}| as well as
% |pagesLTS.fnsymbol|, |pagesLTS.\pagesLTS at pnc|, and
% |pagesLTS.\pagesLTS at pnc.local|.\newline
% In case an older label already existed, it is overwritten by an |\overridelabel| command.
@@ -3644,7 +3644,7 @@
\pagesLTS at providecounter{pagesLTS.fnsymbol.cont}%
\addtocounter{pagesLTS.fnsymbol.cont}{1}%
\IfPackageLoadedT{hyperref}{\phantomsection%
- \hypertarget{pagesLTS.fnsymbol.local.\arabic{pagesLTS.fnsymbol.cont}}{}%
+ \hypertarget{pagesLTS.fnsymbol.local.\number\value{pagesLTS.fnsymbol.cont}}{}%
}%
\ifnum\pagesLTS at esovFs=\pagesLTS at zero%
\if at filesw\label{pagesLTS.fnsymbol}\fi%
@@ -3663,7 +3663,7 @@
\pagesLTS at providecounter{pagesLTS.silly.cont}%
\addtocounter{pagesLTS.silly.cont}{1}%
\IfPackageLoadedT{hyperref}{\phantomsection%
- \hypertarget{pagesLTS.silly.local.\arabic{pagesLTS.silly.cont}}{}%
+ \hypertarget{pagesLTS.silly.local.\number\value{pagesLTS.silly.cont}}{}%
}%
\ifnum\pagesLTS at esovSy=\pagesLTS at zero%
\if at filesw\label{pagesLTS.silly}\fi%
@@ -3682,7 +3682,7 @@
\pagesLTS at providecounter{pagesLTS.gobble.cont}%
\addtocounter{pagesLTS.gobble.cont}{1}%
\IfPackageLoadedT{hyperref}{\phantomsection%
- \hypertarget{pagesLTS.gobble.local.\arabic{pagesLTS.gobble.cont}}{}%
+ \hypertarget{pagesLTS.gobble.local.\number\value{pagesLTS.gobble.cont}}{}%
}%
\ifnum\pagesLTS at esovGbl=\pagesLTS at zero%
\if at filesw\label{pagesLTS.gobble}\fi%
@@ -3718,7 +3718,7 @@
(see Page counter overflow in the pageslts\MessageBreak%
documentation), without other measures\MessageBreak%
this will lead to a counter overflow.\MessageBreak%
- }%
+ Code}%
\else%
\ifnum\value{page}<0%
\PackageWarning{pageslts}{%
@@ -3728,7 +3728,7 @@
(see Page counter overflow in the pageslts\MessageBreak%
documentation), without other measures\MessageBreak%
this will lead to a counter overflow.\MessageBreak%
- }%
+ Code}%
\else%
\PackageError{pageslts}{Counter page has no recognized value}{%
Counter `page' does not have a recognized value:\MessageBreak%
@@ -3825,7 +3825,7 @@
% (which is defined as \texttt{fnsymbol}), the label is set by \linebreak
% |\pagesLTS at EveryShipout| (see just above),
% and |\pagesLTS at esovFs| is set to the (real) number (not the name)
-% of this page numbering scheme, |\arabic{pagesLTS.fnsymbol.cont}|.\newline
+% of this page numbering scheme, |\number\value{pagesLTS.fnsymbol.cont}|.\newline
% When no more pages with |fnsymbol| page
% \textquotedblleft number\textquotedblright{} are shipped out,
% the value remains fixed and we have our reference to the last page
@@ -3835,7 +3835,7 @@
% \begin{macrocode}
\ifx\pagesLTS at pnc\pagesLTS at fns%
\pagesLTS at EveryShipout%
- \xdef\pagesLTS at esovFs{\arabic{pagesLTS.fnsymbol.cont}}%
+ \xdef\pagesLTS at esovFs{\number\value{pagesLTS.fnsymbol.cont}}%
\else%
% \end{macrocode}
%
@@ -3844,7 +3844,7 @@
% \begin{macrocode}
\ifx\pagesLTS at pnc\pagesLTS at silly%
\pagesLTS at EveryShipout%
- \xdef\pagesLTS at esovSy{\arabic{pagesLTS.silly.cont}}%
+ \xdef\pagesLTS at esovSy{\number\value{pagesLTS.silly.cont}}%
\else%
% \end{macrocode}
%
@@ -3853,7 +3853,7 @@
% \begin{macrocode}
\ifx\pagesLTS at pnc\pagesLTS at gobble%
\pagesLTS at EveryShipout%
- \xdef\pagesLTS at esovGbl{\arabic{pagesLTS.gobble.cont}}%
+ \xdef\pagesLTS at esovGbl{\number\value{pagesLTS.gobble.cont}}%
% \end{macrocode}
%
% When another page numbering scheme was reused (in the example file \xpackage{Roman}),
@@ -4003,7 +4003,8 @@
\else%
\PackageWarningNoLine{pageslts}{%
Package showkeys without option final loaded,\MessageBreak%
- but label #1 on page \thepage\space(about \theCurrentPage\space of \arabic{pagesLTS.pagenr})\MessageBreak%
+ but label #1 on page \thepage\space (about \theCurrentPage\space of %
+ \number\value{pagesLTS.pagenr})\MessageBreak%
cannot be shown, because pageslts does not use \string\label,\MessageBreak%
but writes directly to the \jobname.aux file}%
\fi%
@@ -4127,7 +4128,7 @@
%
% \begin{macrocode}
\else%
- \pagesLTS at writelabel{\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}}%
+ \pagesLTS at writelabel{\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}}%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}<2%
\ifx\pagesLTS at pnc\pagesLTS at fns%
\else\ifx\pagesLTS at pnc\pagesLTS at silly%
@@ -4214,13 +4215,13 @@
\if at filesw%
\else%
\IfPackageLoadedTF{tikz}{%
- \PackageWarning{pageslts}%
+ \PackageWarningNoLine{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 previous compiler run\MessageBreak%
- and would not have changed anyway.\MessageBreak%
+ and would not have changed anyway%
}%
}{\PackageError{pageslts}{No writing to auxiliary file allowed}%
{It was not allowed to write to an .aux file.\MessageBreak%
@@ -4230,7 +4231,7 @@
by previous compiler runs\MessageBreak%
and would not have changed anyway.\MessageBreak%
(In that case just press Enter or Return\MessageBreak%
- to continue the compilation.)\MessageBreak%
+ to continue the compilation.)%
}%
}%
\fi%
@@ -4262,7 +4263,7 @@
\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}%
+ Please first load showkeys and then pageslts.}%
\fi}%
}%
% \end{macrocode}
@@ -4287,7 +4288,7 @@
%
% \begin{macrocode}
\ifx\pagesLTS at pnc\pagesLTS at fns%
- \def\pagesLTS at tmpA{\arabic{pagesLTS.fnsymbol.local}}%
+ \def\pagesLTS at tmpA{\number\value{pagesLTS.fnsymbol.local}}%
\ifnum\pagesLTS at esoFs=\pagesLTS at tmpA%
\gdef\pagesLTS at rerun{0}%
\else%
@@ -4298,7 +4299,7 @@
\fi%
\else%
\ifx\pagesLTS at pnc\pagesLTS at silly%
- \def\pagesLTS at tmpA{\arabic{pagesLTS.silly.local}}%
+ \def\pagesLTS at tmpA{\number\value{pagesLTS.silly.local}}%
\ifnum\pagesLTS at esoSy=\pagesLTS at tmpA%
\gdef\pagesLTS at rerun{0}%
\else%
@@ -4309,7 +4310,7 @@
\fi%
\else%
\ifx\pagesLTS at pnc\pagesLTS at gobble%
- \def\pagesLTS at tmpA{\arabic{pagesLTS.gobble.local}}%
+ \def\pagesLTS at tmpA{\number\value{pagesLTS.gobble.local}}%
\ifnum\pagesLTS at esoGbl=\pagesLTS at tmpA%
\gdef\pagesLTS at rerun{0}%
\else%
@@ -4359,8 +4360,8 @@
% at the end, so we need to handle this here:
%
% \begin{macrocode}
- \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}%
- \setcounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}%
+ \setcounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
\value{pagesLTS.current.local.\pagesLTS at pnc}}%
% \end{macrocode}
%
@@ -4367,7 +4368,7 @@
% And we are one page after the last one (hook |enddocument/afterlastpage|!), so we go back one page.
%
% \begin{macrocode}
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{-1}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{-1}%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}>1%
\setcounter{pagesLTS.tmpcounter}{\value{pagesLTS.pnc.\pagesLTS at pnc}}%
\@tempcnta=\value{pagesLTS.tmpcounter}\relax%
@@ -4374,22 +4375,22 @@
\loop%
\ifnum\@tempcnta>1\relax%
\addtocounter{pagesLTS.tmpcounter}{-1}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
- -\value{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.tmpcounter}.local.count}}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ -\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.tmpcounter}.local.count}}%
\@tempcnta=\value{pagesLTS.tmpcounter}\relax%
\repeat%
\fi%
\if at filesw%
\immediate\write\@auxout{\string
- \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}}%
- \edef\pagesLTS at tmpA{\arabic{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}}%
+ \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}}%
+ \edef\pagesLTS at tmpA{\number\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}}%
\immediate\write\@auxout{\string
- \setcounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}{\pagesLTS at tmpA}}%
+ \setcounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}{\pagesLTS at tmpA}}%
\fi%
% \end{macrocode}
%
% We need to save (via the \xfile{.aux} file) the page name |\thepage|
-% and the page number |\arabic{CurrentPage}| of the last page,
+% and the page number |\number\value{CurrentPage}| of the last page,
% in case the last page has |fnsymbol| page numbering scheme.
%
% \begin{macrocode}
@@ -4403,7 +4404,7 @@
\fi%
\IfFormatAtLeastF{2025-06-01}{\addtocounter{page}{-1}}%
\addtocounter{CurrentPage}{-1}%
- \edef\pagesLTS at tmpB{\arabic{CurrentPage}}%
+ \edef\pagesLTS at tmpB{\number\value{CurrentPage}}%
\if at filesw%
\immediate\write\@auxout{\string\setcounter{pagesLTS.pagenr}{\pagesLTS at tmpB}}%
\fi%
@@ -4451,7 +4452,7 @@
% \begin{macrocode}
\AddToHook{cmd/frontmatter/before}{%
\xdef\pagesLTS at FMBpncn{\pagesLTS at pnc}%
- \xdef\pagesLTS at FMBpncp{\arabic{pagesLTS.current.local.\pagesLTS at pnc}}%
+ \xdef\pagesLTS at FMBpncp{\number\value{pagesLTS.current.local.\pagesLTS at pnc}}%
}
% \end{macrocode}
@@ -4528,7 +4529,7 @@
% \DescribeMacro{pageslts.dtx}
% For unpacking the |pageslts.dtx| file and constructing the documentation it is required:
% \begin{description}
-% \item[-] \TeX Format \LaTeXe{} 2024-11-01: \url{https://CTAN.org}
+% \item[-] \TeX Format \LaTeXe{} 2025-06-01: \url{https://CTAN.org}
%
% \item[-] document class \xclass{ltxdoc}, 2024/02/08, v2.1j, \url{https://ctan.org/pkg/ltxdoc}
%
@@ -4542,12 +4543,12 @@
% \end{description}
%
% \DescribeMacro{pageslts.sty}
-% The |pageslts.sty| for \LaTeXe{} $\geq$ 2024-11-01 (i.\,e.~all documents using the
+% The |pageslts.sty| for \LaTeXe{} $\geq$ 2025-06-01 (i.\,e.~all documents using the
% \xpackage{pageslts} package) requires:
% \begin{description}
-% \item[-] \TeX{} Format \LaTeXe{} 2024-11-01, \url{https://CTAN.org}
+% \item[-] \TeX{} Format \LaTeXe{} 2025-06-01, \url{https://CTAN.org}
%
-% \item[-] package \xpackage{undolabl}, 2024-12-05, v1.0n, \url{https://ctan.org/pkg/undolabl}
+% \item[-] package \xpackage{undolabl}, 2025-01-28, v1.0o, \url{https://ctan.org/pkg/undolabl}
%
% \item[-] if any of the options |alphMult|, |AlphMulti|, or |fnsymbolmult| is used:
% package \xpackage{alphalph}, 2019/12/09, v2.6,\newline \url{https://ctan.org/pkg/alphalph}
@@ -4568,9 +4569,9 @@
%
% \item[-] package \xpackage{showkeys}, 2024/05/23, v3.21, \url{https://ctan.org/pkg/showkeys}
%
-% \item[-] package \xpackage{hyperref}, 2025-05-20, v7.01m, \url{https://ctan.org/pkg/hyperref}
+% \item[-] package \xpackage{hyperref}, 2025-07-12, v7.01o, \url{https://ctan.org/pkg/hyperref}
%
-% \item[-] package \xpackage{pageslts}, 2025-06-05, v2.0e, \url{https://ctan.org/pkg/pageslts}\newline
+% \item[-] package \xpackage{pageslts}, 2025-08-09, v2.0f, \url{https://ctan.org/pkg/pageslts}\newline
% (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?)
@@ -5054,12 +5055,16 @@
% are made |\immediate|, requiring some adjusted |\addtocounter{page}{-1}| and
% |\addtocounter{page}{+1}| here.
% \end{Version}
+% \begin{Version}{2025-08-09 v2.0f}
+% \item \xpackage{polyglossia} with |arabic| changes the meaning of |\arabic|,
+% therefore |\number\value| is needed to internally get compilable numbers.
+% \end{Version}
% \end{History}
% \bigskip
%
% \noindent When you find a mistake or have a suggestion for an improvement of this package,
% please send an e-mail to the maintainer, thanks!\newline
-% (Please see BUG REPORTS in the README.)\newpage
+% (Please see BUG REPORTS in the README.)
% \PrintIndex
% \Finale
\endinput
\ No newline at end of file
Modified: trunk/Master/texmf-dist/source/latex/pageslts/pageslts.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/pageslts/pageslts.ins 2025-08-09 19:36:29 UTC (rev 76010)
+++ trunk/Master/texmf-dist/source/latex/pageslts/pageslts.ins 2025-08-09 19:36:37 UTC (rev 76011)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: pageslts
-%% Version: 2025-06-05 v2.0e
+%% Version: 2025-08-09 v2.0f
%% Info: Variants of last page labels
%%
%% Copyright (C) 2010 - 2025 by
@@ -68,7 +68,7 @@
\input docstrip.tex
\Msg{**********************************************************************************}
\Msg{* Installation *}
-\Msg{* Package: pageslts 2025-06-05 v2.0e Refers to special pages' numbers/names (HMM)*}
+\Msg{* Package: pageslts 2025-08-09 v2.0f Refers to special pages' numbers/names (HMM)*}
\Msg{**********************************************************************************}
\keepsilent
@@ -80,7 +80,7 @@
This is a generated file.
Project: pageslts
-Version: 2025-06-05 v2.0e
+Version: 2025-08-09 v2.0f
Info: Variants of last page labels
Copyright (C) 2010 - 2025 by
Modified: trunk/Master/texmf-dist/tex/latex/pageslts/pageslts.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pageslts/pageslts.sty 2025-08-09 19:36:29 UTC (rev 76010)
+++ trunk/Master/texmf-dist/tex/latex/pageslts/pageslts.sty 2025-08-09 19:36:37 UTC (rev 76011)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: pageslts
-%% Version: 2025-06-05 v2.0e
+%% Version: 2025-08-09 v2.0f
%% Info: Variants of last page labels
%%
%% Copyright (C) 2010 - 2025 by
@@ -66,7 +66,7 @@
%% Hans-Klaus Muench + 2014-08-24
%%
\NeedsTeXFormat{LaTeX2e}[2024-11-01]
-\ProvidesPackage{pageslts}[2025-06-05 v2.0e Refers to special pages' numbers/names (HMM)]
+\ProvidesPackage{pageslts}[2025-08-09 v2.0f Refers to special pages' numbers/names (HMM)]
%% Allows for things like\par
%% |Page \thepage\ (\theCurrentPage; local: \theCurrentPageLocal) of %
@@ -298,7 +298,7 @@
\newcounter{CurrentPage}
\setcounter{CurrentPage}{1}
-\def\theCurrentPageLocal{\arabic{pagesLTS.current.local.\pagesLTS at pnc}}
+\def\theCurrentPageLocal{\number\value{pagesLTS.current.local.\pagesLTS at pnc}}
\newcounter{pagesLTS.pagenr}
\setcounter{pagesLTS.pagenr}{1}
\newcounter{pagesLTS.current.local.0}
@@ -314,7 +314,7 @@
\roman{#1}%
\else%
\ifnum\value{#1}<0%
- -\romannumeral\number-\arabic{#1}%
+ -\romannumeral\number-\number\value{#1}%
\else%
0%
\fi%
@@ -326,7 +326,7 @@
\Roman{#1}%
\else%
\ifnum\value{#1}<0%
- -\expandafter\@slowromancap\romannumeral\number-\arabic{#1}@%
+ -\expandafter\@slowromancap\romannumeral\number-\number\value{#1}@%
\else%
0%
\fi%
@@ -344,7 +344,7 @@
\newcommand{\lastpages}[2]{%
\pagesLTS at providecounter{pagesLTS.#1.#2.local.cnt}%
- \arabic{pagesLTS.#1.#2.local.cnt}%
+ \number\value{pagesLTS.#1.#2.local.cnt}%
}
\newcommand{\pagesLTS at writelabel}[1]{%
@@ -463,28 +463,28 @@
\ifnum\value{CurrentPage}>1%
\addtocounter{page}{-1}%
\addtocounter{pagesLTS.current.local.\pagesLTS at pnc}{-1}%
- \newcounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}%
- \setcounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ \newcounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}%
+ \setcounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
\value{pagesLTS.current.local.\pagesLTS at pnc}}%
\ifx\pagesLTS at pnc\pagesLTS at fns%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}>1%
\setcounter{pagesLTS.tmpcounter}{\numexpr\value{pagesLTS.pnc.\pagesLTS at pnc}-1\relax}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
- -\value{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.tmpcounter}.local.count}}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ -\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.tmpcounter}.local.count}}%
\fi%
\else%
\ifx\pagesLTS at pnc\pagesLTS at silly%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}>1%
\setcounter{pagesLTS.tmpcounter}{\numexpr\value{pagesLTS.pnc.\pagesLTS at pnc}-1\relax}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
- -\value{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.tmpcounter}.local.count}}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ -\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.tmpcounter}.local.count}}%
\fi%
\else%
\ifx\pagesLTS at pnc\pagesLTS at gobble%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}>1%
\setcounter{pagesLTS.tmpcounter}{\numexpr\value{pagesLTS.pnc.\pagesLTS at pnc}-1\relax}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
- -\value{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.tmpcounter}.local.count}}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ -\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.tmpcounter}.local.count}}%
\fi%
\else%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}<2%
@@ -497,18 +497,18 @@
\setcounter{pagesLTS.tmpcounter}{\numexpr\value{pagesLTS.pnc.\pagesLTS at pnc}-1\relax}%
\pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.done}%
\addtocounter{pagesLTS.\pagesLTS at pnc.done}{%
- \value{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.tmpcounter}.local.count}}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ \value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.tmpcounter}.local.count}}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
-\value{pagesLTS.\pagesLTS at pnc.done}}%
\fi%
\fi%
- \pagesLTS at writelabel{\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}}%
+ \pagesLTS at writelabel{\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}}%
\if at filesw%
\immediate\write\@auxout{\string
- \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}}%
- \edef\pagesLTS at tmpB{\arabic{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}}%
+ \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}}%
+ \edef\pagesLTS at tmpB{\number\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}}%
\immediate\write\@auxout{\string
- \setcounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}{\pagesLTS at tmpB}}%
+ \setcounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}{\pagesLTS at tmpB}}%
\fi%
\fi%
\pagesLTS at providecounter{pagesLTS.double.\pagesLTS at pnc}%
@@ -583,25 +583,25 @@
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.fnsymbol.local}%
\IfPackageLoadedTF{hyperref}{%
- \href{\#pagesLTS.fnsymbol.local.\arabic{pagesLTS.fnsymbol.local}}%
- {\arabic{pagesLTS.fnsymbol.local}}%
- }{\arabic{pagesLTS.fnsymbol.local}}%
+ \href{\#pagesLTS.fnsymbol.local.\number\value{pagesLTS.fnsymbol.local}}%
+ {\number\value{pagesLTS.fnsymbol.local}}%
+ }{\number\value{pagesLTS.fnsymbol.local}}%
\else%
\def\pagesLTS at tmpB{pagesLTS.silly.local}%
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.silly.local}%
\IfPackageLoadedTF{hyperref}{%
- \href{\#pagesLTS.silly.local.\arabic{pagesLTS.silly.local}}%
- {\arabic{pagesLTS.silly.local}}%
- }{\arabic{pagesLTS.silly.local}}%
+ \href{\#pagesLTS.silly.local.\number\value{pagesLTS.silly.local}}%
+ {\number\value{pagesLTS.silly.local}}%
+ }{\number\value{pagesLTS.silly.local}}%
\else%
\def\pagesLTS at tmpB{pagesLTS.gobble.local}%
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.gobble.local}%
\IfPackageLoadedTF{hyperref}{%
- \href{\#pagesLTS.gobble.local.\arabic{pagesLTS.gobble.local}}%
- {\arabic{pagesLTS.gobble.local}}%
- }{\arabic{pagesLTS.gobble.local}}%
+ \href{\#pagesLTS.gobble.local.\number\value{pagesLTS.gobble.local}}%
+ {\number\value{pagesLTS.gobble.local}}%
+ }{\number\value{pagesLTS.gobble.local}}%
\else%
\pageref{#1}%
\fi%
@@ -616,17 +616,17 @@
\def\pagesLTS at tmpB{pagesLTS.fnsymbol.local}%
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.fnsymbol.local}%
- \arabic{pagesLTS.fnsymbol.local}%
+ \number\value{pagesLTS.fnsymbol.local}%
\else%
\def\pagesLTS at tmpB{pagesLTS.silly.local}%
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.silly.local}%
- \arabic{pagesLTS.silly.local}%
+ \number\value{pagesLTS.silly.local}%
\else%
\def\pagesLTS at tmpB{pagesLTS.gobble.local}%
\ifx\pagesLTS at tmpA\pagesLTS at tmpB%
\pagesLTS at providecounter{pagesLTS.gobble.local}%
- \arabic{pagesLTS.gobble.local}%
+ \number\value{pagesLTS.gobble.local}%
\else%
\IfPackageLoadedTF{hyperref}{\pageref*{#1}}{\pageref{#1}}%
\fi%
@@ -670,7 +670,7 @@
\pagesLTS at providecounter{pagesLTS.fnsymbol.cont}%
\addtocounter{pagesLTS.fnsymbol.cont}{1}%
\IfPackageLoadedT{hyperref}{\phantomsection%
- \hypertarget{pagesLTS.fnsymbol.local.\arabic{pagesLTS.fnsymbol.cont}}{}%
+ \hypertarget{pagesLTS.fnsymbol.local.\number\value{pagesLTS.fnsymbol.cont}}{}%
}%
\ifnum\pagesLTS at esovFs=\pagesLTS at zero%
\if at filesw\label{pagesLTS.fnsymbol}\fi%
@@ -684,7 +684,7 @@
\pagesLTS at providecounter{pagesLTS.silly.cont}%
\addtocounter{pagesLTS.silly.cont}{1}%
\IfPackageLoadedT{hyperref}{\phantomsection%
- \hypertarget{pagesLTS.silly.local.\arabic{pagesLTS.silly.cont}}{}%
+ \hypertarget{pagesLTS.silly.local.\number\value{pagesLTS.silly.cont}}{}%
}%
\ifnum\pagesLTS at esovSy=\pagesLTS at zero%
\if at filesw\label{pagesLTS.silly}\fi%
@@ -698,7 +698,7 @@
\pagesLTS at providecounter{pagesLTS.gobble.cont}%
\addtocounter{pagesLTS.gobble.cont}{1}%
\IfPackageLoadedT{hyperref}{\phantomsection%
- \hypertarget{pagesLTS.gobble.local.\arabic{pagesLTS.gobble.cont}}{}%
+ \hypertarget{pagesLTS.gobble.local.\number\value{pagesLTS.gobble.cont}}{}%
}%
\ifnum\pagesLTS at esovGbl=\pagesLTS at zero%
\if at filesw\label{pagesLTS.gobble}\fi%
@@ -727,7 +727,7 @@
(see Page counter overflow in the pageslts\MessageBreak%
documentation), without other measures\MessageBreak%
this will lead to a counter overflow.\MessageBreak%
- }%
+ Code}%
\else%
\ifnum\value{page}<0%
\PackageWarning{pageslts}{%
@@ -737,7 +737,7 @@
(see Page counter overflow in the pageslts\MessageBreak%
documentation), without other measures\MessageBreak%
this will lead to a counter overflow.\MessageBreak%
- }%
+ Code}%
\else%
\PackageError{pageslts}{Counter page has no recognized value}{%
Counter `page' does not have a recognized value:\MessageBreak%
@@ -764,15 +764,15 @@
\fi%
\ifx\pagesLTS at pnc\pagesLTS at fns%
\pagesLTS at EveryShipout%
- \xdef\pagesLTS at esovFs{\arabic{pagesLTS.fnsymbol.cont}}%
+ \xdef\pagesLTS at esovFs{\number\value{pagesLTS.fnsymbol.cont}}%
\else%
\ifx\pagesLTS at pnc\pagesLTS at silly%
\pagesLTS at EveryShipout%
- \xdef\pagesLTS at esovSy{\arabic{pagesLTS.silly.cont}}%
+ \xdef\pagesLTS at esovSy{\number\value{pagesLTS.silly.cont}}%
\else%
\ifx\pagesLTS at pnc\pagesLTS at gobble%
\pagesLTS at EveryShipout%
- \xdef\pagesLTS at esovGbl{\arabic{pagesLTS.gobble.cont}}%
+ \xdef\pagesLTS at esovGbl{\number\value{pagesLTS.gobble.cont}}%
\else%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}>1%
\pagesLTS at EveryShipout%
@@ -844,7 +844,8 @@
\else%
\PackageWarningNoLine{pageslts}{%
Package showkeys without option final loaded,\MessageBreak%
- but label #1 on page \thepage\space(about \theCurrentPage\space of \arabic{pagesLTS.pagenr})\MessageBreak%
+ but label #1 on page \thepage\space (about \theCurrentPage\space of %
+ \number\value{pagesLTS.pagenr})\MessageBreak%
cannot be shown, because pageslts does not use \string\label,\MessageBreak%
but writes directly to the \jobname.aux file}%
\fi%
@@ -909,7 +910,7 @@
\PackageWarningNoLine{pagesLTS}{No page numbering scheme found:\MessageBreak%
\pagesLTS at messageNPN}%
\else%
- \pagesLTS at writelabel{\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}}%
+ \pagesLTS at writelabel{\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}}%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}<2%
\ifx\pagesLTS at pnc\pagesLTS at fns%
\else\ifx\pagesLTS at pnc\pagesLTS at silly%
@@ -945,13 +946,13 @@
\if at filesw%
\else%
\IfPackageLoadedTF{tikz}{%
- \PackageWarning{pageslts}%
+ \PackageWarningNoLine{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 previous compiler run\MessageBreak%
- and would not have changed anyway.\MessageBreak%
+ and would not have changed anyway%
}%
}{\PackageError{pageslts}{No writing to auxiliary file allowed}%
{It was not allowed to write to an .aux file.\MessageBreak%
@@ -961,7 +962,7 @@
by previous compiler runs\MessageBreak%
and would not have changed anyway.\MessageBreak%
(In that case just press Enter or Return\MessageBreak%
- to continue the compilation.)\MessageBreak%
+ to continue the compilation.)%
}%
}%
\fi%
@@ -978,7 +979,7 @@
\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}%
+ Please first load showkeys and then pageslts.}%
\fi}%
}%
\ifx\pncmissing\pagesLTS at one\relax%
@@ -986,7 +987,7 @@
\fi%
\PackageInfo{pageslts}{enddocument/afterlastpage (AED): pageslts setting LastPage}%
\ifx\pagesLTS at pnc\pagesLTS at fns%
- \def\pagesLTS at tmpA{\arabic{pagesLTS.fnsymbol.local}}%
+ \def\pagesLTS at tmpA{\number\value{pagesLTS.fnsymbol.local}}%
\ifnum\pagesLTS at esoFs=\pagesLTS at tmpA%
\gdef\pagesLTS at rerun{0}%
\else%
@@ -997,7 +998,7 @@
\fi%
\else%
\ifx\pagesLTS at pnc\pagesLTS at silly%
- \def\pagesLTS at tmpA{\arabic{pagesLTS.silly.local}}%
+ \def\pagesLTS at tmpA{\number\value{pagesLTS.silly.local}}%
\ifnum\pagesLTS at esoSy=\pagesLTS at tmpA%
\gdef\pagesLTS at rerun{0}%
\else%
@@ -1008,7 +1009,7 @@
\fi%
\else%
\ifx\pagesLTS at pnc\pagesLTS at gobble%
- \def\pagesLTS at tmpA{\arabic{pagesLTS.gobble.local}}%
+ \def\pagesLTS at tmpA{\number\value{pagesLTS.gobble.local}}%
\ifnum\pagesLTS at esoGbl=\pagesLTS at tmpA%
\gdef\pagesLTS at rerun{0}%
\else%
@@ -1038,10 +1039,10 @@
\immediate\write\@auxout{\string\setcounter{pagesLTS.gobble.local}{\pagesLTS at esovGbl}}%
\fi%
\fi%
- \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}%
- \setcounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}%
+ \setcounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
\value{pagesLTS.current.local.\pagesLTS at pnc}}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{-1}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{-1}%
\ifnum\value{pagesLTS.pnc.\pagesLTS at pnc}>1%
\setcounter{pagesLTS.tmpcounter}{\value{pagesLTS.pnc.\pagesLTS at pnc}}%
\@tempcnta=\value{pagesLTS.tmpcounter}\relax%
@@ -1048,17 +1049,17 @@
\loop%
\ifnum\@tempcnta>1\relax%
\addtocounter{pagesLTS.tmpcounter}{-1}%
- \addtocounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
- -\value{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.tmpcounter}.local.count}}%
+ \addtocounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}{%
+ -\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.tmpcounter}.local.count}}%
\@tempcnta=\value{pagesLTS.tmpcounter}\relax%
\repeat%
\fi%
\if at filesw%
\immediate\write\@auxout{\string
- \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}}%
- \edef\pagesLTS at tmpA{\arabic{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.count}}%
+ \pagesLTS at providecounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}}%
+ \edef\pagesLTS at tmpA{\number\value{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.count}}%
\immediate\write\@auxout{\string
- \setcounter{pagesLTS.\pagesLTS at pnc.\arabic{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}{\pagesLTS at tmpA}}%
+ \setcounter{pagesLTS.\pagesLTS at pnc.\number\value{pagesLTS.pnc.\pagesLTS at pnc}.local.cnt}{\pagesLTS at tmpA}}%
\fi%
\IfFormatAtLeastF{2025-06-01}{\addtocounter{page}{-1}}%
\def\pagesLTS at tmpA{\thepage}%
@@ -1070,7 +1071,7 @@
\fi%
\IfFormatAtLeastF{2025-06-01}{\addtocounter{page}{-1}}%
\addtocounter{CurrentPage}{-1}%
- \edef\pagesLTS at tmpB{\arabic{CurrentPage}}%
+ \edef\pagesLTS at tmpB{\number\value{CurrentPage}}%
\if at filesw%
\immediate\write\@auxout{\string\setcounter{pagesLTS.pagenr}{\pagesLTS at tmpB}}%
\fi%
@@ -1090,7 +1091,7 @@
\AddToHook{cmd/frontmatter/before}{%
\xdef\pagesLTS at FMBpncn{\pagesLTS at pnc}%
- \xdef\pagesLTS at FMBpncp{\arabic{pagesLTS.current.local.\pagesLTS at pnc}}%
+ \xdef\pagesLTS at FMBpncp{\number\value{pagesLTS.current.local.\pagesLTS at pnc}}%
}
\AddToHook{cmd/frontmatter/after}{%
More information about the tex-live-commits
mailing list.