Debian Codegraph @

texmf-dist/doc/latex/lastpage/README

raw
1 README for lastpage package, 2025-08-14, v2.1h
2
3
4 TABLE OF CONTENTS
5 =================
6
7 1 Introduction
8 2 Download
9 3 Installation
10 4 Additional Packages
11 5 Authors/Maintainer
12 6 Bug Reports
13 7 Known Problems
14
15
16 1 INTRODUCTION
17 ==============
18
19 This LaTeX package puts the label LastPage at the end of the document
20 into the .aux file, allowing the user to refer to the last page
21 of a document. This might be particularly useful in places
22 like headers or footers. -
23 When more than one page numbering scheme is used, or another package
24 has output after this package, or the number of pages
25 instead of the last page's name is needed, or the page
26 numbers exceed a certain range, there might be problems,
27 which can be solved by using the pageslts package instead.
28
29 This material is published under the LPPL 1.3c: This work may be
30 distributed and/or modified under the conditions of the LaTeX Project
31 Public License, either version 1.3c of this license or (at your option)
32 any later version. This version of this license is in
33 https://www.latex-project.org/lppl/lppl-1-3c.txt
34 and the latest version of this license is in
35 https://www.latex-project.org/lppl.txt
36 and version 1.3c or later is part of all distributions of
37 LaTeX version 2005-12-01 or later.
38
39
40 2 DOWNLOAD
41 ==========
42
43 "lastpage" is available on CTAN:
44 https://ctan.org/pkg/lastpage
45
46 Also a ZIP file is provided that contains the files:
47 the manual (lastpage.pdf), the example (lastpage-example.tex),
48 the compiled example (lastpage-example.pdf),
49 driver (lastpage.drv), lastpage.dtx,
50 installation file (lastpage.ins),
51 the style files (lastpage.sty, lastpage209.sty, lastpage2e.sty,
52 lastpageclassic.sty, lastpagemodern.sty),
53 and this README, already sorted in a TDS tree:
54 https://mirror.ctan.org/install/macros/latex/contrib/lastpage.tds.zip
55
56
57 3 INSTALLATION
58 ==============
59
60 Installation with ZIP file in TDS format
61 ----------------------------------------
62 The ZIP file "lastpage.tds.zip" contains the files
63 sorted in a TDS tree. Thus you can directly unpack the
64 ZIP file inside a TDS tree.
65 See https://ctan.org/TDS-guidelines for an explanation
66 of TDS.
67 Example:
68 cd /...somewhere.../texmf
69 unzip /...downloadpath.../lastpage.tds.zip
70 Do not forget to refresh the file name database of this
71 TDS tree.
72 Example:
73 texhash /...somewhere.../texmf
74
75 Manual installation
76 -------------------
77 a) Download the lastpage files from CTAN.
78 If necessary, unpack them.
79 b) Generate the package and driver files:
80 tex lastpage.dtx
81 c) Install the files "*.sty" in your TDS tree:
82 cp lastpage.sty TDS:tex/latex/lastpage/
83 cp lastpage209.sty TDS:tex/latex/lastpage/
84 cp lastpage2e.sty TDS:tex/latex/lastpage/
85 cp lastpageclassic.sty TDS:tex/latex/lastpage/
86 cp lastpagemodern.sty TDS:tex/latex/lastpage/
87 Replace "TDS:" by the prefix of your TDS tree
88 (texmf directory).
89 d) Create the documentation, if necessary, e.g.
90 pdflatex lastpage.dtx
91 makeindex -s gind.ist lastpage.idx
92 pdflatex lastpage.dtx
93 makeindex -s gind.ist lastpage.idx
94 pdflatex lastpage.dtx
95 e) Update the databases if necessary, e.g. for TeXLive
96 texhash or mktexlsr.
97 f) Create the lastpage-example.pdf, if necessary, e.g.
98 pdflatex lastpage-example.tex
99 pdflatex lastpage-example.tex
100 pdflatex lastpage-example.tex
101 g) Copy the documentation files to
102 "TDS:doc/latex/lastpage/":
103 README, lastpage.pdf, lastpage-example.tex,
104 lastpage-example.pdf.
105
106
107 4 ADDITIONAL PACKAGES
108 =====================
109
110 The lastpage package does not depend on other packages,
111 but the lastpage.dtx does (for unpacking and constructing
112 the documentation), see "7.1 Downloads" in the manual
113 https://mirror.ctan.org/macros/latex/contrib/lastpage/lastpage.pdf
114
115
116 5 AUTHORS/MAINTAINER
117 ====================
118
119 * Author of the original main code:
120 Jeffrey P. Goldberg (Thanks!)
121 * Author of the recent package and current maintainer:
122 H.-Martin Münch
123
124
125 6 BUG REPORTS
126 =============
127
128 A bug report should contain:
129 * Comprehensive problem description. This includes error or
130 warning messages.
131 * \errorcontextlines=\maxdimen can be added in the
132 TeX code to get more information in TeX error messages.
133 * Minimal test file that shows the problem,
134 but does not contain any unnecessary packages and code.
135 * Used drivers/programs.
136 * Version information about used packages and programs.
137 * If you are using LaTeX, then add "\listfiles" to the document.
138 Then a list of version information is printed at the end
139 of the LaTeX run.
140 * Please no other files than the minimal test file.
141 The other files .log, .dvi, .ps, .pdf are seldom
142 necessary, so send them only on request.
143 * Please .zip or .tar.gz your file(s) before sending them!
144
145 Bug address
146 -----------
147 Bug reports can be send to the maintainer:
148 H.-Martin Münch
149 <Martin [dot] Muench [at] Uni-Bonn [dot] de>
150
151
152 7 KNOWN PROBLEMS
153 ================
154
155 In simple cases none, but otherwise a lot,
156 see chapter 3 of the documentation!