目錄頁碼錯誤

目錄頁碼錯誤

對於下面的 MWE:

\title{TITLE} 

\documentclass[a4paper,11pt,twoside]{report}
\usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\usepackage{setspace}
\begin{document}

%%%%%%%%%%%%%%%
% TITLE PAGE %%%%%
%%%%%%%%%%%%%%%
\maketitle %Title page

%make an empty page
\newpage
\thispagestyle{empty}
\mbox{}
%%%%%%%%%%%%%%%

\begin{abstract}
\noindent
abstract
\end{abstract}

\newpage

\thispagestyle{empty} %Empty page

\begin{center}
\vspace*{10cm}
Some acknowledgment
\end{center}

\vspace*{3.5cm} %space so that page stays empty

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For header and footers %%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancyplain}
% Clear the default
\fancyhead{}
\fancyfoot{}
\renewcommand{\footrulewidth}{0.4pt}
\fancyfoot[CO,CE]{\thepage}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% CONTENTS PAGE 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*\contentsname{Table of Contents}
\setcounter{page}{1}
\begin{spacing}{1.0}
\pagenumbering{Roman}
\tableofcontents
\end{spacing}
\newpage

\end{document}

為什麼扉頁是從 II 開始而不是 I ?在我添加該部分之前一切都很好%make an empty page。有任何想法嗎 ?

答案1

放入\clearpage

\renewcommand*\contentsname{Table of Contents}
\clearpage  %%% here
\setcounter{page}{1}

相關內容