包含目录的页面的页码样式会发生变化吗?

包含目录的页面的页码样式会发生变化吗?

我遇到了一个奇怪的问题,我的目录页上的页码与文档中其他页面的样式不同。一切都编译正常,没有错误,但目录页上的页码只有“2”,而其余页面的页码为“1/12”、“3/12”等。

有人能向我解释为什么会发生这种情况以及如何解决吗?谢谢。

要明确的是,目录中的页码是没问题的,包含目录的页面上的页码样式是有问题的。

编辑:我相信这里可以访问的文档类别: https://github.com/fuentesdt/tao-1.10.1-p3/blob/master/docs/tex/mao/aiaa-tc.cls

\documentclass[]{aiaa-tc}

\title{MAE 161C Class Project: \\ V.A.S.E. \\ 
Venus Atmospheric Sample Return}

\author{\vspace{5cm} \\ People's names(hidden b/c privacy)}

\usepackage{dcolumn}%   decimal-aligned tabular math columns
\newcolumntype{d}{D{.}{.}{-1}}
\usepackage[colorlinks]{hyperref}
\hypersetup{colorlinks = true, linkcolor  = black}
\usepackage{indentfirst}
\usepackage{graphicx}
\usepackage{float}
\usepackage[titletoc,title]{appendix}
\usepackage{tocloft} %http://ctan.org/pkg/tocloft
\setlength{\cftsecnumwidth}{3em}
\setlength{\cftsubsecnumwidth}{3em}
\usepackage{setspace}
\doublespacing

\begin{document}


\maketitle
\thispagestyle{empty}
\newpage


\section{Executive Summary}
\setcounter{page}{1}
\newpage


\tableofcontents
\newpage


\section{List of Figures}
\newpage
...

答案1

文档类不会改变 的样式\tableofcontents。默认情况下,类会加载plain主要文档元素第一页的页面样式,因此您可能只需将plain其设置为即可fancy,只需添加

\makeatletter
\let\ps@plain\ps@fancy % Copy fancy page style into/over plain
\makeatother

你的序言。

相关内容