LaTeX forum ⇒ Page LayoutPage X out Y in footer

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Tolaso
Posts: 31
Joined: Tue Dec 20, 2016 12:23 am

Page X out Y in footer

Postby Tolaso » Mon Aug 28, 2017 9:54 pm

Suppose that one of my documents has 21 pages. I want to display in the footer Page X of 21. How can I do that? I have read some commands in tex.stackexchange.com but unfortunately none of those worked for me.

For example

  1. \cfoot{\thepage\ of \pageref{LastPage}}


of the fancyhdr package does not compile.

Tags:

rais
Posts: 149
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Mon Aug 28, 2017 10:05 pm

you need to load the lastpage package for \pageref{LastPage} to work, AFAIR.

KR
Rainer


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 2 guests