lot 和 lof 在目录中的页码有误

lot 和 lof 在目录中的页码有误

我正在使用经过修改的 isu 论文类。目录中的 lot 和 lof 页码错误,如下所示。所有其他页码均正确。请帮助我

在此处输入图片描述

% Template file for a standard thesis
\documentclass[11pt,a4paper,justified]{isuthesis}
\usepackage{pdftexcmds}
\usepackage[T1]{fontenc}
\usepackage[cc]{titlepic}
\usepackage{ragged2e} 
\usepackage[pdftex]{graphicx}
% Standard, old-style thesis
\usepackage{isutraditional}   \chaptertitle
% Old-style, thesis numbering down to subsubsection
\alternate
\usepackage{etoolbox}
\usepackage{rotating}
% Bibliography without numbers or labels
\usepackage{natbib}

\bibliographystyle{plain}
%\includeonly{titletoc,chapter1}
%Optional Package to add PDF bookmarks and hypertext links


\usepackage[hypertexnames=true,linktocpage=false]{hyperref}

\hypersetup{colorlinks=true,linkcolor=blue,anchorcolor=blue,citecolor=blue,filecolor=blue,urlcolor=blue,bookmarksnumbered=true,pdfview=FitB}
%\usepackage{fancyhdr} 
%\cfoot{\thepage}
\renewcommand{\figurename}{Fig.}
\addtocontents{toc}{{Contents}\hfill{Page No.}\par}
\addtocontents{lot}{{No.}\hfill{Title}~\hfill{Page No.}\par}
\addtocontents{lof}{{No.}\hfill{Title}~\hfill{Page No.}\par}
\addtocontents{toc}{\def\protect\@chapapp{}} \cleardoublepage \phantomsection
\addcontentsline{toc}{chapter}{LIST OF TABLES}
\pdfbookmark[1]{TABLE OF CONTENTS}{table}
\cleardoublepage \phantomsection \addcontentsline{toc}{chapter}{LIST OF FIGURES}
\addtocontents{toc}{\def\protect\@chapapp{CHAPTER\ }}
%Optional Acknowledgements
\cleardoublepage \phantomsection
\chead{}
\cfoot{\thepage}
\DeclareGraphicsExtensions{.jpg,.pdf,.mps,.png,.eps,.tif}
\begin{document}


%\cfoot{\thepage}
%\chead{}
\include{Preface/titlepage}
% Optional thesis dedication
\include{Preface/dedication}
\include{Preface/certificate}
% Table of Contents, List of Tables and List of Figures

\tableofcontents


\listoftables

\listoffigures
% Comment out the next line if NOT using chaptertitle

\include{Preface/acknowl}
%Optional thesis abstract

\include{Preface/abstract}
\makeatletter
\patchcmd{\@makechapterhead}{~~~#1}{\\ \MakeUppercase{#1}}{}{}
\patchcmd{\section}{\centering\large\bfseries}{\large\bfseries\MakeUppercase}


\makeatother
\newpage
%\clearpage
\pagenumbering{arabic}

\include{Body/chapter1}
\include{Body/chapter2}
\include{Body/chapter3}
\include{Body/chapter4}
\include{Body/chapter5}
\include{Appendix/appendix1}
\include{Appendix/appendix2}

%\include{Reference/bibtex}
\include{Reference/biblio}
\end{document}

请从此链接访问文件夹

我已经使用过\usepackage{tocbibind},但现在目录显示如下,致谢应从第 i 页开始,目录中不需要术语“ 目录 ”在此处输入图片描述

以及类似参考文献

在此处输入图片描述

答案1

(此评论的空间太小)

仔细观察,问题在于这些行作为开始(之前\begin{document}

 \cleardoublepage \phantomsection
\addcontentsline{toc}{chapter}{LIST OF TABLES}
\pdfbookmark[1]{TABLE OF CONTENTS}{table}
\cleardoublepage \phantomsection \addcontentsline{toc}{chapter}{LIST OF FIGURES}
\addtocontents{toc}{\def\protect\@chapapp{CHAPTER\ }}

这意味着这些条目将获得文档开始的页码,从而实现您所看到的行为。

这些线条当然应该伴随\listoffigures

但它不能因为\addtocontents{toc}{\def\protect\@chapapp{CHAPTER\ }}在目录条目中添加了“章节”而变得如此。

我的建议:请查看该tocbibind包(用于自动将 lot 和 lof 包含到目录中)和tocloft用于配置目录的包(它具有为章节条目添加前缀的内置功能)


编辑:我可以看到\@chapapp目录中的条目来自该类。如果用户想将 LOF 和 LOT 添加到目录中,那么这样做并不好。您需要移动

\addtocontents{toc}{\def\protect\@chapapp{CHAPTER\ }}

\listoffigures


修改 2:该类无法很好地工作,tocbibind因此我们必须手动操作。这对我来说有效

\tableofcontents

\cleardoublepage \phantomsection
\addcontentsline{toc}{chapter}{LIST OF TABLES}
\listoftables

\cleardoublepage \phantomsection
\addcontentsline{toc}{chapter}{LIST OF FIGURES}
\listoffigures
% Comment out the next line if NOT using chaptertitle

\addtocontents{toc}{\def\protect\@chapapp{CHAPTER\ }}

注意最后一行的位置,它必须从序言移到这里。

相关内容