目录顺序与页面上显示的顺序不同

目录顺序与页面上显示的顺序不同

我正在用 LaTeX 写论文。我遇到了罗马数字的问题。页面上显示的数字是正确的,i, ii, iii,...但目录中的排列方式不同。就像

声明................i
语言证书.....i

\pagenumbering{roman}

\addcontentsline{toc}{chapter}{Declaration}
\cleardoublepage
\chapter*{Declaration}
i am ....
\addcontentsline{toc}{chapter}{Language Correctness Certificate}
\cleardoublepage
\chapter*{Language Correctness Certificate}
i am bla bla.....
\addcontentsline{toc}{chapter}{Copyright Statement}
\cleardoublepage

\chapter*{Copyright Statement}
i am blabla....
\addcontentsline{toc}{chapter}{Acknowledgements}
\cleardoublepage

\chapter*{Acknowledgment}
i am.....
\addcontentsline{toc}{chapter}{Dedication}
\cleardoublepage
\chapter*%{Dedication}
bnn.....
\addcontentsline{toc}{chapter}{Abstract}
\cleardoublepage
\chapter*{Abstract}
....
\addcontentsline{toc}{chapter}{Table of Contents}
\cleardoublepage
\noindent
\tableofcontents
\addcontentsline{toc}{chapter}{List of Figures}
\cleardoublepage
\noindent
\listoffigures
\addcontentsline{toc}{chapter}{List of Tables}
\cleardoublepage
\noindent
\listoftables
\clearpage

答案1

\documentclass{scrbook}
\begin{document}
\frontmatter        
\addchap{Declaration}% No number but into TOC
    i am ....

\addchap{Language Correctness Certificate}
    i am bla bla.....

\mainmatter 
\tableofcontents

\end{document}

在此处输入图片描述

答案2

\addcontentsline之后有\chapter*- 否则它将显示来自上一个内容的页码

\documentclass{book}

\begin{document}

\pagenumbering{roman}


\cleardoublepage
\chapter*{Declaration}
\addcontentsline{toc}{chapter}{Declaration}
i am ....

\cleardoublepage
\chapter*{Language Correctness Certificate}
\addcontentsline{toc}{chapter}{Language Correctness Certificate}
i am bla bla.....

\cleardoublepage
\noindent
\tableofcontents


\end{document}

相关内容