在底部对页面进行编号

在底部对页面进行编号

我正在写thesis documentclass

我在每页顶部看到一行,章节标题和偶数页码。我希望页码位于页面底部,而不是像fancy我发现的包那样从页眉中删除章节标题这里

是否可以?

\documentclass[12pt,a4paper, twoside, bold]{thesis}

%\usepackage{fancyhdr} 
%\fancyhf{}
%\cfoot{\thepage}
%\pagestyle{fancy}

\begin{document}

\tableofcontents

\chapter{Test}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec cursus egestas nisl, ac tristique lorem fermentum et. In interdum massa quis odio dictum, quis sagittis felis aliquet. In viverra diam massa, eget porta ante ullamcorper vitae. Curabitur non velit mattis, scelerisque neque ut, porttitor enim. Phasellus id ipsum ipsum. Duis nec nisi sem. Duis consequat, quam eu fermentum tempor, lacus sem commodo mi, eu aliquam risus nunc et nisl.
\end{document}

答案1

这里是仅使用的完整设置fancyhdr。我根据类的字体形状和大小选择了页眉和页脚的字体形状和大小thesis

\documentclass[12pt,a4paper, twoside, bold]{thesis}
\setlength\headheight{15pt}
\usepackage{fancyhdr}
\fancyhf{}
\fancyhead[CE]{\small\slshape\leftmark}
\fancyhead[CO]{\small\slshape\rightmark}
\fancyfoot[CE,CO]{\small\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

\pagestyle{fancy}

\begin{document}
\frontmatter
\tableofcontents
\chapter*{Preface}
\addcontentsline{toc}{chapter}{Preface}
\markboth{Preface}{}
Some preface
\mainmatter
\chapter{Test}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec cursus egestas nisl, ac tristique lorem fermentum et. In interdum massa quis odio dictum, quis sagittis felis aliquet. In viverra diam massa, eget porta ante ullamcorper vitae. Curabitur non velit mattis, scelerisque neque ut, porttitor enim. Phasellus id ipsum ipsum. Duis nec nisi sem. Duis consequat, quam eu fermentum tempor, lacus sem commodo mi, eu aliquam risus nunc et nisl.
\clearpage
Some text
\end{document}

相关内容