Debian Codegraph @

texmf-dist/doc/latex/pageslts/README

raw
1 README for pageslts package, 2025-08-14, v2.0g
2
3
4 TABLE OF CONTENTS
5 =================
6
7 1 Introduction
8 2 Download
9 3 Installation
10 4 Additional Packages
11 5 Package Compatibility
12 6 Author/Maintainer
13 7 Bug Reports
14 8 Known Problems
15
16
17 1 INTRODUCTION
18 ==============
19
20 This package puts the labels LastPage
21 (\AddToHook{enddocument/afterlastpage}, formerly
22 \AtEndDocument) and VeryLastPage (also
23 \AddToHook{enddocument/afterlastpage}, but formerly
24 \AfterLastShipout) into the .aux file,
25 allowing the user to refer to the last page of a document.
26 This might be particularly useful in places like headers or
27 footers.
28 When more than one page numbering scheme is used, these
29 references do not give the total number of pages. For this
30 case the label LastPages is introduced. Additionally,
31 at the last page of each page numbering scheme a label
32 pagesLTS.<numbering scheme> is placed, where
33 <numbering scheme> is e.g. arabic, roman, Roman, alph,
34 Alph, gobble, or silly (requiring the sillypage package).
35 For fnsymbol, gobble, and silly please use
36 \lastpageref{pagesLTS.fnsymbol},
37 \lastpageref{pagesLTS.gobble}, \lastpageref{pagesLTS.silly}
38 instead of \pageref{pagesLTS.fnsymbol},
39 \pageref{pagesLTS.gobble}, \pageref{pagesLTS.silly}.
40 When the same numbering scheme is used twice,
41 the page numbers are either reset to one or
42 continued automatically, depending on the option given when
43 the package is called. The command \theCurrentPage prints
44 the current total/absolute page number - in contrast to
45 \thepage, which gives only the page name in the current page
46 numbering scheme. \theCurrentPageLocal gives the current
47 number of pages in the current page numbering scheme.
48 \thepage and \theCurrentPageLocal are different e.g. when
49 \addtocounter{page}{...} or \setcounter{page}{...} were
50 used.
51 At the first page of the document a label pagesLTS.0 is
52 created. This label can be referred to, too. Further labels
53 are provided for special cases.
54 The alphalph package is supported, i.e. page numbers alph
55 or Alph > 26 and fnyambol > 9 can be used (with according
56 options set). Even zero and negative page numbers can be
57 used with arabic, alph, Alph, roman, Roman, fnsymbol,
58 and gobble page numbering (with alphalph package and
59 according options).
60 \pageref* and \pageref*, for using hyperref but suppressing
61 links, are supported.
62
63 This material is published under the LPPL 1.3c: This work
64 may be distributed and/or modified under the conditions of
65 the LaTeX Project Public License, either version 1.3c
66 of this license or (at your option) any later version.
67 This version of this license is in
68 https://www.latex-project.org/lppl/lppl-1-3c.txt
69 and the latest version of this license is in
70 https://www.latex-project.org/lppl.txt
71 and version 1.3c or later is part of all distributions of
72 LaTeX version 2005-12-01 or later.
73
74
75 2 DOWNLOAD
76 ==========
77
78 "pageslts" is available on CTAN:
79 https://ctan.org/pkg/pageslts
80
81 Also a ZIP file is provided that contains the files:
82 the manual (pageslts.pdf),
83 the example (pageslts-example.tex),
84 the compiled example (pageslts-example.pdf),
85 driver (pageslts.drv), pageslts.dtx,
86 installation file (pageslts.ins),
87 the style file (pageslts.sty),
88 and this README, already sorted in a TDS tree:
89 https://mirror.ctan.org/install/macros/latex/contrib/pageslts.tds.zip
90
91
92 3 INSTALLATION
93 ==============
94
95 Installation with ZIP file in TDS format
96 ----------------------------------------
97 The ZIP file "pageslts.tds.zip" contains the files
98 sorted in a TDS tree. Thus you can directly unpack the
99 ZIP file inside a TDS tree.
100 See https://ctan.org/TDS-guidelines for an explanation
101 of TDS.
102 Example:
103 cd /...somewhere.../texmf
104 unzip /...downloadpath.../pageslts.tds.zip
105 Do not forget to refresh the file name database of this
106 TDS tree.
107 Example:
108 texhash /...somewhere.../texmf
109
110 Manual installation
111 -------------------
112 a) Download the pageslts files from CTAN.
113 If necessary, unpack them.
114 b) Check for old `pagesLTS.sty' at other locations in your
115 TeX installation and delete them (or back them up,
116 but in a way TeX does NOT find them automatically).
117 c) Generate the package and driver files, if necessary:
118 tex pageslts.dtx
119 d) Install the file "pageslts.sty" in your TDS tree:
120 cp pageslts.sty TDS:tex/latex/pageslts/
121 Replace "TDS:" by the prefix of your TDS tree
122 (texmf directory).
123 e) Create the documentation, if necessary, e.g.
124 pdflatex pageslts.dtx
125 makeindex -s gind.ist pageslts.idx
126 pdflatex pageslts.dtx
127 makeindex -s gind.ist pageslts.idx
128 pdflatex pageslts.dtx
129 f) Update the databases, if necessary, e.g. for TeXLive
130 texhash or mktexlsr.
131 g) Create the pageslts-example.pdf, if necessary, e.g.
132 pdflatex pageslts-example.tex
133 pdflatex pageslts-example.tex
134 pdflatex pageslts-example.tex
135 h) Copy the documentation files to
136 "TDS:doc/latex/pageslts/":
137 README, pageslts.pdf, pageslts-example.tex,
138 pageslts-example.pdf.
139
140
141 4 ADDITIONAL PACKAGES
142 =====================
143
144 The pageslts.sty for LaTeX2e (i.e. all documents using the
145 pageslts package) requires:
146 - TeXFormat LaTeX2e, 2025-06-01 or newer
147 - package undolabl, https://ctan.org/pkg/undolabl
148 - if any of the options alphMult, AlphMulti, or fnsymbolmult
149 is used: package alphalph, https://ctan.org/pkg/alphalph
150
151 The pageslts-example.tex requires the same files as all
152 documents using the pageslts package, and additionally:
153 - class article, from classes.dtx: https://ctan.org/pkg/classes
154 - package alphalph, https://ctan.org/pkg/alphalph
155 - package lipsum, https://ctan.org/pkg/lipsum
156 - package showkeys, https://ctan.org/pkg/showkeys
157 - package hyperref, https://ctan.org/pkg/hyperref
158 - package pageslts, https://ctan.org/pkg/pageslts
159 (Well, it is the example file for this package, and because
160 you are reading the README for the pageslts package,
161 it can be assumed that you already have some version of it
162 - is it the current one?)
163 which again load other packages (see the result of the
164 \listfiles command in the log-file of the example).
165
166 Also the pageslts.dtx loads other packages
167 (for unpacking and constructing the documentation),
168 see "7.1 Downloads" in the manual
169 https://mirror.ctan.org/macros/latex/contrib/pageslts/pageslts.pdf
170
171
172 5 PACKAGE COMPATIBILITY
173 =======================
174
175 This package really does not work with an old LaTeX format
176 without hooks, or without e-TEX, or with a pagesLTS package,
177 or with version 2.0 from 1992 of the endfloats package, or
178 hyperref from 2015, or _*ANCIENT*_ versions of lastpage or
179 turnthepage and so on.
180 It requires a recent version of the undolabl package,
181 https://ctan.org/pkg/undolabl.
182
183
184 6 AUTHOR/MAINTAINER
185 =====================
186
187 H.-Martin Münch
188
189
190 7 BUG REPORTS
191 ==============
192
193 A bug report should contain:
194 * Comprehensive problem description. This includes error or
195 warning messages.
196 * \errorcontextlines=\maxdimen can be added in the
197 TeX code to get more information in TeX error messages.
198 * Minimal test file that shows the problem,
199 but does not contain any unnecessary packages and code.
200 * Used drivers/programs.
201 * Version information about used packages and programs.
202 * If you are using LaTeX, then add "\listfiles" to the document.
203 Then a list of version information is printed at the end
204 of the LaTeX run.
205 * Please no other files than the minimal test file.
206 The other files .log, .dvi, .ps, .pdf are seldom
207 necessary, so send them only on request.
208 * Please .zip or .tar.gz your file(s) before sending them!
209
210 Bug address
211 -----------
212 Bug reports can be send to the maintainer:
213 H.-Martin Münch
214 <Martin [dot] Muench [at] Uni-Bonn [dot] de>
215
216
217 8 KNOWN PROBLEMS
218 ================
219
220 except those already mentioned under point 5 above: none,
221 but see chapter 3 of the documentation.