Sunday, May 21, 2006

设置页码格式

比如要设成“1 of 6”这种格式,代码如下:

\usepackage{fancyhdr}
\usepackage{lastpage}
\pagestyle{fancy}
\cfoot{{\footnotesize \thepage\ of \pageref{LastPage}}}
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
...
\begin{document}
...
\maketitle
...
\thispagestyle{fancy}
...
\end{document}

另,要去掉 section 标题上的序号,只需用
\section*{section title}
即可。

参考:fancyhdr

No comments:

Post a Comment

Please let me know who you are.