GeneralAbout page numbers

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

About page numbers

Post by bkarpuz »

Dear LC members,

My document consists of following structure:
Internal covers, 2 pages (no page numbers)
Front matter, 6 pages (i--vi, roman type page numbers)
Mathematical parts, 73 pages (1--73, arabic type page numbers)

How can I refer the number 73 in my thesis?

Thanks.
bkarpuz
Last edited by bkarpuz on Wed May 25, 2011 2:28 am, edited 1 time in total.

Recommended reading 2024:

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

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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

About page numbers

Post by meho_r »

You can load lastpage package and use \pageref{LastPage} command.

Code: Select all

\documentclass{book}

\usepackage[english]{babel}
\usepackage{blindtext}% to generate dummy text

\usepackage{lastpage}

\begin{document}

\frontmatter

Test, \pageref{LastPage}

\Blinddocument

\mainmatter

\Blinddocument

\end{document}
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

About page numbers

Post by bkarpuz »

meho_r wrote:You can load lastpage package and use \pageref{LastPage} command.
...
Thanks it works fine.
Post Reply