在LaTeX中,是否有一种使用fancy pagestyle 或其他包来动态获取“第X页,共Y页”信息的方法?
使用lastpage宏包:
\usepackage{lastpage}
\usepackage{fancyhdr}
...
\cfoot{\thepage\ of \pageref{LastPage}}
将当前页码计数器\thepage
放置在总页数之前。
编辑 谢谢!我添加了fancyhdr
。
\usepackage{fancyhdr}
。 - Hamish Grubijan\usepackage{lastpage}
。添加了lastpage
导入后,它就可以工作了。 - Stanislav Pankevich