summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/README2
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdfbin130955 -> 130804 bytes
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex14
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/lastpage.pdfbin463832 -> 463729 bytes
-rw-r--r--Master/texmf-dist/source/latex/lastpage/lastpage.drv8
-rw-r--r--Master/texmf-dist/source/latex/lastpage/lastpage.dtx216
-rw-r--r--Master/texmf-dist/source/latex/lastpage/lastpage.ins10
-rw-r--r--Master/texmf-dist/tex/latex/lastpage/lastpage.sty6
-rw-r--r--Master/texmf-dist/tex/latex/lastpage/lastpage209.sty4
-rw-r--r--Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty6
-rw-r--r--Master/texmf-dist/tex/latex/lastpage/lastpageclassic.sty6
-rw-r--r--Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty79
12 files changed, 170 insertions, 181 deletions
diff --git a/Master/texmf-dist/doc/latex/lastpage/README b/Master/texmf-dist/doc/latex/lastpage/README
index aec0c6a6fd4..15977b11763 100644
--- a/Master/texmf-dist/doc/latex/lastpage/README
+++ b/Master/texmf-dist/doc/latex/lastpage/README
@@ -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
diff --git a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdf b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdf
index 97bde626aea..41a2a3fd80c 100644
--- a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdf
+++ b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex
index 803fe844a39..681caf155f3 100644
--- a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex
+++ b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex
@@ -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 @@ trademark owner. There is no intention of infringement; the
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 @@ Last page's name (LastPage): \pageref{LastPage}
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}
diff --git a/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf b/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
index 2ebae720eac..5c0158d3adf 100644
--- a/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
+++ b/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/lastpage/lastpage.drv b/Master/texmf-dist/source/latex/lastpage/lastpage.drv
index 2e113fe3160..c06466da90e 100644
--- a/Master/texmf-dist/source/latex/lastpage/lastpage.drv
+++ b/Master/texmf-dist/source/latex/lastpage/lastpage.drv
@@ -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{%
diff --git a/Master/texmf-dist/source/latex/lastpage/lastpage.dtx b/Master/texmf-dist/source/latex/lastpage/lastpage.dtx
index db3eb4548d3..12909fe3c9e 100644
--- a/Master/texmf-dist/source/latex/lastpage/lastpage.dtx
+++ b/Master/texmf-dist/source/latex/lastpage/lastpage.dtx
@@ -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 @@ In memoriam
%
% \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 @@ In memoriam
% \today,\upshape,\url,\usepackage,\value,\verb,\wd,\write,\xlastpage@rmpage,\xxlastpage@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 @@ In memoriam
% \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 @@ In memoriam
% \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 @@ In memoriam
% 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 @@ In memoriam
% 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 @@ In memoriam
% 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 @@ In memoriam
% 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 @@ In memoriam
% 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 @@ In memoriam
%
% 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 @@ In memoriam
% 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 @@ In memoriam
% \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 @@ In memoriam
% 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 @@ In memoriam
% \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 @@ In memoriam
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 @@ In memoriam
\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 @@ trademark owner. There is no intention of infringement; the
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 @@ Last page's name (LastPage): \pageref{LastPage}
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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
%% 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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
%<*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@t@r\fmtversion{2024/06/01}{\RequirePackage{lastpagemodern}}{%
\RequirePackage{lastpageclassic}}
@@ -961,7 +960,7 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
%<*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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% Just once we need the page from |\@currentHpage| without any \mbox{\textquotedblleft |page.|\textquotedblright :}
% \begin{macrocode}
\newcommand{\lastpage@makeHy}{%
- \gdef\lastpage@Hy{}%
- \IfPackageLoadedT{hyperref}{%
- \ifHy@pageanchor%
% \end{macrocode}
-% |\gdef\lastpage@Hy{}|, but that was already done at the beginning of this command.
+% |\gdef\lastpage@Hy{}|, but that was already done before this command.
% \begin{macrocode}
- \def\lastpage@Hptest{Doc-Start}%
- \ifx\lastpage@Hptest\@currentHpage\relax%
- \gdef\lastpage@Hy{\@currentHpage}%
- \else%
- \edef\lastpage@Hptest{\@currentHpage}%
- \ifx\lastpage@Hptest\empty\relax%
+ \def\lastpage@Hptest{Doc-Start}%
+ \ifx\lastpage@Hptest\@currentHpage\relax%
+ \gdef\lastpage@Hy{\@currentHpage}%
+ \else%
+ \edef\lastpage@Hptest{\@currentHpage}%
+ \ifx\lastpage@Hptest\empty\relax%
% \end{macrocode}
-% |\gdef\lastpage@Hy{}|, but that was already done at the beginning of this command.
+% |\gdef\lastpage@Hy{}|, but that was already done before this command.
% \begin{macrocode}
- \else%
- \def\lastpage@Hptest{page.}%
- \ifx\lastpage@Hptest\@currentHpage\relax
- \def\lastpage@Hptest{\csname @fnsymbol\endcsname \c@page }%
- \ifx\lastpage@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@Hptest{page.}%
+ \ifx\lastpage@Hptest\@currentHpage\relax
+ \def\lastpage@Hptest{\csname @fnsymbol\endcsname \c@page }%
+ \ifx\lastpage@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@lastpageHy\space is now let empty}%
+ \fi%
+ \fi%
+ \PackageWarningNoLine{lastpage}{%
+ \string\@currentHpage\space is\MessageBreak%
+ just "page." without number,\MessageBreak%
+ \string\lastpage@lastpageHy\space is now let empty}%
% \end{macrocode}
-% |\gdef\lastpage@Hy{}|, but that was already done at the beginning of this command.
+% |\gdef\lastpage@Hy{}|, but that was already done before this command.
% \begin{macrocode}
- \else%
+ \else%
% \end{macrocode}
% |\@currentHpage| should be |page.<some number>|, |\lastpage@rmpage| removes the
% \mbox{\textquotedblleft |page.|\textquotedblright .} Next compilation run,
@@ -1517,19 +1513,14 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% If we arrived at this place, but the definition is still empty,
% then |\@currentHpage| has some unexpected content.
% \begin{macrocode}
- \gdef\lastpage@Hy{\lastpage@rmpage{\@currentHpage}}%
- \ifx\lastpage@lastpageHy\empty\relax%
- \PackageWarningNoLine{lastpage}{%
- \string\@currentHpage\space is\MessageBreak%
- \meaning\@currentHpage\MessageBreak%
- not beginning with "page.",\MessageBreak%
- \string\lastpage@lastpageHy\space is now let empty}%
- \fi%
- \fi%
- \fi%
- \fi%
- \fi%
- }%
+ \gdef\lastpage@Hy{\lastpage@rmpage{\@currentHpage}}%
+ \ifx\lastpage@lastpageHy\empty\relax%
+ \PackageWarningNoLine{lastpage}{%
+ \string\@currentHpage\space is\MessageBreak%
+ \meaning\@currentHpage\MessageBreak%
+ not beginning with "page.",\MessageBreak%
+ \string\lastpage@lastpageHy\space is now let empty}%
+ \fi\fi\fi\fi%
}
% \end{macrocode}
@@ -1616,7 +1607,8 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \begin{macrocode}
\protected@iwrite\@auxout{}{%
\string\gdef\string\lastpage@lastpage{\thepage}}%
- \lastpage@makeHy%
+ \gdef\lastpage@Hy{}%
+ \IfPackageLoadedT{hyperref}{\ifHy@pageanchor\lastpage@makeHy\fi}%
\protected@iwrite\@auxout{}{%
\string\gdef\string\lastpage@lastpageHy{\lastpage@Hy}}%
% \end{macrocode}
@@ -1766,7 +1758,7 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% 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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% 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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% 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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% 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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% \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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% 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 @@ To see the content of the \texttt{enddocument/afterlastpage}-hook
% |\@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@makeHy|.
+% \item Documentation update.
+% \end{Version}
% \end{History}
% \bigskip
%
diff --git a/Master/texmf-dist/source/latex/lastpage/lastpage.ins b/Master/texmf-dist/source/latex/lastpage/lastpage.ins
index 8039ce59c17..2123ae2ad3e 100644
--- a/Master/texmf-dist/source/latex/lastpage/lastpage.ins
+++ b/Master/texmf-dist/source/latex/lastpage/lastpage.ins
@@ -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.
diff --git a/Master/texmf-dist/tex/latex/lastpage/lastpage.sty b/Master/texmf-dist/tex/latex/lastpage/lastpage.sty
index e336eafd1e0..4636d199305 100644
--- a/Master/texmf-dist/tex/latex/lastpage/lastpage.sty
+++ b/Master/texmf-dist/tex/latex/lastpage/lastpage.sty
@@ -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
diff --git a/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty b/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty
index 41a46457a52..8cf970bccbd 100644
--- a/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty
+++ b/Master/texmf-dist/tex/latex/lastpage/lastpage209.sty
@@ -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.
%%
diff --git a/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty b/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty
index e1115cdc44d..b5839f6fe00 100644
--- a/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty
+++ b/Master/texmf-dist/tex/latex/lastpage/lastpage2e.sty
@@ -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@t@r\fmtversion{2024/06/01}{\RequirePackage{lastpagemodern}}{%
\RequirePackage{lastpageclassic}}
diff --git a/Master/texmf-dist/tex/latex/lastpage/lastpageclassic.sty b/Master/texmf-dist/tex/latex/lastpage/lastpageclassic.sty
index 930dbd93ebf..d2ee79f0c38 100644
--- a/Master/texmf-dist/tex/latex/lastpage/lastpageclassic.sty
+++ b/Master/texmf-dist/tex/latex/lastpage/lastpageclassic.sty
@@ -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"
diff --git a/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty b/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty
index 1c1f94b0582..c5c19bbba42 100644
--- a/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty
+++ b/Master/texmf-dist/tex/latex/lastpage/lastpagemodern.sty
@@ -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@makeHy}{%
- \gdef\lastpage@Hy{}%
- \IfPackageLoadedT{hyperref}{%
- \ifHy@pageanchor%
- \def\lastpage@Hptest{Doc-Start}%
- \ifx\lastpage@Hptest\@currentHpage\relax%
- \gdef\lastpage@Hy{\@currentHpage}%
- \else%
- \edef\lastpage@Hptest{\@currentHpage}%
- \ifx\lastpage@Hptest\empty\relax%
- \else%
- \def\lastpage@Hptest{page.}%
- \ifx\lastpage@Hptest\@currentHpage\relax
- \def\lastpage@Hptest{\csname @fnsymbol\endcsname \c@page }%
- \ifx\lastpage@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@lastpageHy\space is now let empty}%
- \else%
- \gdef\lastpage@Hy{\lastpage@rmpage{\@currentHpage}}%
- \ifx\lastpage@lastpageHy\empty\relax%
- \PackageWarningNoLine{lastpage}{%
- \string\@currentHpage\space is\MessageBreak%
- \meaning\@currentHpage\MessageBreak%
- not beginning with "page.",\MessageBreak%
- \string\lastpage@lastpageHy\space is now let empty}%
- \fi%
+ \def\lastpage@Hptest{Doc-Start}%
+ \ifx\lastpage@Hptest\@currentHpage\relax%
+ \gdef\lastpage@Hy{\@currentHpage}%
+ \else%
+ \edef\lastpage@Hptest{\@currentHpage}%
+ \ifx\lastpage@Hptest\empty\relax%
+ \else%
+ \def\lastpage@Hptest{page.}%
+ \ifx\lastpage@Hptest\@currentHpage\relax
+ \def\lastpage@Hptest{\csname @fnsymbol\endcsname \c@page }%
+ \ifx\lastpage@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@lastpageHy\space is now let empty}%
+ \else%
+ \gdef\lastpage@Hy{\lastpage@rmpage{\@currentHpage}}%
+ \ifx\lastpage@lastpageHy\empty\relax%
+ \PackageWarningNoLine{lastpage}{%
+ \string\@currentHpage\space is\MessageBreak%
+ \meaning\@currentHpage\MessageBreak%
+ not beginning with "page.",\MessageBreak%
+ \string\lastpage@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@iwrite\@auxout{}{%
\string\gdef\string\lastpage@lastpage{\thepage}}%
- \lastpage@makeHy%
+ \gdef\lastpage@Hy{}%
+ \IfPackageLoadedT{hyperref}{\ifHy@pageanchor\lastpage@makeHy\fi}%
\protected@iwrite\@auxout{}{%
\string\gdef\string\lastpage@lastpageHy{\lastpage@Hy}}%
\addtocounter{page}{+1}%