Page X of Y in LaTeX Footer
Is there a way to dynamically get Page X of Y in LaTeX using the fancy pagestyl开发者_StackOverflowe or is some other package needed?
Use the lastpage package:
\usepackage{lastpage}
\usepackage{fancyhdr}
...
\cfoot{\thepage\ of \pageref{LastPage}}
will put the current page counter \thepage
, in front of the total number of pages.
Edit Thanks! I added fancyhdr
.
精彩评论