开发者

Page X of Y in LaTeX Footer

开发者 https://www.devze.com 2023-01-25 22:42 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消