texlive[73639] Master/texmf-dist: lastpage (29jan25)

commits+karl at tug.org commits+karl at tug.org
Wed Jan 29 21:31:01 CET 2025


Revision: 73639
          https://tug.org/svn/texlive?view=revision&revision=73639
Author:   karl
Date:     2025-01-29 21:31:01 +0100 (Wed, 29 Jan 2025)
Log Message:
-----------
lastpage (29jan25)

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-01-29 20:30:47 UTC (rev 73638)
+++ trunk/Master/texmf-dist/doc/latex/lastpage/README	2025-01-29 20:31:01 UTC (rev 73639)
@@ -1,4 +1,4 @@
-README for lastpage package, 2024-11-24, v2.1d
+README for lastpage package, 2025-01-27, v2.1e
 
 
 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-01-29 20:30:47 UTC (rev 73638)
+++ trunk/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex	2025-01-29 20:31:01 UTC (rev 73639)
@@ -9,10 +9,10 @@
 %% This is a generated file.
 %% 
 %% Project: lastpage
-%% Version: 2024-11-24 v2.1d
+%% Version: 2025-01-27 v2.1e
 %% Info: Refers to last page's name
 %% 
-%% Copyright (C) 2010 - 2024 by
+%% Copyright (C) 2010 - 2025 by
 %%     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
 %% Portions of code copyrighted by other people as marked.
 %% 
@@ -56,7 +56,7 @@
 %%  Tommy Muench         + 2014-01-02
 %%  Hans-Klaus Muench    + 2014-08-24
 %% 
-\documentclass[british]{article}[2024/02/08]% v1.4n Standard LaTeX document class
+\documentclass[british]{article}[2024/06/29]% v1.4n Standard LaTeX document class
 \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. %%
@@ -73,7 +73,7 @@
  pdfstartview=Fit,%
  pdfpagelayout=SinglePage%
 }}{\usepackage{url}[2013/09/16]}%  v3.4  Verb mode for urls, etc.
-\usepackage{lastpage}[2024/11/24]% v2.1d Refers to last page's name (HMM; JPG)]
+\usepackage{lastpage}[2025/01/27]% v2.1e 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.1d as of 2024-11-24 (HMM; JPG).\newline
+\textsf{lastpage}, v2.1e as of 2025-01-27 (HMM; JPG).\newline
 The package takes no options.\newline
 For more details please see the documentation!\newline
 
@@ -110,7 +110,7 @@
 usage is to the benefit of the trademark owner.\newline
 
 \textbf{Tip}: Use \textit{logical page numbers}
-for the display of the pdf (in Adobe Acrobat Reader 2024.002.20895:
+for the display of the pdf (in Adobe Acrobat Reader 2024.005.20392:
 Edit $>$ Preferences $>$ Page Display $>$
 Page Content and Information: Use logical page numbers)!\newline
 
@@ -185,7 +185,7 @@
 With modern \LaTeX{} it is possible to say:
 \begin{quote}
 \begin{verbatim}
-\NeedsTeXFormat{LaTeX2e}[2024-06-01]
+\NeedsTeXFormat{LaTeX2e}[2024-11-01]
 \documentclass{article}
 \pagenumbering{fnsymbol}
 \begin{document}

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-01-29 20:30:47 UTC (rev 73638)
+++ trunk/Master/texmf-dist/source/latex/lastpage/lastpage.drv	2025-01-29 20:31:01 UTC (rev 73639)
@@ -9,10 +9,10 @@
 %% This is a generated file.
 %% 
 %% Project: lastpage
-%% Version: 2024-11-24 v2.1d
+%% Version: 2025-01-27 v2.1e
 %% Info: Refers to last page's name
 %% 
-%% Copyright (C) 2010 - 2024 by
+%% Copyright (C) 2010 - 2025 by
 %%     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
 %% Portions of code copyrighted by other people as marked.
 %% 
@@ -56,8 +56,8 @@
 %%  Tommy Muench         + 2014-01-02
 %%  Hans-Klaus Muench    + 2014-08-24
 %% 
-\NeedsTeXFormat{LaTeX2e}[2024-06-01]
-\ProvidesFile{lastpage.drv}[2024-11-24 v2.1d Refers to last page's name (HMM)]
+\NeedsTeXFormat{LaTeX2e}[2024-11-01]
+\ProvidesFile{lastpage.drv}[2025-01-27 v2.1e 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-01-29 20:30:47 UTC (rev 73638)
+++ trunk/Master/texmf-dist/source/latex/lastpage/lastpage.dtx	2025-01-29 20:31:01 UTC (rev 73639)
@@ -1,10 +1,10 @@
 % \iffalse meta-comment
 %
 % File: lastpage.dtx
-% Version: 2024-11-24 v2.1d
+% Version: 2025-01-27 v2.1e
 % Info: Refers to last page's name
 %
-% Copyright © 2010 - 2024 by
+% Copyright © 2010 - 2025 by
 %    H.-Martin Münch <Martin dot Muench at Uni-Bonn dot de>
 % Portions of code copyrighted by other people as marked.
 %
@@ -65,7 +65,7 @@
 \input docstrip.tex
 \Msg{**********************************************************************}
 \Msg{* Installation                                                       *}
-\Msg{* Package: lastpage 2024-11-24 v2.1d Refers to last page's name (HMM)*}
+\Msg{* Package: lastpage 2025-01-27 v2.1e Refers to last page's name (HMM)*}
 \Msg{**********************************************************************}
 
 \keepsilent
@@ -77,10 +77,10 @@
 This is a generated file.
 
 Project: lastpage
-Version: 2024-11-24 v2.1d
+Version: 2025-01-27 v2.1e
 Info: Refers to last page's name
 
-Copyright (C) 2010 - 2024 by
+Copyright (C) 2010 - 2025 by
     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
 Portions of code copyrighted by other people as marked.
 
@@ -182,8 +182,8 @@
 %
 %    \begin{macrocode}
 %<*driver>
-\NeedsTeXFormat{LaTeX2e}[2024-06-01]
-\ProvidesFile{lastpage.drv}[2024-11-24 v2.1d Refers to last page's name (HMM)]
+\NeedsTeXFormat{LaTeX2e}[2024-11-01]
+\ProvidesFile{lastpage.drv}[2025-01-27 v2.1e 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{%
@@ -249,10 +249,9 @@
 % \today,\upshape,\url,\usepackage,\value,\verb,\wd,\write,\xlastpage at rmpage,\xxlastpage at rmpage}
 %
 % \title{The \xpackage{lastpage} package}
-% \date{2024-11-24 v2.1d}
 % \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-01-27 v2.1e}
 % \maketitle
 %
 % \begin{abstract}
@@ -358,7 +357,7 @@
 % \section{Some \textsc{Warnings}\label{sec:warn}}
 % \subsection{\texttt{\textbackslash AtEndDocument}\label{ssec:aed}}
 % \indent {\bfseries |\AtEndDocument| is not used by the \pkg{lastpagemodern.sty}
-% version of the lastpage package, requiring \LaTeX -format 2024-06-01
+% version of the lastpage package, requiring \LaTeX -format 2024-11-01
 % or newer. Instead |\AddToHook{enddocument/afterlastpage}| is used
 % and the problem does not arise.}
 % \bigskip
@@ -401,7 +400,7 @@
 % \subsection{Interaction with ancient versions of the \xpackage{endfloat} package\label{sec:endfloat}}
 %
 % \indent {\bfseries |\AtEndDocument| is not used by the \pkg{lastpagemodern.sty}
-% version of the lastpage package, requiring \LaTeX -format 2024-06-01
+% version of the lastpage package, requiring \LaTeX -format 2024-11-01
 % or newer. Instead |\AddToHook{enddocument/afterlastpage}| is used
 % and the problem does not arise.}
 %
@@ -553,7 +552,7 @@
 % 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.\\
+% 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).
@@ -568,12 +567,12 @@
 % When using the foot-note-symbols as page numbers,
 % it can be necessary to declare in the document's preamble:
 % \begin{verbatim}
-% \DeclareTextCommand{\textasteriskcentered}{PD1}{*}
-% \DeclareTextCommand{\textdagger}{PD1}{†}
-% %\DeclareTextCommand{\textdaggerdbl}{PD1}{‡)% seems to neither work nor be necessary
-% \DeclareTextCommand{\textsection}{PD1}{§}
-% \DeclareTextCommand{\textparagraph}{PD1}{¶}
-% \DeclareTextCommand{\textbardbl}{PD1}{‖}
+% \ProvideTextCommand{\textasteriskcentered}{PD1}{*}
+% \ProvideTextCommand{\textdagger}{PD1}{†}
+% %\ProvideTextCommand{\textdaggerdbl}{PD1}{‡)% seems to neither work nor be necessary
+% \ProvideTextCommand{\textsection}{PD1}{§}
+% \ProvideTextCommand{\textparagraph}{PD1}{¶}
+% \ProvideTextCommand{\textbardbl}{PD1}{‖}
 % \end{verbatim}
 %
 % \section{Alternatives\label{sec:Alternatives}}
@@ -581,7 +580,7 @@
 % As I neither know what exactly you want to accomplish when using this package
 % (e.\,g.~page number vs. page name, hyperlinks or not), nor what resources
 % your system has (e.\,g.~\TeX, \LaTeX2e, $\varepsilon$-\TeX{}, \LaTeX-format as recent
-% as 2024-06-01 or newer), here is a list of some possible alternatives:
+% as 2024-11-01 or newer), here is a list of some possible alternatives:
 % \begin{description}
 % \item[-]\DescribeMacro{pageslts}
 %  The \xpackage{pageslts} package first started as a revision of this
@@ -627,7 +626,7 @@
 %   and \texttt{fnsymbol} page numbering (with \xpackage{alphalph} package and
 %   according options).
 %  \end{description}
-%  Further labels are provided for special cases.\\
+%  Further labels are provided for special cases.\newline
 %  \url{https://ctan.org/pkg/pageslts}
 %
 % \item[-]\DescribeMacro{LaTeX-kernel}
@@ -653,7 +652,7 @@
 %  one sheet of paper) (which can be achieved also with the \xpackage{papermas} package,
 %  an extension of the \xpackage{pageslts} package, which further allows to compute
 %  the mass of that printed version of the document, useful e.\,g.\ when sending it
-%  by mail to determine the postage).\\
+%  by mail to determine the postage).\newline
 %  \url{https://ctan.org/pkg/totpages}
 %
 % \item[-]\DescribeMacro{totalcount}
@@ -675,7 +674,7 @@
 %
 %  prints \textquotedblleft Page L of 50\textquotedblright,
 %  where the number of pages is one (and no hyperlink is provided to the
-%  last page even if \xpackage{hyperref} is used).\\
+%  last page even if \xpackage{hyperref} is used).\newline
 %  \url{https://ctan.org/pkg/totalcount}
 %
 % \item[-]\DescribeMacro{totcount}
@@ -683,7 +682,7 @@
 %  of the \texttt{page} counter. You do not get a hyperlink to the last page, only the numerical
 %  value of the last page name is given \mbox{(i.\,e.~X+72} pages gives 72 instead of 82
 %  as total number of pages), and the number of pages can be changed for example
-%  by |\addtocounter|.\\
+%  by |\addtocounter|.\newline
 %  \url{https://ctan.org/pkg/totcount}
 % \pagebreak
 %
@@ -691,11 +690,11 @@
 %  \textquotedblleft There is a package \xpackage{nofm.sty} available, but some versions
 %  of it are defective, and most don't work with \xpackage{fancyhdr} because they take over
 %  the complete page layout.\textquotedblright{} (\textsc{Piet van Oostrum}:
-%  Page layout in \LaTeX , March~2, 2004, section~16; fancyhdr.pdf)\\
-%  \xpackage{nofm} as of 1991/02/25 (without version number), available at\\
-%  \url{https://mirror.ctan.org/obsolete/macros/latex209/contrib/misc/nofm.sty},\\
+%  Page layout in \LaTeX , March~2, 2004, section~16; fancyhdr.pdf)\newline
+%  \xpackage{nofm} as of 1991/02/25 (without version number), available at\newline
+%  \url{https://mirror.ctan.org/obsolete/macros/latex209/contrib/misc/nofm.sty},\newline
 %  does not work with e.\,g.\ \xpackage{hyperref}, redefines |\enddocument|
-%  as well as |\@oddhead|, |\@evenhead|, |\@oddfoot|, and |\@evenfoot|.\\
+%  as well as |\@oddhead|, |\@evenhead|, |\@oddfoot|, and |\@evenfoot|.\newline
 %  If you know the (\url{https://CTAN.org}) location of a
 %  \textbf{working}~(!) version, please send me an e-mail, thanks!
 %
@@ -704,17 +703,17 @@
 %  with the values of page to subparagraph. |\count9| is used to flag odd
 %  pages. \ldots\ [T]he code for the TotalPages
 %  label\textquotedblright\ (package manual, 2024-06-13) has been removed
-%  from the current package version.\\
+%  from the current package version.\newline
 %  \url{https://ctan.org/pkg/count1to}
 %
 % \item[-]\DescribeMacro{zref}
 %  The \xpackage{zref} package \textquotedblleft implements an extensible referencing
-%  system\textquotedblright\ (package manual, 2023-09-14).\\
+%  system\textquotedblright\ (package manual, 2023-09-14).\newline
 %  \url{https://ctan.org/pkg/zref}
 %
 % \item[-]\DescribeMacro{memoir}
 %  The \xpackage{memoir} \emph{class} provides |\thelastpage| (page number printed
-%  on last page) and |\thelastsheet| (number of pages).\\
+%  on last page) and |\thelastsheet| (number of pages).\newline
 %  \url{https://ctan.org/pkg/memoir}
 % \end{description}
 %
@@ -730,7 +729,7 @@
 % \section{Example}
 %    \begin{macrocode}
 %<*example>
-\documentclass[british]{article}[2024/02/08]% v1.4n Standard LaTeX document class
+\documentclass[british]{article}[2024/06/29]% v1.4n Standard LaTeX document class
 \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. %%
@@ -747,7 +746,7 @@
  pdfstartview=Fit,%
  pdfpagelayout=SinglePage%
 }}{\usepackage{url}[2013/09/16]}%  v3.4  Verb mode for urls, etc.
-\usepackage{lastpage}[2024/11/24]% v2.1d Refers to last page's name (HMM; JPG)]
+\usepackage{lastpage}[2025/01/27]% v2.1e Refers to last page's name (HMM; JPG)]
 \renewcommand{\@evenfoot}{{%
  \normalsize\slshape \today\hfil \upshape %
  page \thepage{} of \pageref{LastPage}}}
@@ -759,7 +758,7 @@
 \section*{Example for lastpage}
 \markboth{Example for lastpage}{Example for lastpage}
 This example demonstrates the use of package\newline
-\textsf{lastpage}, v2.1d as of 2024-11-24 (HMM; JPG).\newline
+\textsf{lastpage}, v2.1e as of 2025-01-27 (HMM; JPG).\newline
 The package takes no options.\newline
 For more details please see the documentation!\newline
 
@@ -784,7 +783,7 @@
 usage is to the benefit of the trademark owner.\newline
 
 \textbf{Tip}: Use \textit{logical page numbers}
-for the display of the pdf (in Adobe Acrobat Reader 2024.002.20895:
+for the display of the pdf (in Adobe Acrobat Reader 2024.005.20392:
 Edit $>$ Preferences $>$ Page Display $>$
 Page Content and Information: Use logical page numbers)!\newline
 
@@ -859,7 +858,7 @@
 With modern \LaTeX{} it is possible to say:
 \begin{quote}
 \begin{verbatim}
-\NeedsTeXFormat{LaTeX2e}[2024-06-01]
+\NeedsTeXFormat{LaTeX2e}[2024-11-01]
 \documentclass{article}
 \pagenumbering{fnsymbol}
 \begin{document}
@@ -897,7 +896,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}[2024/11/24 v2.1d lastpage:|\linebreak
+% |\def\loadlastpage{\ProvidesPackage{lastpage}[2025/01/27 v2.1e lastpage:|\linebreak
 % | 2.09 or 2e? (HMM)]\relax\RequirePackage{lastpage2e}}|.)
 %
 %    \begin{macrocode}
@@ -905,7 +904,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}[2024/11/24 v2.1d lastpage: 2.09 or 2e? (HMM)]\relax\RequirePackage{lastpage2e}}
+\def\loadlastpage{\ProvidesPackage{lastpage}[2025/01/27 v2.1e 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 +944,7 @@
 %<*lastpage2e>
 %% Part of the "lastpage" package
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{lastpage2e}[2024/11/24 v2.1d %
+\ProvidesPackage{lastpage2e}[2025/01/27 v2.1e %
  Decide which 2e lastpage version to use (HMM)]
 \@ifl at t@r\fmtversion{2024/06/01}{\RequirePackage{lastpagemodern}}{%
                                  \RequirePackage{lastpageclassic}}
@@ -961,7 +960,7 @@
 %<*lastpageclassic>
 %% Part of the "lastpage" package
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{lastpageclassic}[2024/11/24 v2.1d %
+\ProvidesPackage{lastpageclassic}[2025/01/27 v2.1e %
   Refers to last page's name (HMM; JPG)]
 %% allows for things like "Page \thepage{} of \pageref{LastPage}"
 %% to get "Page 7 of 9"
@@ -997,7 +996,7 @@
 %    \end{macrocode}
 %
 % \begin{macro}{\AtBeginDocument}
-% \indent |\AtBeginDocument| we give a waring about ancient versions of the \pkg{endfloat} package.
+% \indent |\AtBeginDocument| we give a warning about ancient versions of the \pkg{endfloat} package.
 % Then it is checked whether various packages are loaded.
 % (|\@ifpackageloaded| cannot be used later than |\AtBeginDocument|.)
 % If this is the case,\newline
@@ -1376,8 +1375,8 @@
 %    \begin{macrocode}
 %<*lastpagemodern>
 %% Part of the "lastpage" package
-\NeedsTeXFormat{LaTeX2e}[2024-06-01]
-\ProvidesPackage{lastpagemodern}[2024-11-24 v2.1d %
+\NeedsTeXFormat{LaTeX2e}[2024-11-01]
+\ProvidesPackage{lastpagemodern}[2025-01-27 v2.1e %
   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";
@@ -1471,45 +1470,42 @@
 % Just once we need the page from |\@currentHpage| without any \mbox{\textquotedblleft |page.|\textquotedblright :}
 %    \begin{macrocode}
 \newcommand{\lastpage at makeHy}{%
-  \gdef\lastpage at Hy{}%
-  \IfPackageLoadedT{hyperref}{%
-    \ifHy at pageanchor%
 %    \end{macrocode}
-% |\gdef\lastpage at Hy{}|, but that was already done at the beginning of this command.
+% |\gdef\lastpage at Hy{}|, but that was already done before this command.
 %    \begin{macrocode}
-      \def\lastpage at Hptest{Doc-Start}%
-      \ifx\lastpage at Hptest\@currentHpage\relax%
-        \gdef\lastpage at Hy{\@currentHpage}%
-      \else%
-        \edef\lastpage at Hptest{\@currentHpage}%
-        \ifx\lastpage at Hptest\empty\relax%
+  \def\lastpage at Hptest{Doc-Start}%
+  \ifx\lastpage at Hptest\@currentHpage\relax%
+    \gdef\lastpage at Hy{\@currentHpage}%
+  \else%
+    \edef\lastpage at Hptest{\@currentHpage}%
+    \ifx\lastpage at Hptest\empty\relax%
 %    \end{macrocode}
-% |\gdef\lastpage at Hy{}|, but that was already done at the beginning of this command.
+% |\gdef\lastpage at Hy{}|, but that was already done before this command.
 %    \begin{macrocode}
-        \else%
-          \def\lastpage at Hptest{page.}%
-          \ifx\lastpage at Hptest\@currentHpage\relax
-            \def\lastpage at Hptest{\csname @fnsymbol\endcsname \c at page }%
-            \ifx\lastpage at Hptest\thepage\relax%
-              \ifnum\value{page}=3\else%
-                \PackageWarningNoLine{lastpage}{You should add a\MessageBreak
-                  \string\DeclareTextCommand{...}{PD1}{...}\MessageBreak%
-                  (see the lastpage package manual, 3.13 %
-                  \string\pagenumbering{fnsymbol})\MessageBreak%
-                  to your document's preamble}%
+    \else%
+      \def\lastpage at Hptest{page.}%
+      \ifx\lastpage at Hptest\@currentHpage\relax
+        \def\lastpage at Hptest{\csname @fnsymbol\endcsname \c at page }%
+        \ifx\lastpage at Hptest\thepage\relax%
+          \ifnum\value{page}=3\else%
+            \PackageWarningNoLine{lastpage}{You should add a\MessageBreak
+              \string\ProvideTextCommand{...}{PD1}{...}\MessageBreak%
+              (see the lastpage package manual, 3.13 %
+              \string\pagenumbering{fnsymbol})\MessageBreak%
+              to your document's preamble}%
 %    \end{macrocode}
 % See \autoref{subsec:fnsymbol}: \nameref{subsec:fnsymbol}, page~\pageref{subsec:fnsymbol}.
 %    \begin{macrocode}
-              \fi%
-            \fi%
-            \PackageWarningNoLine{lastpage}{%
-              \string\@currentHpage\space is\MessageBreak%
-              just "page." without number,\MessageBreak%
-              \string\lastpage at lastpageHy\space is now let empty}%
+          \fi%
+        \fi%
+        \PackageWarningNoLine{lastpage}{%
+          \string\@currentHpage\space is\MessageBreak%
+          just "page." without number,\MessageBreak%
+          \string\lastpage at lastpageHy\space is now let empty}%
 %    \end{macrocode}
-% |\gdef\lastpage at Hy{}|, but that was already done at the beginning of this command.
+% |\gdef\lastpage at Hy{}|, but that was already done before this command.
 %    \begin{macrocode}
-          \else%
+      \else%
 %    \end{macrocode}
 % |\@currentHpage| should be |page.<some number>|, |\lastpage at rmpage| removes the
 % \mbox{\textquotedblleft |page.|\textquotedblright .} Next compilation run,
@@ -1517,19 +1513,14 @@
 % If we arrived at this place, but the definition is still empty,
 % then |\@currentHpage| has some unexpected content.
 %    \begin{macrocode}
-            \gdef\lastpage at Hy{\lastpage at rmpage{\@currentHpage}}%
-            \ifx\lastpage at lastpageHy\empty\relax%
-              \PackageWarningNoLine{lastpage}{%
-                \string\@currentHpage\space is\MessageBreak%
-                \meaning\@currentHpage\MessageBreak%
-                not beginning with "page.",\MessageBreak%
-                \string\lastpage at lastpageHy\space is now let empty}%
-            \fi%
-          \fi%
-        \fi%
-      \fi%
-    \fi%
-    }%
+        \gdef\lastpage at Hy{\lastpage at rmpage{\@currentHpage}}%
+        \ifx\lastpage at lastpageHy\empty\relax%
+          \PackageWarningNoLine{lastpage}{%
+            \string\@currentHpage\space is\MessageBreak%
+            \meaning\@currentHpage\MessageBreak%
+            not beginning with "page.",\MessageBreak%
+            \string\lastpage at lastpageHy\space is now let empty}%
+  \fi\fi\fi\fi%
   }
 
 %    \end{macrocode}
@@ -1616,7 +1607,8 @@
 %    \begin{macrocode}
     \protected at iwrite\@auxout{}{%
       \string\gdef\string\lastpage at lastpage{\thepage}}%
-    \lastpage at makeHy%
+    \gdef\lastpage at Hy{}%
+    \IfPackageLoadedT{hyperref}{\ifHy at pageanchor\lastpage at makeHy\fi}%
     \protected at iwrite\@auxout{}{%
       \string\gdef\string\lastpage at lastpageHy{\lastpage at Hy}}%
 %    \end{macrocode}
@@ -1766,7 +1758,7 @@
 % \begin{description}
 % \item[-] \TeX, \url{https://www.CTAN.org}
 %
-% \item[-] package \xpackage{lastpage}, 2024-11-24, v2.1d,
+% \item[-] package \xpackage{lastpage}, 2025-01-27, v2.1e,
 %   \url{https://ctan.org/pkg/lastpage}
 % \end{description}
 %
@@ -1776,7 +1768,7 @@
 % \begin{description}
 % \item[-] \TeX-format \LaTeX{}, v2.09
 %
-% \item[-] package \xpackage{lastpage209}, 2024-11-24, v2.1d,
+% \item[-] package \xpackage{lastpage209}, 2025-01-27, v2.1e,
 %   \url{https://ctan.org/pkg/lastpage}
 % \end{description}
 % and does not work with \xpackage{hyperref}, which needs \LaTeX2e{}.\smallskip
@@ -1788,7 +1780,7 @@
 % \item[-] \TeX-format \LaTeXe{} 1994/12/01 or newer,
 %   \url{https://www.CTAN.org}
 %
-% \item[-] package \xpackage{lastpage}, 2024-11-24, v2.1d,
+% \item[-] package \xpackage{lastpage}, 2025-01-27, v2.1e,
 %   \url{https://ctan.org/pkg/lastpage}
 % \end{description}
 %
@@ -1799,7 +1791,7 @@
 % \item[-] \TeX-format \LaTeXe{} between 1994/12/01 and 2024-05-31,\newline
 %   \url{https://www.CTAN.org}
 %
-% \item[-] package \xpackage{lastpage}, 2024-11-24, v2.1d,
+% \item[-] package \xpackage{lastpage}, 2025-01-27, v2.1e,
 %   \url{https://ctan.org/pkg/lastpage}
 % \end{description}
 % and can use
@@ -1813,16 +1805,16 @@
 % The |lastpagemodern.sty| for \LaTeXe{} (i.\,e.\ each document using
 % the \xpackage{lastpagemodern} package) requires:
 % \begin{description}
-% \item[-] \TeX-format \LaTeXe{} 2024-06-01 or newer,\newline
+% \item[-] \TeX-format \LaTeXe{} 2024-11-01 or newer,\newline
 %   \url{https://www.CTAN.org}
 %
-% \item[-] package \xpackage{lastpage}, 2024-11-24, v2.1d,
+% \item[-] package \xpackage{lastpage}, 2025-01-27, v2.1e,
 %   \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: 2024-10-30 v7.01k),
+%   (tested with: 2024-11-05 v7.01l),
 %   \url{https://ctan.org/pkg/hyperref}
 % \end{description}
 % \pagebreak
@@ -1831,7 +1823,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}, 2024-11-24, v2.1d,
+% \item[-] package \xpackage{lastpage}, 2025-01-27, v2.1e,
 %   \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
@@ -1839,13 +1831,13 @@
 % \end{description}
 % and additionally:
 % \begin{description}
-% \item[-] class \xpackage{article}, 2024-02-08, v1.4n, from \xpackage{classes}:
+% \item[-] class \xpackage{article}, 2024/06/29, v1.4n, from \xpackage{classes}:
 %           \url{https://ctan.org/pkg/classes}
 %
 % \item[-] package \xpackage{showkeys}, 2024-05-23, v3.21,
 %   \url{https://ctan.org/pkg/showkeys}
 %
-% \item[-] package \xpackage{hyperref}, 2024-10-30, v7.01k,
+% \item[-] package \xpackage{hyperref}, 2024-11-05, v7.01l,
 %   \url{https://ctan.org/pkg/hyperref}
 % \end{description}
 %
@@ -1858,11 +1850,11 @@
 % \begin{description}
 % \item[\url{https://mirror.ctan.org/macros/latex/contrib/lastpage/lastpage.dtx}]\hspace*{0.1cm} \newline
 %       The source file.
-% \item[\url{https://mirror.ctan.org/macros/latex/contrib/lastpage/lastpage.pdf}]\hspace*{0.1cm} \\
+% \item[\url{https://mirror.ctan.org/macros/latex/contrib/lastpage/lastpage.pdf}]\hspace*{0.1cm} \newline
 %       The documentation.
 % \item[\url{https://mirror.ctan.org/macros/latex/contrib/lastpage/lastpage-example.pdf}]\hspace*{0.1cm}
 %       The compiled example file, as it should look like.
-% \item[\url{https://mirror.ctan.org/macros/latex/contrib/lastpage/README}]\hspace*{0.1cm} \\
+% \item[\url{https://mirror.ctan.org/macros/latex/contrib/lastpage/README}]\hspace*{0.1cm} \newline
 %       The README file.
 % \end{description}
 % There is also a |lastpage.tds.zip| available:
@@ -1870,7 +1862,7 @@
 % \item[\url{https://mirror.ctan.org/install/macros/latex/contrib/lastpage.tds.zip}]\hspace*{0.1cm}
 %       Everything in TDS compliant, compiled format.
 % \end{description}
-% which additionally contains\\
+% which additionally contains\newline
 % \begin{tabular}{ll}
 % lastpage.ins         & The \texttt{ins}tallation file.\\
 % lastpage.drv         & The \mbox{\texttt{dr}i\texttt{v}er} to generate the documentation.\\
@@ -1879,7 +1871,7 @@
 % lastpage2e.sty       & The \texttt{sty}le file to determine which 2e-style to use.\\
 % lastpageclassic.sty  & The \texttt{sty}le file for older \LaTeX-formats.\\
 % lastpagemodern.sty   & The \texttt{sty}le file for the recent \LaTeX-format.\\
-% lastpage-example.tex & The example file.%
+% lastpage-example.tex & The example file.
 % \end{tabular}
 %
 % \bigskip
@@ -1909,7 +1901,7 @@
 %   lastpage.pdf & doc/latex/lastpage.pdf\\
 %   lastpage-example.tex & doc/latex/lastpage-example.tex\\
 %   lastpage-example.pdf & doc/latex/lastpage-example.pdf\\
-%   lastpage.dtx & source/latex/lastpage.dtx\\
+%   lastpage.dtx & source/latex/lastpage.dtx
 % \end{tabular}^^A
 % }^^A
 % \sbox0{\t}^^A
@@ -2193,8 +2185,6 @@
 %   \begin{Version}{2021/09/03 v1.2n}
 %     \item Updates to the documentation (manual \& README), to the example, and
 %             several small changes in code.
-%     \item This version has been archived at
-%             \url{https://web.archive.org/web/20230305193232/https://mirror.ctan.org/install/macros/latex/contrib/lastpage.tds.zip}.
 %   \end{Version}
 %   \begin{Version}{2023-03-07 v2.0a}
 %     \item Removed use of \pkg{ulem}.
@@ -2203,11 +2193,12 @@
 %             its \TeX~2.09 version, classic \LaTeX2e-version, or modern version
 %             with \eTeX, hook{-}man\-age\-ment etc.
 %     \item Converted to UTF-8.
-%     \item Updated to \LaTeX{} format 2022-11-01.
+%     \item Updated to [then] current \LaTeX{} format 2022-11-01.
 %     \item Extensive updates to the documentation (manual \& README) and to the example.
 %   \end{Version}
 %   \begin{Version}{2023-04-12 v2.0b}
-%     \item Bug fix: What should have been |}}{}| was |}{}}|. Thanks to \textsc{Matteo Gamboz}!
+%     \item Bug fix: What should have been |}}{}| was |}{}}|.
+%             Thanks to \textsc{Matteo Gamboz} for the bug report!
 %   \end{Version}
 %   \begin{Version}{2023-07-24 v2.0c}
 %     \item Since \LaTeX{} release 2023-06-01 labels have always five arguments.
@@ -2244,14 +2235,19 @@
 %             |\@currentHpage| to begin with \mbox{\textquotedblleft |page.|\textquotedblright .}
 %   \end{Version}
 %   \begin{Version}{2024-11-24 v2.1d}
-%     \item The \xpackage{pageslts} package has been repaired, thus here the warnings are removed.
+%     \item The \xpackage{pageslts} package has been repaired, thus here the warnings have been removed.
 %     \item Several small changes in documentation and |lastpagemodern.sty| because of the updates
-%             of \LaTeX-format (to 2024-06-01), \xpackage{hyperref} package (to 2024-10-30, v7.01k),
-%             and \xpackage{pageslts} package (to 2024-11-20, v2.0a).
-%     \item Added a warning message about missing |\DeclareTextCommand{...}{PD1}{...}|
-%            (cf.~\autoref{subsec:fnsymbol}: \nameref{subsec:fnsymbol}, page~\pageref{subsec:fnsymbol}).
+%             of \LaTeX-format (to~2024-06-01), \xpackage{hyperref} package (to~2024-10-30, v7.01k),
+%             and \xpackage{pageslts} package (to~2024-11-20, v2.0a).
+%     \item Added a warning message about missing\newline
+%             |\ProvideTextCommand{...}{PD1}{...}|\newline
+%             (cf.~\autoref{subsec:fnsymbol}: \nameref{subsec:fnsymbol}, page~\pageref{subsec:fnsymbol}).
 %     \item Documentation section about alternatives rewritten.
 %   \end{Version}
+%   \begin{Version}{2025-01-27 v2.1e}
+%     \item Reorganized beginning of |\lastpage at makeHy|.
+%     \item Documentation update.
+%   \end{Version}
 % \end{History}
 % \bigskip
 %

Modified: trunk/Master/texmf-dist/source/latex/lastpage/lastpage.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/lastpage/lastpage.ins	2025-01-29 20:30:47 UTC (rev 73638)
+++ trunk/Master/texmf-dist/source/latex/lastpage/lastpage.ins	2025-01-29 20:31:01 UTC (rev 73639)
@@ -9,10 +9,10 @@
 %% This is a generated file.
 %% 
 %% Project: lastpage
-%% Version: 2024-11-24 v2.1d
+%% Version: 2025-01-27 v2.1e
 %% Info: Refers to last page's name
 %% 
-%% Copyright (C) 2010 - 2024 by
+%% Copyright (C) 2010 - 2025 by
 %%     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
 %% Portions of code copyrighted by other people as marked.
 %% 
@@ -59,7 +59,7 @@
 \input docstrip.tex
 \Msg{**********************************************************************}
 \Msg{* Installation                                                       *}
-\Msg{* Package: lastpage 2024-11-24 v2.1d Refers to last page's name (HMM)*}
+\Msg{* Package: lastpage 2025-01-27 v2.1e Refers to last page's name (HMM)*}
 \Msg{**********************************************************************}
 
 \keepsilent
@@ -71,10 +71,10 @@
 This is a generated file.
 
 Project: lastpage
-Version: 2024-11-24 v2.1d
+Version: 2025-01-27 v2.1e
 Info: Refers to last page's name
 
-Copyright (C) 2010 - 2024 by
+Copyright (C) 2010 - 2025 by
     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
 Portions of code copyrighted by other people as marked.
 

Modified: trunk/Master/texmf-dist/tex/latex/lastpage/lastpage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lastpage/lastpage.sty	2025-01-29 20:30:47 UTC (rev 73638)
+++ trunk/Master/texmf-dist/tex/latex/lastpage/lastpage.sty	2025-01-29 20:31:01 UTC (rev 73639)
@@ -9,10 +9,10 @@
 %% This is a generated file.
 %% 
 %% Project: lastpage
-%% Version: 2024-11-24 v2.1d
+%% Version: 2025-01-27 v2.1e
 %% Info: Refers to last page's name
 %% 
-%% Copyright (C) 2010 - 2024 by
+%% Copyright (C) 2010 - 2025 by
 %%     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
 %% Portions of code copyrighted by other people as marked.
 %% 
@@ -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}[2024/11/24 v2.1d lastpage: 2.09 or 2e? (HMM)]\relax\RequirePackage{lastpage2e}}
+\def\loadlastpage{\ProvidesPackage{lastpage}[2025/01/27 v2.1e 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-01-29 20:30:47 UTC (rev 73638)
+++ trunk/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty	2025-01-29 20:31:01 UTC (rev 73639)
@@ -9,10 +9,10 @@
 %% This is a generated file.
 %% 
 %% Project: lastpage
-%% Version: 2024-11-24 v2.1d
+%% Version: 2025-01-27 v2.1e
 %% Info: Refers to last page's name
 %% 
-%% Copyright (C) 2010 - 2024 by
+%% Copyright (C) 2010 - 2025 by
 %%     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
 %% Portions of code copyrighted by other people as marked.
 %% 

Modified: trunk/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty	2025-01-29 20:30:47 UTC (rev 73638)
+++ trunk/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty	2025-01-29 20:31:01 UTC (rev 73639)
@@ -9,10 +9,10 @@
 %% This is a generated file.
 %% 
 %% Project: lastpage
-%% Version: 2024-11-24 v2.1d
+%% Version: 2025-01-27 v2.1e
 %% Info: Refers to last page's name
 %% 
-%% Copyright (C) 2010 - 2024 by
+%% Copyright (C) 2010 - 2025 by
 %%     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
 %% Portions of code copyrighted by other people as marked.
 %% 
@@ -58,7 +58,7 @@
 %% 
 %% Part of the "lastpage" package
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{lastpage2e}[2024/11/24 v2.1d %
+\ProvidesPackage{lastpage2e}[2025/01/27 v2.1e %
  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-01-29 20:30:47 UTC (rev 73638)
+++ trunk/Master/texmf-dist/tex/latex/lastpage/lastpageclassic.sty	2025-01-29 20:31:01 UTC (rev 73639)
@@ -9,10 +9,10 @@
 %% This is a generated file.
 %% 
 %% Project: lastpage
-%% Version: 2024-11-24 v2.1d
+%% Version: 2025-01-27 v2.1e
 %% Info: Refers to last page's name
 %% 
-%% Copyright (C) 2010 - 2024 by
+%% Copyright (C) 2010 - 2025 by
 %%     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
 %% Portions of code copyrighted by other people as marked.
 %% 
@@ -58,7 +58,7 @@
 %% 
 %% Part of the "lastpage" package
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{lastpageclassic}[2024/11/24 v2.1d %
+\ProvidesPackage{lastpageclassic}[2025/01/27 v2.1e %
   Refers to last page's name (HMM; JPG)]
 %% allows for things like "Page \thepage{} of \pageref{LastPage}"
 %% to get "Page 7 of 9"

Modified: trunk/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty	2025-01-29 20:30:47 UTC (rev 73638)
+++ trunk/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty	2025-01-29 20:31:01 UTC (rev 73639)
@@ -9,10 +9,10 @@
 %% This is a generated file.
 %% 
 %% Project: lastpage
-%% Version: 2024-11-24 v2.1d
+%% Version: 2025-01-27 v2.1e
 %% Info: Refers to last page's name
 %% 
-%% Copyright (C) 2010 - 2024 by
+%% Copyright (C) 2010 - 2025 by
 %%     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
 %% Portions of code copyrighted by other people as marked.
 %% 
@@ -57,8 +57,8 @@
 %%  Hans-Klaus Muench    + 2014-08-24
 %% 
 %% Part of the "lastpage" package
-\NeedsTeXFormat{LaTeX2e}[2024-06-01]
-\ProvidesPackage{lastpagemodern}[2024-11-24 v2.1d %
+\NeedsTeXFormat{LaTeX2e}[2024-11-01]
+\ProvidesPackage{lastpagemodern}[2025-01-27 v2.1e %
   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";
@@ -99,46 +99,38 @@
   }
 
 \newcommand{\lastpage at makeHy}{%
-  \gdef\lastpage at Hy{}%
-  \IfPackageLoadedT{hyperref}{%
-    \ifHy at pageanchor%
-      \def\lastpage at Hptest{Doc-Start}%
-      \ifx\lastpage at Hptest\@currentHpage\relax%
-        \gdef\lastpage at Hy{\@currentHpage}%
-      \else%
-        \edef\lastpage at Hptest{\@currentHpage}%
-        \ifx\lastpage at Hptest\empty\relax%
-        \else%
-          \def\lastpage at Hptest{page.}%
-          \ifx\lastpage at Hptest\@currentHpage\relax
-            \def\lastpage at Hptest{\csname @fnsymbol\endcsname \c at page }%
-            \ifx\lastpage at Hptest\thepage\relax%
-              \ifnum\value{page}=3\else%
-                \PackageWarningNoLine{lastpage}{You should add a\MessageBreak
-                  \string\DeclareTextCommand{...}{PD1}{...}\MessageBreak%
-                  (see the lastpage package manual, 3.13 %
-                  \string\pagenumbering{fnsymbol})\MessageBreak%
-                  to your document's preamble}%
-              \fi%
-            \fi%
-            \PackageWarningNoLine{lastpage}{%
-              \string\@currentHpage\space is\MessageBreak%
-              just "page." without number,\MessageBreak%
-              \string\lastpage at lastpageHy\space is now let empty}%
-          \else%
-            \gdef\lastpage at Hy{\lastpage at rmpage{\@currentHpage}}%
-            \ifx\lastpage at lastpageHy\empty\relax%
-              \PackageWarningNoLine{lastpage}{%
-                \string\@currentHpage\space is\MessageBreak%
-                \meaning\@currentHpage\MessageBreak%
-                not beginning with "page.",\MessageBreak%
-                \string\lastpage at lastpageHy\space is now let empty}%
-            \fi%
+  \def\lastpage at Hptest{Doc-Start}%
+  \ifx\lastpage at Hptest\@currentHpage\relax%
+    \gdef\lastpage at Hy{\@currentHpage}%
+  \else%
+    \edef\lastpage at Hptest{\@currentHpage}%
+    \ifx\lastpage at Hptest\empty\relax%
+    \else%
+      \def\lastpage at Hptest{page.}%
+      \ifx\lastpage at Hptest\@currentHpage\relax
+        \def\lastpage at Hptest{\csname @fnsymbol\endcsname \c at page }%
+        \ifx\lastpage at Hptest\thepage\relax%
+          \ifnum\value{page}=3\else%
+            \PackageWarningNoLine{lastpage}{You should add a\MessageBreak
+              \string\ProvideTextCommand{...}{PD1}{...}\MessageBreak%
+              (see the lastpage package manual, 3.13 %
+              \string\pagenumbering{fnsymbol})\MessageBreak%
+              to your document's preamble}%
           \fi%
         \fi%
-      \fi%
-    \fi%
-    }%
+        \PackageWarningNoLine{lastpage}{%
+          \string\@currentHpage\space is\MessageBreak%
+          just "page." without number,\MessageBreak%
+          \string\lastpage at lastpageHy\space is now let empty}%
+      \else%
+        \gdef\lastpage at Hy{\lastpage at rmpage{\@currentHpage}}%
+        \ifx\lastpage at lastpageHy\empty\relax%
+          \PackageWarningNoLine{lastpage}{%
+            \string\@currentHpage\space is\MessageBreak%
+            \meaning\@currentHpage\MessageBreak%
+            not beginning with "page.",\MessageBreak%
+            \string\lastpage at lastpageHy\space is now let empty}%
+  \fi\fi\fi\fi%
   }
 
 %% Code provided by David Carlisle at https://tex.stackexchange.com/a/721877
@@ -177,7 +169,8 @@
       }%
     \protected at iwrite\@auxout{}{%
       \string\gdef\string\lastpage at lastpage{\thepage}}%
-    \lastpage at makeHy%
+    \gdef\lastpage at Hy{}%
+    \IfPackageLoadedT{hyperref}{\ifHy at pageanchor\lastpage at makeHy\fi}%
     \protected at iwrite\@auxout{}{%
       \string\gdef\string\lastpage at lastpageHy{\lastpage at Hy}}%
     \addtocounter{page}{+1}%



More information about the tex-live-commits mailing list.