索引中的目录页码

索引中的目录页码

在我的文档中,目录中的页码是正确的,但当我单击表格列表和图片列表的超链接时,它会转到致谢页面。索引不正确。我该怎么办?我粘贴了下面的代码

\documentclass[pdftex,12pt,a4paper]{report}
\usepackage{fancyhdr}
\usepackage{overcite}
\usepackage{setspace}
\usepackage{hyperref}
\hypersetup{colorlinks,
   citecolor=blue,
  filecolor=red,
 linkcolor=blue,
 urlcolor=blue}

\begin{document}
\pagenumbering{roman}
\nonumber{\include{title}}
\setlength{\parindent}{1cm}
\setlength{\parskip}{0.5cm plus2mm minus2mm}
\setcounter{page}{2}
\include{dedication}
\include{certificate}
\include{abstract}
\fancyhead[CO]{\large{\textbf{Acknowledgement}}}
\include{ack}
\include{contents}
\include{tables}
\include{listfig}
\pagenumbering{arabic}
\fancyhf{}
\pagestyle{fancy}
\cfoot{\thepage}
\fancyhead[CO]{\large{\textbf{Chapter 1 : Introduction}}}
\include{chap1-Intro}
\fancyhead[CO]{\large{\textbf{Chapter 2 : Literature Review}}}
\include{chap2-Literature}
\fancyhead[CO]{\large{\textbf{Chapter 3 : Settlement Response of Geosynthetic Reinforced Granular fill Soft Soil}}}
\include{chap3-calculate_w}
\fancyhead[CO]{\large{\textbf{Chapter 4 : Determination of Equivalent Shear Modulus $G_e$ value for multilayer Geosynthetic System}}}
\include{chap4-equi_G}
\fancyhead[CO]{\large{\textbf{Chapter 5 : Conclusions and Scope for Future Studies}}}
\include{chap5-conclusion}
\fancyhead[CO]{\large{\textbf{Reference}}}
\include{Reference}

\end{document}

答案1

在目录中包含图片列表的“正确”方法是写

\cleardoublepage % to get the correct page in the ToC
\phantomsection  % to get a suitable anchor for hyperref
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures

更简单的方法是加载托比宾包裹:

\usepackage[nottoc]{tocbibind}

然后简单的\listoffigures命令就可以起作用了。

相关内容