summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/lastpage
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-07 20:15:04 +0000
committerKarl Berry <karl@freefriends.org>2023-10-07 20:15:04 +0000
commite577cb21614559514b4fb48bbd0a9f3cbb78b467 (patch)
tree6348f730616e6c567b73ffed39c150c929e7b3ac /Master/texmf-dist/doc/latex/lastpage
parentfc869ca51ff626c9236632abd3d170e9a92c0cdc (diff)
lastpage (7oct23)
git-svn-id: svn://tug.org/texlive/trunk@68473 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/lastpage')
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/README2
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/lastpage-example.pdfbin129330 -> 130402 bytes
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex22
-rw-r--r--Master/texmf-dist/doc/latex/lastpage/lastpage.pdfbin439739 -> 447012 bytes
4 files changed, 12 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/lastpage/README b/Master/texmf-dist/doc/latex/lastpage/README
index a22d2498f1c..db1183b2e4f 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, 2023-07-24, v2.0c
+README for lastpage package, 2023-10-06, v2.0d
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 547293f4010..fa09069a0a6 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 f11a6ecd723..92b2bd1f13e 100644
--- a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex
+++ b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex
@@ -9,7 +9,7 @@
%% This is a generated file.
%%
%% Project: lastpage
-%% Version: 2023-07-24 v2.0c
+%% Version: 2023-10-06 v2.0d
%% Info: Refers to last page's name
%%
%% Copyright (C) 2010 - 2023 by
@@ -40,7 +40,8 @@
%%
%% While this package allows for things like "Page slash thepage{} of slash pageref{LastPage}"
%% to get "Page 7 of 9" or "Page VII of IX",
-%% the NUMBER of pages is nowadays available via slash @abspage@last from the kernel,
+%% the NUMBER of pages is nowadays available from the kernel
+%% (slash @abspage@last, slash thetotalpages, slash 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!
%%
@@ -79,7 +80,7 @@
pdfpagelayout=SinglePage%
}
\@ifpackageloaded{hyperref}{}{\usepackage{url}[2013/09/16]}% v3.4
-\usepackage{lastpage}[2023-07-24]% v2.0c
+\usepackage{lastpage}[2023-10-06]% v2.0d
\renewcommand{\@evenfoot}{%
\normalsize\slshape \today\hfil \upshape %
page \thepage{} of \pageref{LastPage}}
@@ -91,7 +92,7 @@
\section*{Example for lastpage}
\markboth{Example for lastpage}{Example for lastpage}
This example demonstrates the use of package\newline
-\textsf{lastpage}, v2.0c as of 2023-07-24 (HMM; JPG).\newline
+\textsf{lastpage}, v2.0d as of 2023-10-06 (HMM; JPG).\newline
The package takes no options.\newline
For more details please see the documentation!\newline
@@ -116,7 +117,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 2023.003.20244:
+for the display of the pdf (in Adobe Acrobat Reader 2023.006.20320:
Edit $>$ Preferences $>$ Page Display $>$
Page Content and Information: Use logical page numbers)!\newline
@@ -164,7 +165,7 @@ The code does not generally work even without hyperref.
\addtocounter{page}{8}
\edef\here{\thepage}
\makeatletter
-\ifx\here\lastpage@lastpage\relax foo \else bar \fi
+\ifx\here\lastpage@lastpage\relax foo\else bar\fi
\makeatother
\end{document}
\end{verbatim}
@@ -178,7 +179,8 @@ Page \thepage{} is (not) page \makeatletter\lastpage@lastpage\makeatother.
prints:\newline
Page \thepage{} is (not) page \makeatletter\lastpage@lastpage\makeatother.
\newline
-This can be broken for example by \verb|\pagenumbering{fnsymbol}|.
+This can be broken for example by \verb|\pagenumbering{fnsymbol}|
+(because then \verb|\edef\here{\thepage}| does not work).
\newpage
\noindent The page (\verb|\thepage|): \thepage\newline
@@ -188,23 +190,21 @@ Last page's name (LastPage): \pageref{LastPage}
With modern \LaTeX{} it is possible to say:
\begin{quote}
\begin{verbatim}
-\NeedsTeXFormat{LaTeX2e}[2022-11-01]
+\NeedsTeXFormat{LaTeX2e}[2023-06-01]
\documentclass{article}
\pagenumbering{fnsymbol}
\begin{document}
\addtocounter{page}{8}%
-\makeatletter%
\ExplSyntaxOn%
\xdef\test{\numexpr\the\g_shipout_readonly_int +1\relax}%
\ExplSyntaxOff%
-\ifnum \@abspage@last = \test\relax%
+\ifnum\PreviousTotalPages=\test\relax%
This is the last page.%
\else%
This is not the last page
(or it is but \LaTeX{} needs another compilation run
to detect this).
\fi
-\makeatother
\end{document}
\end{verbatim}
\end{quote}
diff --git a/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf b/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
index 064afaac10b..5b6d0028228 100644
--- a/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
+++ b/Master/texmf-dist/doc/latex/lastpage/lastpage.pdf
Binary files differ