Debian Codegraph @

texmf-dist/source/latex/lastpage/lastpage.ins

raw
1 %%
2 %% This is file `lastpage.ins',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lastpage.dtx (with options: `install')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: lastpage
12 %% Version: 2025-08-14 v2.1h
13 %% Info: Refers to last page's name
14 %%
15 %% Copyright (C) 2010 - 2025 by
16 %% H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
17 %% Portions of code copyrighted by other people as marked.
18 %%
19 %% This work may be distributed and/or modified under the
20 %% conditions of the LaTeX Project Public License, either
21 %% version 1.3c of this license or (at your option) any later
22 %% version. This version of this license is in
23 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
24 %% and the latest version of this license is in
25 %% https://www.latex-project.org/lppl.txt
26 %% and version 1.3c or later is part of all distributions of
27 %% LaTeX version 2005-12-01 or later.
28 %%
29 %% This work has the LPPL maintenance status "maintained".
30 %%
31 %% The Current Maintainer of this work is H.-Martin Muench.
32 %%
33 %% This package was invented by Jeffrey P. Goldberg.
34 %% I thought that an enhancement was needed and therefore created the pageslts package,
35 %% https://ctan.org/pkg/pageslts. Nevertheless, for compatibility with existing
36 %% documents/packages as well as for the low amount of resources needed by the
37 %% lastpage package (no new counter!), I updated this package.
38 %% Thanks go to Jeffrey P. Goldberg for allowing me to do this.
39 %%
40 %% While this package allows for things like "Page slash thepage{} of slash pageref{LastPage}"
41 %% to get "Page 7 of 9" or "Page VII of IX",
42 %% the NUMBER of pages is nowadays available from the kernel
43 %% (slash @abspage@last, slash thetotalpages, slash PreviousTotalPages),
44 %% but with pages for example I to X and then 1 to 10, the number of pages would be "20",
45 %% while the name of the last page is "10". Decide what you need/want!
46 %%
47 %% This work consists of the main source file lastpage.dtx,
48 %% the README, and the derived files
49 %% lastpage.sty, lastpage209.sty, lastpage2e.sty,
50 %% lastpageclassic.sty, lastpagemodern.sty,
51 %% lastpage.pdf, lastpage.ins, lastpage.drv,
52 %% lastpage-example.tex, lastpage-example.pdf.
53 %%
54 %% In memoriam
55 %% Claudia Simone Barth + 1996-01-30
56 %% Tommy Muench + 2014-01-02
57 %% Hans-Klaus Muench + 2014-08-24
58 %%
59 \input docstrip.tex
60 \Msg{**********************************************************************}
61 \Msg{* Installation *}
62 \Msg{* Package: lastpage 2025-08-14 v2.1h Refers to last page's name (HMM)*}
63 \Msg{**********************************************************************}
64
65 \keepsilent
66 \askforoverwritefalse
67
68 \let\MetaPrefix\relax
69 \preamble
70
71 This is a generated file.
72
73 Project: lastpage
74 Version: 2025-08-14 v2.1h
75 Info: Refers to last page's name
76
77 Copyright (C) 2010 - 2025 by
78 H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
79 Portions of code copyrighted by other people as marked.
80
81 This work may be distributed and/or modified under the
82 conditions of the LaTeX Project Public License, either
83 version 1.3c of this license or (at your option) any later
84 version. This version of this license is in
85 https://www.latex-project.org/lppl/lppl-1-3c.txt
86 and the latest version of this license is in
87 https://www.latex-project.org/lppl.txt
88 and version 1.3c or later is part of all distributions of
89 LaTeX version 2005-12-01 or later.
90
91 This work has the LPPL maintenance status "maintained".
92
93 The Current Maintainer of this work is H.-Martin Muench.
94
95 This package was invented by Jeffrey P. Goldberg.
96 I thought that an enhancement was needed and therefore created the pageslts package,
97 https://ctan.org/pkg/pageslts. Nevertheless, for compatibility with existing
98 documents/packages as well as for the low amount of resources needed by the
99 lastpage package (no new counter!), I updated this package.
100 Thanks go to Jeffrey P. Goldberg for allowing me to do this.
101
102 While this package allows for things like "Page slash thepage{} of slash pageref{LastPage}"
103 to get "Page 7 of 9" or "Page VII of IX",
104 the NUMBER of pages is nowadays available from the kernel
105 (slash @abspage@last, slash thetotalpages, slash PreviousTotalPages),
106 but with pages for example I to X and then 1 to 10, the number of pages would be "20",
107 while the name of the last page is "10". Decide what you need/want!
108
109 This work consists of the main source file lastpage.dtx,
110 the README, and the derived files
111 lastpage.sty, lastpage209.sty, lastpage2e.sty,
112 lastpageclassic.sty, lastpagemodern.sty,
113 lastpage.pdf, lastpage.ins, lastpage.drv,
114 lastpage-example.tex, lastpage-example.pdf.
115
116 In memoriam
117 Claudia Simone Barth + 1996-01-30
118 Tommy Muench + 2014-01-02
119 Hans-Klaus Muench + 2014-08-24
120
121 \endpreamble
122 \let\MetaPrefix\DoubleperCent
123
124 \generate{%
125 \file{lastpage.ins}{\from{lastpage.dtx}{install}}%
126 \file{lastpage.drv}{\from{lastpage.dtx}{driver}}%
127 \usedir{tex/latex/lastpage}%
128 \file{lastpage.sty}{\from{lastpage.dtx}{package}}%
129 \file{lastpage209.sty}{\from{lastpage.dtx}{lastpage209}}%
130 \file{lastpage2e.sty}{\from{lastpage.dtx}{lastpage2e}}%
131 \file{lastpageclassic.sty}{\from{lastpage.dtx}{lastpageclassic}}%
132 \file{lastpagemodern.sty}{\from{lastpage.dtx}{lastpagemodern}}%
133 \usedir{doc/latex/lastpage}%
134 \file{lastpage-example.tex}{\from{lastpage.dtx}{example}}%
135 }
136
137 \catcode32=13\relax% active space
138 \let =\space%
139 \Msg{************************************************************************}
140 \Msg{*}
141 \Msg{* To finish the installation you have to move the following}
142 \Msg{* file into a directory searched by TeX:}
143 \Msg{*}
144 \Msg{* lastpage.sty, lastpage209.sty, lastpage2e.sty,}
145 \Msg{* lastpageclassic.sty, and lastpagemodern.sty}
146 \Msg{*}
147 \Msg{* To produce the documentation run the file `lastpage.drv'}
148 \Msg{* through (pdf)LaTeX, e.g.}
149 \Msg{* pdflatex lastpage.drv}
150 \Msg{* makeindex -s gind.ist lastpage.idx}
151 \Msg{* pdflatex lastpage.drv}
152 \Msg{* makeindex -s gind.ist lastpage.idx}
153 \Msg{* pdflatex lastpage.drv}
154 \Msg{*}
155 \Msg{* At least three runs are necessary e.g. to get the}
156 \Msg{* references right!}
157 \Msg{*}
158 \Msg{* Happy TeXing!}
159 \Msg{*}
160 \Msg{************************************************************************}
161
162 \endbatchfile
163 \endinput
164 %%
165 %% End of file `lastpage.ins'.