章节超过一页时缺少页码

章节超过一页时缺少页码

我的论文每章的第一页“仅”显示页码,但后续页面不显示页码。

我使用了以下序言:

\documentclass[12pt]{report}
\include{filename}
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{compat=newest}
\pgfplotsset{ytick style={draw=none}}
\pgfplotsset{xtick style={draw=none}}
\topmargin=0.02cm
\textwidth =  17cm
\textheight = 23cm
\baselineskip=11pt
\setcounter{secnumdepth}{3}
\setlength{\oddsidemargin}{0.01 pt}
\setlength{\evensidemargin}{0.01 pt}
\renewcommand{\baselinestretch}{1.4}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{graphicx}
\graphicspath{ }

\usepackage{ragged2e}
\usepackage{makecell, multirow, tabularx}
\renewcommand\theadfont{\small\bfseries} % for bold in table using \small

\usepackage{mathrsfs}
\usepackage{epstopdf}
\usepackage{csquotes}
\usepackage{wrapfig}
\usepackage{accents}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{calligra}
\usepackage[colorlinks]{hyperref}
\usepackage{kantlipsum}
\hypersetup{colorlinks, 
    breaklinks,
    linkcolor=red,
    citecolor=red,
    linktocpage=true}
\newtheorem{fig}{figure}[section]
\numberwithin{figure}{section}
\newcommand\norm[1]{\left\lVert#1\right\rVert}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}{Corollary}[thm]
\theoremstyle{definition}
\newtheorem{defn}{Definition}[section]
\newtheorem{conj}{Conjecture}[section]
\newtheorem{exmp}{Example}[section]
\setcounter{tocdepth}{3}
\theoremstyle{remark}
\newtheorem*{rem}{Remark}
\newtheorem*{note}{Note}
\usepackage{mathtools}
\graphicspath{{images/}}
\title{Thesis Title page}

\begin{document}

\maketitle

%\frontmatter

\pagestyle{empty}
\clearpage
\begin{center}
\textbf{\large DECLARATION}
\end{center}
\clearpage
\pagestyle{empty}
\begin{center}
\textbf{\large ACKNOWLEDGEMENTS}
\end{center}
\clearpage
\begin{center}
\textbf{\large CERTIFICATE FROM THE SUPERVISOR}
\end{center}

\clearpage

\pagestyle{empty}
\begin{center}
\textbf{\large NOTATIONS}
\end{center}

\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents
\thispagestyle{empty}
\newpage
\setcounter{page}{1}

\chapter{Introduction}

People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!
People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!
People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!
People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!
People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!
People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!
People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!
People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!
People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!
People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!
\chapter{Prelimineries}
People say that children are completely empty-headed. So what will be taught, so will learn, so will remember. But in the present time, this popular belief is largely shaken. Most parents complain, My child can't remember. Learning at home or at school, but test scores don't reflect that. Then the children forget!


\chapter{Main chapter 1}
\section{aa}
\section{bb}
\chapter{Main chapter 2}
\section{aa}
\section{bb}
\chapter{Main chapter 3}
\section{aa}
\subsection{aaa}
\section{bb}
\subsection{bbb}
\chapter{Main chapter 4}
\section{aa}
\subsection{aaa}
\section{bb}
\subsection{bbb}
\chapter{Main chapter 5}
\section{aa}
\subsection{aaa}
\section{bb}
\subsection{bbb}
\section{cc}

\end{document}

结果 pdf 是这里

您将看到页码仅显示在每章的第一页上,而不显示在后续页面上。例如,“简介”一章的第 2 页缺少页码。

在上面的序言中,我想特别强调以下有关“目录”的部分:

\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents
\thispagestyle{empty}
\newpage
\setcounter{page}{1}

\chapter{Introduction}

也许这里发生了什么事。但我找不到问题所在。

谢谢

相关内容