Page LayoutFirst page# and last page number?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

First page# and last page number?

Post by bkarpuz »

Dear all,

I wonder if there is a command to retrieve the first and the last page numbers?

thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

First page# and last page number?

Post by localghost »

You could refer to the first page with the \pageref command with a label from which you know is surely set on the first page. The lastpage package works similar for the last page.


Best regards
Thorsten¹
Post Reply