我正在使用以下包:
http://www.sunilpatel.co.uk/thesis-template/
我在设置整篇论文的页码时遇到了麻烦。我想在除第 1 页(标题页)之外的所有文档中显示阿拉伯语页码。问题是我当前的配置不显示论文第 1 章之前的第一页中的页码,也不显示所有章节的第一章页中的页码。
从提供的文件中,以下是我根据自己的需要修改的内容:
在 main.tex 中:
\documentclass[
11pt, % The default document font size, options: 10pt, 11pt, 12pt
%twoside, % Two side (alternating margins) for binding by default,
oneside, %uncomment to switch to one side
english, % ngerman for German
%singlespacing, % Single line spacing, alternatives: onehalfspacing or
%onehalfspacing,
doublespacing,
%draft, % Uncomment to enable draft mode (no pictures, no links, overfull hboxes indicated)
nolistspacing, % If the document is onehalfspacing or doublespacing, uncomment this to set spacing in lists to single
%liststotoc, % Uncomment to add the list of figures/tables/etc to the table of contents
%toctotoc, % Uncomment to add the main table of contents to the table of contents
parskip, % Uncomment to add space between paragraphs
%nohyperref, % Uncomment to not load the hyperref package
headsepline, % Uncomment to get a line under the header
%chapterinoneline, % Uncomment to place the chapter title next to the number on one line
%consistentlayout, % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout
]{MastersDoctoralThesis} % The class file specifying the document
\usepackage{lastpage}
在 MastersDoctoralThesis.cls 中:
%----------------------------------------------------------------------------------------
% HEADERS AND FOOTERS
%----------------------------------------------------------------------------------------
\RequirePackage[markcase=used]{scrlayer-scrpage}
\providepairofpagestyles{thesisSimple}{%
\clearpairofpagestyles%
\automark[chapter]{chapter}
\ihead{\headmark}% Inner header
\ohead{}% Outer header}
\ofoot{\thepage\ of \pageref*{LastPage}}
}
\ifoot{}% Inner footer
%\ofoot{}% Outer footer
我为想要通过页脚实现的功能添加的关键行如下:
\usepackage{lastpage}
\ofoot{\thepage\ of \pageref*{LastPage}}
希望你们能帮助我完成这项工作!干杯。
答案1
\frontmatter
默认将页码切换为罗马体,如果不需要,可以去掉。另外,前几页的页面样式设置为,plain
如果不需要,可以去掉。页码就会显示出来。
如果你希望页码位于底部,你已经(几乎*找到了,\usepackage{lastpage} \ofoot*{\thepage\ of \pageref*{LastPage}}
使用文档的序言当然,页眉中还有页码,需要删除。使用\ohead*{}
在文件序言中。
您也可以结帐\setchapterpagestyle{thesis}
或\setchapterpagestyle{thesisSimple}
。
不要更改类文件!。