我正在使用论文模板,但问题是我需要从标题页开始一直到论文的连续阿拉伯数字编号。但它在第 1 章重置。这是我对调用章节的主要部分所做的
\documentclass[a4paper,11pt,times,authoryear,oneside,print,PageStyleII]{Classes/PhDThesisPSnPDF}
\usepackage{setspace}
\input{Preamble/preamble}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ************************ Thesis Information & Meta-data **********************
% Thesis title and author information, refernce file for biblatex
\input{thesis-info}
% ******************************** Front Matter ********************************
\begin{document}
\frontmatter
\let\oldthispagestyle=\thispagestyle % If we want to see a page number.
\def\thispagestyle#1{} % If we want to see a page number.
\cleardoublepage
\pagenumbering{arabic}
\makeatletter
\renewenvironment{titlepage}
\begin{titlepage}
\maketitle
\end{titlepage}
\include{Dedication/dedication}
\include{Declaration/declaration}
\include{Acknowledgement/acknowledgement}
\include{Abstract/abstract}`
% *********************** Adding TOC and List of Figures ***********************
\tableofcontents
\listoffigures
\listoftables
% ******************************** Main Matter *********************************
\mainmatter
\input{Chapter1/chapter1}
\include{Chapter2/chapter2}
\include{Chapter3/chapter3}
\include{Chapter4/chapter4}
\include{Chapter5/chapter5}
%\include{Chapter6/chapter6}
%\include{Chapter7/chapter7}
% ********************************** Bibliography ******************************
\begin{spacing}{0.9}
\bibliographystyle{plainnat}
\cleardoublepage
\bibliography{References/references} % Path to your References.bib file
\end{spacing}
% ********************************** Appendices ********************************
\begin{appendices} % Using appendices environment for more functunality
\include{Appendix1/appendix1}
\end{appendices}
% *************************************** Index ********************************
\printthesisindex % If index is present
\end{document}
答案1
该类基于并且修改和book
的定义就足够了。\frontmatter
\mainmatter
您用来恢复目录中页码的技巧太糟糕了!我建议换一个。
\documentclass[a4paper,11pt,times,authoryear,oneside,print,PageStyleII]{PhDThesisPSnPDF}
\usepackage{kantlipsum} % just to fill in nonsense text
% modify \frontmatter and \mainmatter to have continuous numbering
\makeatletter
\renewcommand{\frontmatter}{%
\cleardoublepage\@mainmatterfalse
}
\renewcommand{\mainmatter}{%
\cleardoublepage\@mainmattertrue
}
\makeatother
% reinstate the page number in the initial page of TOC
\AtBeginDocument{%
\addtocontents{toc}{\protect\thispagestyle{plain}}%
}
\begin{document}
\frontmatter
\chapter{Abstract}
\kant[1]
\tableofcontents
\listoffigures
\listoftables
\mainmatter
\chapter{Main}
\kant
\end{document}