texlive[76056] Master/texmf-dist: lastpage (14aug25)
commits+karl at tug.org
commits+karl at tug.org
Thu Aug 14 22:02:36 CEST 2025
Revision: 76056
https://tug.org/svn/texlive?view=revision&revision=76056
Author: karl
Date: 2025-08-14 22:02:36 +0200 (Thu, 14 Aug 2025)
Log Message:
-----------
lastpage (14aug25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/lastpage/README
trunk/Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdf
trunk/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex
trunk/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
trunk/Master/texmf-dist/source/latex/lastpage/lastpage.drv
trunk/Master/texmf-dist/source/latex/lastpage/lastpage.dtx
trunk/Master/texmf-dist/source/latex/lastpage/lastpage.ins
trunk/Master/texmf-dist/tex/latex/lastpage/lastpage.sty
trunk/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty
trunk/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty
trunk/Master/texmf-dist/tex/latex/lastpage/lastpageclassic.sty
trunk/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty
Modified: trunk/Master/texmf-dist/doc/latex/lastpage/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lastpage/README 2025-08-14 20:02:25 UTC (rev 76055)
+++ trunk/Master/texmf-dist/doc/latex/lastpage/README 2025-08-14 20:02:36 UTC (rev 76056)
@@ -1,4 +1,4 @@
-README for lastpage package, 2025-06-06, v2.1g
+README for lastpage package, 2025-08-14, v2.1h
TABLE OF CONTENTS
Modified: trunk/Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex 2025-08-14 20:02:25 UTC (rev 76055)
+++ trunk/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex 2025-08-14 20:02:36 UTC (rev 76056)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2025-06-06 v2.1g
+%% Version: 2025-08-14 v2.1h
%% Info: Refers to last page's name
%%
%% Copyright (C) 2010 - 2025 by
@@ -60,7 +60,7 @@
\makeatletter
\usepackage[draft]{showkeys}[2024/05/23]% v3.21 Show cite and label keys (DPC, MH)
%% Use final instead of draft to hide the keys. %%
-\usepackage[pdfpagelabels=true,hyperindex=false]{hyperref}[2025-05-20]% v7.01m
+\usepackage[pdfpagelabels=true,hyperindex=false]{hyperref}[2025-07-12]% v7.01o
\@ifpackageloaded{hyperref}{% Hypertext links for LaTeX
\hypersetup{extension=pdf,%
plainpages=false,%
@@ -73,7 +73,7 @@
pdfstartview=Fit,%
pdfpagelayout=SinglePage%
}}{\usepackage{url}[2013/09/16]}% v3.4 Verb mode for urls, etc.
-\usepackage{lastpage}[2025/06/06]% v2.1g Refers to last page's name (HMM; JPG)]
+\usepackage{lastpage}[2025/08/14]% v2.1h Refers to last page's name (HMM; JPG)]
\renewcommand{\@evenfoot}{{%
\normalsize\slshape \today\hfil \upshape %
page \thepage{} of \pageref{LastPage}}}
@@ -85,7 +85,7 @@
\section*{Example for lastpage}
\markboth{Example for lastpage}{Example for lastpage}
This example demonstrates the use of package\newline
-\textsf{lastpage}, v2.1g as of 2025-06-06 (HMM; JPG).\newline
+\textsf{lastpage}, v2.1h as of 2025-08-14 (HMM; JPG).\newline
The package takes no options.\newline
For more details please see the documentation!\newline
Modified: trunk/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/lastpage/lastpage.drv
===================================================================
--- trunk/Master/texmf-dist/source/latex/lastpage/lastpage.drv 2025-08-14 20:02:25 UTC (rev 76055)
+++ trunk/Master/texmf-dist/source/latex/lastpage/lastpage.drv 2025-08-14 20:02:36 UTC (rev 76056)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2025-06-06 v2.1g
+%% Version: 2025-08-14 v2.1h
%% Info: Refers to last page's name
%%
%% Copyright (C) 2010 - 2025 by
@@ -57,7 +57,7 @@
%% Hans-Klaus Muench + 2014-08-24
%%
\NeedsTeXFormat{LaTeX2e}[2024-11-01]
-\ProvidesFile{lastpage.drv}[2025-06-06 v2.1g Refers to last page's name (HMM)]
+\ProvidesFile{lastpage.drv}[2025-08-14 v2.1h Refers to last page's name (HMM)]
\documentclass{ltxdoc}[2024/02/08]% v2.1j Standard LaTeX documentation class
\usepackage{holtxdoc}[2019/12/09]% v0.30 Private additional ltxdoc support (HO)
\hypersetup{%
Modified: trunk/Master/texmf-dist/source/latex/lastpage/lastpage.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/lastpage/lastpage.dtx 2025-08-14 20:02:25 UTC (rev 76055)
+++ trunk/Master/texmf-dist/source/latex/lastpage/lastpage.dtx 2025-08-14 20:02:36 UTC (rev 76056)
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%
% File: lastpage.dtx
-% Version: 2025-06-06 v2.1g
+% Version: 2025-08-14 v2.1h
% Info: Refers to last page's name
%
% Copyright © 2010 - 2025 by
@@ -19,8 +19,8 @@
% to get "Page 7 of 9" or "Page VII of IX",
% the NUMBER of pages is nowadays available from the kernel
% (\@abspage at last, \thetotalpages, \PreviousTotalPages),
-% but with pages for example I to X and then 1 to 10, the number of pages would be "20",
-% while the name of the last page is "10". Decide what you need/want!
+% but with pages for example I to X and then 1 to 10, the number of pages would be~"20",
+% while the name of the last page is~"10". Decide what you need/want!
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -65,7 +65,7 @@
\input docstrip.tex
\Msg{**********************************************************************}
\Msg{* Installation *}
-\Msg{* Package: lastpage 2025-06-06 v2.1g Refers to last page's name (HMM)*}
+\Msg{* Package: lastpage 2025-08-14 v2.1h Refers to last page's name (HMM)*}
\Msg{**********************************************************************}
\keepsilent
@@ -77,7 +77,7 @@
This is a generated file.
Project: lastpage
-Version: 2025-06-06 v2.1g
+Version: 2025-08-14 v2.1h
Info: Refers to last page's name
Copyright (C) 2010 - 2025 by
@@ -183,7 +183,7 @@
% \begin{macrocode}
%<*driver>
\NeedsTeXFormat{LaTeX2e}[2024-11-01]
-\ProvidesFile{lastpage.drv}[2025-06-06 v2.1g Refers to last page's name (HMM)]
+\ProvidesFile{lastpage.drv}[2025-08-14 v2.1h Refers to last page's name (HMM)]
\documentclass{ltxdoc}[2024/02/08]% v2.1j Standard LaTeX documentation class
\usepackage{holtxdoc}[2019/12/09]% v0.30 Private additional ltxdoc support (HO)
\hypersetup{%
@@ -229,15 +229,15 @@
% }%^^A
% \expandafter\endgroup\x
%
-% \DoNotIndex{\@auxout,\@evenfoot,\@firstofone,\@firstoftwo,\@ifl at t@r,\IfFormatAtLeastF,\IfFormatAtLeastTF,%
-% \@ifpackagelater,\@ifpackageloaded,\IfPackageAtLeastF,\IfPackageLoadedT,\IfPackageLoadedTF,%
+% \DoNotIndex{\@auxout,\@evenfoot,\@firstofone,\@firstoftwo,\@gobble at om,\@gobble at som,\@ifl at t@r,\IfFormatAtLeastF,\IfFormatAtLeastTF,%
+% \@ifpackagelater,\@ifpackageloaded,\IfPackageAtLeastF,\IfPackageLoadedF,\IfPackageLoadedT,\IfPackageLoadedTF,%
% \@ifundefined,\@kernel at reserved@label at data,\@mainaux,\@number,\@oddfoot,%
% \addtocounter,\AddToHook,\arabic,\begin,%
% \bigskip,\clearpage,\csname,\detokenize,\documentclass,\EdefUnescapeString,\empty,\end,%
% \endcsname,\enddocument,\expanded,\ExplSyntaxOff,\ExplSyntaxOn,\fmtversion,%
-% \g,\gdef,\here,\hfil,\Hy at temp,\Hy at unicodefalse,\Hy at EveryPageAnchor,%
+% \g,\gdef,\glossary,\here,\hfil,\Hy at temp,\Hy at unicodefalse,\Hy at EveryPageAnchor,%
% \hypersetup,\if,\if at filesw,\if at nobreak,\ifHy at hypertexnames,\ifHy at pageanchor,\ifHy at plainpages,%
-% \ifdim,\ifnum,\ifvmode,\ifx,\immediate,\input,%
+% \ifdim,\ifnum,\ifvmode,\ifx,\immediate,\index,\input,%
% \label,\lastpage,\lastpage-example.tex,\lastpage.dtx,\lastpage.sty,\lastpagee.sty,%
% \lastpageclassic.sty,\lastpagemodern.sty,\LaTeX,\LaTeX-kernel,\listfiles,%
% \makeatletter,\makeatother,\markboth,\meaning,\mbox,\message,\MessageBreak,%
@@ -251,7 +251,7 @@
% \title{The \xpackage{lastpage} package}
% \author{H.-Martin Münch\\\xemail{Martin.Muench at Uni-Bonn.de}\\
% invented by Jeffrey P. Goldberg\\\xemail{jeffrey+news at goldmark.org}}
-% \date{2025-06-06 v2.1g}
+% \date{2025-08-14 v2.1h}
% \maketitle
%
% \begin{abstract}
@@ -568,6 +568,7 @@
% \subsection{\texttt{\textbackslash pagenumbering\{fnsymbol\}}\label{subsec:fnsymbol}}
% When using the foot-note-symbols as page numbers,
% it can be necessary to declare in the document's preamble:
+% \DescribeMacro{\ProvideTextCommand}
% \begin{verbatim}
% \ProvideTextCommand{\textasteriskcentered}{PD1}{*}
% \ProvideTextCommand{\textdagger}{PD1}{†}
@@ -734,7 +735,7 @@
\makeatletter
\usepackage[draft]{showkeys}[2024/05/23]% v3.21 Show cite and label keys (DPC, MH)
%% Use final instead of draft to hide the keys. %%
-\usepackage[pdfpagelabels=true,hyperindex=false]{hyperref}[2025-05-20]% v7.01m
+\usepackage[pdfpagelabels=true,hyperindex=false]{hyperref}[2025-07-12]% v7.01o
\@ifpackageloaded{hyperref}{% Hypertext links for LaTeX
\hypersetup{extension=pdf,%
plainpages=false,%
@@ -747,7 +748,7 @@
pdfstartview=Fit,%
pdfpagelayout=SinglePage%
}}{\usepackage{url}[2013/09/16]}% v3.4 Verb mode for urls, etc.
-\usepackage{lastpage}[2025/06/06]% v2.1g Refers to last page's name (HMM; JPG)]
+\usepackage{lastpage}[2025/08/14]% v2.1h Refers to last page's name (HMM; JPG)]
\renewcommand{\@evenfoot}{{%
\normalsize\slshape \today\hfil \upshape %
page \thepage{} of \pageref{LastPage}}}
@@ -759,7 +760,7 @@
\section*{Example for lastpage}
\markboth{Example for lastpage}{Example for lastpage}
This example demonstrates the use of package\newline
-\textsf{lastpage}, v2.1g as of 2025-06-06 (HMM; JPG).\newline
+\textsf{lastpage}, v2.1h as of 2025-08-14 (HMM; JPG).\newline
The package takes no options.\newline
For more details please see the documentation!\newline
@@ -897,7 +898,7 @@
% \DescribeMacro{lastpage.sty}
% We first need to determine whether we are on \TeX~2.09 or \LaTeX2e.\newline
% (That line, which is too long for the documentation, reads:\newline
-% |\def\loadlastpage{\ProvidesPackage{lastpage}[2025/06/06 v2.1g lastpage:|\linebreak
+% |\def\loadlastpage{\ProvidesPackage{lastpage}[2025/08/14 v2.1h lastpage:|\linebreak
% | 2.09 or 2e? (HMM)]\relax\RequirePackage{lastpage2e}}|.)
%
% \begin{macrocode}
@@ -905,7 +906,7 @@
%% Part of the "lastpage" package
%% loads either lastpage2.09.sty for TeX 2.09 or lastpage2e.sty for LaTeX 2e
%% with code from https://groups.google.com/g/comp.text.tex/c/-Qmhj1ZI4xM
-\def\loadlastpage{\ProvidesPackage{lastpage}[2025/06/06 v2.1g lastpage: 2.09 or 2e? (HMM)]\relax\RequirePackage{lastpage2e}}
+\def\loadlastpage{\ProvidesPackage{lastpage}[2025/08/14 v2.1h lastpage: 2.09 or 2e? (HMM)]\relax\RequirePackage{lastpage2e}}
\begingroup \expandafter \ifx \csname documentclass\endcsname\relax
\endgroup \expandafter \input{lastpage209.sty}
\else \endgroup \expandafter \loadlastpage
@@ -945,7 +946,7 @@
%<*lastpage2e>
%% Part of the "lastpage" package
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{lastpage2e}[2025/06/06 v2.1g %
+\ProvidesPackage{lastpage2e}[2025/08/14 v2.1h %
Decide which 2e lastpage version to use (HMM)]
\@ifl at t@r\fmtversion{2024/06/01}{\RequirePackage{lastpagemodern}}{%
\RequirePackage{lastpageclassic}}
@@ -961,7 +962,7 @@
%<*lastpageclassic>
%% Part of the "lastpage" package
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{lastpageclassic}[2025/06/06 v2.1g %
+\ProvidesPackage{lastpageclassic}[2025/08/14 v2.1h %
Refers to last page's name (HMM; JPG)]
%% allows for things like "Page \thepage{} of \pageref{LastPage}"
%% to get "Page 7 of 9"
@@ -1183,7 +1184,7 @@
\def\Hy at temp{\thepage}%
\gdef\lastpage at firstpage{0}%
\else%
- \pdfstringdef\Hy at temp{\thepage}%
+ \pdfstringdef\Hy at temp{\thepage}%
\fi%
\else%
\pdfstringdef\Hy at temp{\thepage}%
@@ -1195,8 +1196,8 @@
\fi%
\immediate\write\@auxout{%
\string\newlabel{LastPage}{{}{\thepage}{}{%
- \ifHy at pageanchor page.\Hy at temp\fi}{}}%
- }%
+ \ifHy at pageanchor page.\Hy at temp\fi}{}}%
+ }%
% \end{macrocode}
%
% We also save the values, so that we can later (next rerun) check,
@@ -1377,7 +1378,7 @@
%<*lastpagemodern>
%% Part of the "lastpage" package
\NeedsTeXFormat{LaTeX2e}[2024-11-01]
-\ProvidesPackage{lastpagemodern}[2025-06-06 v2.1g %
+\ProvidesPackage{lastpagemodern}[2025-08-14 v2.1h %
Refers to last page's name (HMM; JPG)]
%% allows for things like "Page \thepage{} of \pageref{LastPage}"
%% to get "Page 7 of 9" or "Page VII of IX";
@@ -1387,6 +1388,14 @@
% \end{macrocode}
%
+% \indent While this is \xfile{lastpagemodern.sty}, it belongs to the \xpackage{lastpage} package,
+% therefore its hook label shall be |lastpage|.
+%
+% \begin{macrocode}
+\PushDefaultHookLabel{lastpage}
+
+% \end{macrocode}
+%
% \indent For comparisons, \textquotedblleft one\textquotedblright{} is defined
% (|\@ne| does not work for this).
%
@@ -1446,6 +1455,7 @@
}
% \end{macrocode}
+% \pagebreak
%
% \begin{macro}{\protected at iwrite}
% \indent We need an |\immediate\protected at write|. Just |\immediate\write| had led to errors,
@@ -1566,7 +1576,7 @@
Better enable `pageanchor' or use\MessageBreak%
\string\pageref*{LastPage} (not generating a link)}%
\fi%
- }%
+ }%
\begingroup%
% \end{macrocode}
%
@@ -1593,25 +1603,37 @@
% Thus, if \xpackage{pageslts} is used, here nothing is done.
%
% \begin{macrocode}
- \IfPackageLoadedTF{pageslts}{% then pageslts writes the label for "LastPage".
+ \IfPackageLoadedF{pageslts}{%
% \end{macrocode}
%
+% |\@currentlabelname| \emph{should} have been sanitized, but sometimes it is not.
+% Therefore we get rid of any possible |\label|, |\index| and |\glossary| contained here.
+% This code is inside a |\begingroup|\ldots|\endgroup|, thus there is no need to save
+% and later restore the original meaning of those commands.
+%
+% \begin{macrocode}
+ \let\label\@gobble at om%
+ \let\index\@gobble at som%
+ \let\glossary\@gobble at om%
+% \end{macrocode}
+%
% \noindent Simply using |\label| for \texttt{LastPage} would not work,
% because labels wait for the output routines to work, and there
% may be no more invocations of the output routines.
+% (Additionally we just disabled |\label|.)
% To force the write out, we need to do an |\immediate| protected write
% into the \xfile{aux} file.
%
% \begin{macrocode}
- }{\protected at iwrite\@auxout{}{\string\newlabel{LastPage}{%
- {\@currentlabel}{\thepage}{\@currentlabelname}%
- {\IfPackageLoadedTF{hyperref}{\ifHy at pageanchor\@currentHpage\fi%
- }{\@currentHref}}%
- {\@kernel at reserved@label at data}}%
- }%
+ \protected at iwrite\@auxout{}{\string\newlabel{LastPage}{%
+ {\@currentlabel}{\thepage}{\@currentlabelname}%
+ {\IfPackageLoadedTF{hyperref}{\ifHy at pageanchor\@currentHpage\fi%
+ }{\@currentHref}}%
+ {\@kernel at reserved@label at data}}%
}%
+ }% Otherwise pageslts writes the label for "LastPage".
% \end{macrocode}
-% \pagebreak
+%
% \noindent We also save the values, so that we can later (next rerun) check,
% whether they have been saved in the \xfile{aux} file.
%
@@ -1628,7 +1650,7 @@
% (if we changed it), since there might be other things still to be done.
%
% \begin{macrocode}
- \IfFormatAtLeastF{2025-06-01}{\addtocounter{page}{+1}}%
+ \IfFormatAtLeastF{2025-06-01}{\addtocounter{page}{+1}}%
\endgroup%
}
@@ -1744,6 +1766,14 @@
\IfPackageLoadedT{hyperref}{\lastpage at fileswtestHy}%
\fi%
}
+
+% \end{macrocode}
+%
+% For \xfile{lastpagemodern.sty} we changed the default hook label to |lastpage|
+% and need to stop the change at the end of the package.
+%
+% \begin{macrocode}
+\PopDefaultHookLabel
%</lastpagemodern>
% \end{macrocode}
% \newpage
@@ -1771,7 +1801,7 @@
% \begin{description}
% \item[-] \TeX, \url{https://www.CTAN.org}
%
-% \item[-] package \xpackage{lastpage}, 2025-06-06, v2.1g,
+% \item[-] package \xpackage{lastpage}, 2025-08-14, v2.1h,
% \url{https://ctan.org/pkg/lastpage}
% \end{description}
%
@@ -1781,7 +1811,7 @@
% \begin{description}
% \item[-] \TeX-format \LaTeX{}, v2.09
%
-% \item[-] package \xpackage{lastpage209}, 2025-06-06, v2.1g,
+% \item[-] package \xpackage{lastpage209}, 2025-08-14, v2.1h,
% \url{https://ctan.org/pkg/lastpage}
% \end{description}
% and does not work with \xpackage{hyperref}, which needs \LaTeX2e{}.\smallskip
@@ -1793,7 +1823,7 @@
% \item[-] \TeX-format \LaTeXe{} 1994/12/01 or newer,
% \url{https://www.CTAN.org}
%
-% \item[-] package \xpackage{lastpage}, 2025-06-06, v2.1g,
+% \item[-] package \xpackage{lastpage}, 2025-08-14, v2.1h,
% \url{https://ctan.org/pkg/lastpage}
% \end{description}
%
@@ -1804,7 +1834,7 @@
% \item[-] \TeX-format \LaTeXe{} between 1994/12/01 and 2024-05-31,\newline
% \url{https://www.CTAN.org}
%
-% \item[-] package \xpackage{lastpage}, 2025-06-06, v2.1g,
+% \item[-] package \xpackage{lastpage}, 2025-08-14, v2.1h,
% \url{https://ctan.org/pkg/lastpage}
% \end{description}
% and can use
@@ -1821,13 +1851,13 @@
% \item[-] \TeX-format \LaTeXe{} 2024-11-01 or newer,\newline
% \url{https://www.CTAN.org}
%
-% \item[-] package \xpackage{lastpage}, 2025-06-06, v2.1g,
+% \item[-] package \xpackage{lastpage}, 2025-08-14, v2.1h,
% \url{https://ctan.org/pkg/lastpage}
% \end{description}
% and can use
% \begin{description}
% \item[-] package \xpackage{hyperref}, probably 2023-11-07 and newer
-% (tested with: 2025-05-20 v7.01m),
+% (tested with: 2025-07-12, v7.01o),
% \url{https://ctan.org/pkg/hyperref}
% \end{description}
% \pagebreak
@@ -1836,7 +1866,7 @@
% The |lastpage-example.tex| requires the same file as all
% documents using the \xpackage{lastpage} package, i.\,e.
% \begin{description}
-% \item[-] package \xpackage{lastpage}, 2025-06-06, v2.1g,
+% \item[-] package \xpackage{lastpage}, 2025-08-14, v2.1h,
% \url{https://ctan.org/pkg/lastpage}\newline
% (Well, it is the example file for this package, and because you are reading the
% documentation for the \xpackage{lastpage} package, it can be assumed that you already
@@ -1850,7 +1880,7 @@
% \item[-] package \xpackage{showkeys}, 2024-05-23, v3.21,
% \url{https://ctan.org/pkg/showkeys}
%
-% \item[-] package \xpackage{hyperref}, 2025-05-20, v7.01m,
+% \item[-] package \xpackage{hyperref}, 2025-07-12, v7.01o,
% \url{https://ctan.org/pkg/hyperref}
% \end{description}
%
@@ -1893,7 +1923,7 @@
%
% \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
% \docstrip{} archive. The files are extracted by running the
-% \xext{.dtx} through \plainTeX :
+% \xext{dtx} through \plainTeX :
% \begin{quote}
% \verb|tex lastpage.dtx|
% \end{quote}
@@ -2041,7 +2071,8 @@
% Thanks to \textsc{David Carlisle} for the new code for |\lastpage at rmpage|.
% Thanks for bug reports go to \textsc{Ulrike Fischer} (several times),
% \textsc{Sebastian Bank}, \textsc{James Hedges}, \textsc{Mikhail Titov},
-% \textsc{Micha\l{} Herman}, \textsc{Matteo Gamboz}, and \textsc{James Small}.
+% \textsc{Micha\l{} Herman}, \textsc{Matteo Gamboz}, \textsc{James Small},
+% and \textsc{Ioannis Tsoulos}.
% Thanks to \textsc{Sven Siegmund} for pointing out a necessary further
% explanation in the documentation.
%
@@ -2270,11 +2301,16 @@
% \item With the new kernel, special handling for packages \xpackage{french} and
% \xpackage{frenchle} must not be done.
% \end{Version}
+% \begin{Version}{2025-08-14 v2.1h}
+% \item Hook label for \xfile{lastpagemodern.sty} set to |lastpage|.
+% \item Compatibility fix for package \xpackage{titlesec}. (Reported by \textsc{Ioannis Tsoulos}.)
+% \end{Version}
% \end{History}
% \bigskip
%
% When you find a mistake or have a suggestion for an improvement of this package,
% please send an e-mail to the maintainer, thanks! (Please see BUG REPORTS in the README.)
+% \pagebreak
% \PrintIndex
% \Finale
\endinput
\ No newline at end of file
Modified: trunk/Master/texmf-dist/source/latex/lastpage/lastpage.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/lastpage/lastpage.ins 2025-08-14 20:02:25 UTC (rev 76055)
+++ trunk/Master/texmf-dist/source/latex/lastpage/lastpage.ins 2025-08-14 20:02:36 UTC (rev 76056)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2025-06-06 v2.1g
+%% Version: 2025-08-14 v2.1h
%% Info: Refers to last page's name
%%
%% Copyright (C) 2010 - 2025 by
@@ -59,7 +59,7 @@
\input docstrip.tex
\Msg{**********************************************************************}
\Msg{* Installation *}
-\Msg{* Package: lastpage 2025-06-06 v2.1g Refers to last page's name (HMM)*}
+\Msg{* Package: lastpage 2025-08-14 v2.1h Refers to last page's name (HMM)*}
\Msg{**********************************************************************}
\keepsilent
@@ -71,7 +71,7 @@
This is a generated file.
Project: lastpage
-Version: 2025-06-06 v2.1g
+Version: 2025-08-14 v2.1h
Info: Refers to last page's name
Copyright (C) 2010 - 2025 by
Modified: trunk/Master/texmf-dist/tex/latex/lastpage/lastpage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lastpage/lastpage.sty 2025-08-14 20:02:25 UTC (rev 76055)
+++ trunk/Master/texmf-dist/tex/latex/lastpage/lastpage.sty 2025-08-14 20:02:36 UTC (rev 76056)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2025-06-06 v2.1g
+%% Version: 2025-08-14 v2.1h
%% Info: Refers to last page's name
%%
%% Copyright (C) 2010 - 2025 by
@@ -59,7 +59,7 @@
%% Part of the "lastpage" package
%% loads either lastpage2.09.sty for TeX 2.09 or lastpage2e.sty for LaTeX 2e
%% with code from https://groups.google.com/g/comp.text.tex/c/-Qmhj1ZI4xM
-\def\loadlastpage{\ProvidesPackage{lastpage}[2025/06/06 v2.1g lastpage: 2.09 or 2e? (HMM)]\relax\RequirePackage{lastpage2e}}
+\def\loadlastpage{\ProvidesPackage{lastpage}[2025/08/14 v2.1h lastpage: 2.09 or 2e? (HMM)]\relax\RequirePackage{lastpage2e}}
\begingroup \expandafter \ifx \csname documentclass\endcsname\relax
\endgroup \expandafter \input{lastpage209.sty}
\else \endgroup \expandafter \loadlastpage
Modified: trunk/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty 2025-08-14 20:02:25 UTC (rev 76055)
+++ trunk/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty 2025-08-14 20:02:36 UTC (rev 76056)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2025-06-06 v2.1g
+%% Version: 2025-08-14 v2.1h
%% Info: Refers to last page's name
%%
%% Copyright (C) 2010 - 2025 by
Modified: trunk/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty 2025-08-14 20:02:25 UTC (rev 76055)
+++ trunk/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty 2025-08-14 20:02:36 UTC (rev 76056)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2025-06-06 v2.1g
+%% Version: 2025-08-14 v2.1h
%% Info: Refers to last page's name
%%
%% Copyright (C) 2010 - 2025 by
@@ -58,7 +58,7 @@
%%
%% Part of the "lastpage" package
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{lastpage2e}[2025/06/06 v2.1g %
+\ProvidesPackage{lastpage2e}[2025/08/14 v2.1h %
Decide which 2e lastpage version to use (HMM)]
\@ifl at t@r\fmtversion{2024/06/01}{\RequirePackage{lastpagemodern}}{%
\RequirePackage{lastpageclassic}}
Modified: trunk/Master/texmf-dist/tex/latex/lastpage/lastpageclassic.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lastpage/lastpageclassic.sty 2025-08-14 20:02:25 UTC (rev 76055)
+++ trunk/Master/texmf-dist/tex/latex/lastpage/lastpageclassic.sty 2025-08-14 20:02:36 UTC (rev 76056)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2025-06-06 v2.1g
+%% Version: 2025-08-14 v2.1h
%% Info: Refers to last page's name
%%
%% Copyright (C) 2010 - 2025 by
@@ -58,7 +58,7 @@
%%
%% Part of the "lastpage" package
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{lastpageclassic}[2025/06/06 v2.1g %
+\ProvidesPackage{lastpageclassic}[2025/08/14 v2.1h %
Refers to last page's name (HMM; JPG)]
%% allows for things like "Page \thepage{} of \pageref{LastPage}"
%% to get "Page 7 of 9"
@@ -142,7 +142,7 @@
\def\Hy at temp{\thepage}%
\gdef\lastpage at firstpage{0}%
\else%
- \pdfstringdef\Hy at temp{\thepage}%
+ \pdfstringdef\Hy at temp{\thepage}%
\fi%
\else%
\pdfstringdef\Hy at temp{\thepage}%
@@ -154,8 +154,8 @@
\fi%
\immediate\write\@auxout{%
\string\newlabel{LastPage}{{}{\thepage}{}{%
- \ifHy at pageanchor page.\Hy at temp\fi}{}}%
- }%
+ \ifHy at pageanchor page.\Hy at temp\fi}{}}%
+ }%
\immediate\write\@auxout{\string\xdef\string\lastpage at lastpage{\thepage}}%
\ifHy at pageanchor%
\immediate\write\@auxout{\string\xdef\string\lastpage at lastpageHy{\Hy at temp}}%
Modified: trunk/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty 2025-08-14 20:02:25 UTC (rev 76055)
+++ trunk/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty 2025-08-14 20:02:36 UTC (rev 76056)
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2025-06-06 v2.1g
+%% Version: 2025-08-14 v2.1h
%% Info: Refers to last page's name
%%
%% Copyright (C) 2010 - 2025 by
@@ -58,7 +58,7 @@
%%
%% Part of the "lastpage" package
\NeedsTeXFormat{LaTeX2e}[2024-11-01]
-\ProvidesPackage{lastpagemodern}[2025-06-06 v2.1g %
+\ProvidesPackage{lastpagemodern}[2025-08-14 v2.1h %
Refers to last page's name (HMM; JPG)]
%% allows for things like "Page \thepage{} of \pageref{LastPage}"
%% to get "Page 7 of 9" or "Page VII of IX";
@@ -66,6 +66,8 @@
%% for example I to X and then 1 to 10, the number of pages would be "20",
%% while the name of the last page is "10". Decide what you need/want!
+\PushDefaultHookLabel{lastpage}
+
\gdef\lastpage at one{1}
\gdef\lastpage at firstpage{1}
\gdef\lastpage at lastpage{??}
@@ -156,17 +158,20 @@
Better enable `pageanchor' or use\MessageBreak%
\string\pageref*{LastPage} (not generating a link)}%
\fi%
- }%
+ }%
\begingroup%
\IfFormatAtLeastF{2025-06-01}{\addtocounter{page}{-1}}%
- \IfPackageLoadedTF{pageslts}{% then pageslts writes the label for "LastPage".
- }{\protected at iwrite\@auxout{}{\string\newlabel{LastPage}{%
- {\@currentlabel}{\thepage}{\@currentlabelname}%
- {\IfPackageLoadedTF{hyperref}{\ifHy at pageanchor\@currentHpage\fi%
- }{\@currentHref}}%
- {\@kernel at reserved@label at data}}%
- }%
+ \IfPackageLoadedF{pageslts}{%
+ \let\label\@gobble at om%
+ \let\index\@gobble at som%
+ \let\glossary\@gobble at om%
+ \protected at iwrite\@auxout{}{\string\newlabel{LastPage}{%
+ {\@currentlabel}{\thepage}{\@currentlabelname}%
+ {\IfPackageLoadedTF{hyperref}{\ifHy at pageanchor\@currentHpage\fi%
+ }{\@currentHref}}%
+ {\@kernel at reserved@label at data}}%
}%
+ }% Otherwise pageslts writes the label for "LastPage".
\protected at iwrite\@auxout{}{%
\string\gdef\string\lastpage at lastpage{\thepage}}%
\gdef\lastpage at Hy{}%
@@ -173,7 +178,7 @@
\IfPackageLoadedT{hyperref}{\ifHy at pageanchor\lastpage at makeHy\fi}%
\protected at iwrite\@auxout{}{%
\string\gdef\string\lastpage at lastpageHy{\lastpage at Hy}}%
- \IfFormatAtLeastF{2025-06-01}{\addtocounter{page}{+1}}%
+ \IfFormatAtLeastF{2025-06-01}{\addtocounter{page}{+1}}%
\endgroup%
}
@@ -235,6 +240,8 @@
\IfPackageLoadedT{hyperref}{\lastpage at fileswtestHy}%
\fi%
}
+
+\PopDefaultHookLabel
\endinput
%%
%% End of file `lastpagemodern.sty'.
More information about the tex-live-commits
mailing list.