我正在尝试按照我的大学格式为我的论文进行适当的分页。根据该格式,罗马数字应该从致谢页开始直到目录,然后是阿拉伯数字。致谢和之后的页面应该在目录中。我已经这样做了,但不知何故它给出了相同的“我“目录前 3 页。我正在分享我的文档的初始代码和包。
\documentclass[preprint,authoryear,12pt]{report}
\usepackage[final]{pdfpages}
\newenvironment{Acknowledgements}
{\renewcommand\abstractname{\LARGE{\textit{Acknowledgements}}}\begin{abstract}} {\end{abstract}}
\makeatletter
\newcommand\frontmatter{%
\cleardoublepage
%\@mainmatterfalse
\pagenumbering{Roman}}
\newcommand\mainmatter{%
\cleardoublepage
% \@mainmattertrue
\pagenumbering{arabic}}
\makeatother
%%%%-----------Thesis starts here--------------------------------%%%%%%%
\begin{document}
\frontmatter{
\addcontentsline{toc}{chapter}{Acknowledgements}
\begin{Acknowledgements}
\thispagestyle{plain}
\begin{quote}
\small{{ I acknowledge who ever answers my question}}
\end{quote}
\end{Acknowledgements}
\clearpage
%%%%%%This is where i start counter for number%%%%%%
\newpage
\addcontentsline{toc}{chapter}{Abstract}
\begin{abstract}
\thispagestyle{plain}
Its abstract
\end{abstract}
%%%%---Abstract Urdu starts here%%%
\addcontentsline{toc}{chapter}{Abstract in Urdu}
\includepdf[pages=-,pagecommand={},width=\textwidth]{UrduAbstract.pdf}
%%%%Till this page I get "I" on my pdf%%%%
\cleardoublepage
\tableofcontents
\pagebreak
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\pagebreak
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
}
\mainmatte{}
\end{document}
答案1
在documentclass
book
可能的情况下,使用\frontmatter
和\mainmatter
。 之后的页面\frontmatter
默认使用小写罗马数字编号,其余页面使用阿拉伯数字编号。
\documentclass{book}
\usepackage{lipsum}
\begin{document}
\frontmatter
\pagenumbering{Roman} %Add this if you want I,II,III... instead of i,ii,iii...
\chapter*{Preliminaries}
\lipsum[1]
\clearpage
\lipsum[2]
\clearpage
\lipsum[3]
\mainmatter
\chapter*{Main Content}
\lipsum[1]
\clearpage
\lipsum[2]
\clearpage
\end{document}