目录标题不正确

时间:2019-01-10 00:57:31

标签: latex

在我的文档中,我有很多前置部分(即目录,图形列表和目录列表)。不幸的是,当我运行LaTeX文件时,这些部分(TOC,LOF和LOT)的页码格式不正确(而其他所有东西似乎都按顺序排列)。

这些小节似乎使用默认的底部居中页码。相反,所有其他部分都使用fancyhdr中定义的标题样式。

例如在目录中没有标题和默认页面样式。相反,“简介”的格式正确,页眉中有页码。

有人知道快速解决方案吗?

我已经尝试过切换\ tableofcontents和\ addcontentsline,但这没用。

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\rhead{\thepage}
\lhead{\leftmark}

%%% >> HEAD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{01_head/titlepage.tex}
\pagenumbering{roman}

\input{01_head/abstract.tex}
\addcontentsline{toc}{section}{Abstract}


%%% >> TOC,FIGURES TABLES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\tableofcontents
\addcontentsline{toc}{section}{Table of Contents}

\newpage
\listoffigures
\addcontentsline{toc}{section}{List of Figures}

\newpage
\listoftables
\addcontentsline{toc}{section}{List of Tables}

\newpage
\setcounter{savepage}{\arabic{page}}
\pagenumbering{arabic}

%%% >> BODY
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{02_body/introduction/introduction.tex}
\input{02_body/chapter1/chapter1.tex}
\input{02_body/chapter2/chapter2.tex}
\input{02_body/chapter3/chapter3.tex}

0 个答案:

没有答案