使用 fancyhdr 包...其中一章的几页缺少页眉和页码

使用 fancyhdr 包...其中一章的几页缺少页眉和页码

我正在写论文。问题是第 6 章中有几页没有显示章节标题和页码。我完全不知道为什么会这样?请纠正我的错误。我的论文模板如下:


\documentclass[12pt,openright,twoside]{ducs}
\usepackage{ragged2e}
\usepackage{fancyhdr}
\usepackage{placeins}
\usepackage{enumitem}
%\usepackage{setspace}
%\usepackage[algo2e]{algorithm2e}
\usepackage{graphicx}
%\usepackage{subfigure}
\usepackage{multirow}
\usepackage{multicol}
%\usepackage{titlesec}
\setcounter{secnumdepth}{5}
\usepackage{longtable}
\usepackage{subfloat}
\usepackage{tabularx}
\usepackage{subfig}
\usepackage{amsmath}
\usepackage{bm}
\usepackage[lined,linesnumbered,ruled,resetcount,longend]{algorithm2e}
\usepackage{textgreek}
%\usepackage{enumerate}
\usepackage{caption}
\usepackage{csquotes}
\usepackage[T1]{fontenc}
\usepackage{scalerel}
\usepackage[utf8]{inputenc}
\usepackage[german,french,italian,welsh,greek,russian,portuguese,spanish,english]{babel}
\usepackage[tablename=Table]{caption}
\usepackage[dvipsnames,table,xcdraw]{xcolor}
\setcounter{secnumdepth}{1}
\usepackage[UTF8]{ctex}
\newcommand{\nextnr}{\stepcounter{AlgoLine}\ShowLn}
\usepackage{epsfig}
\usepackage{times}
\usepackage{rotating}
\usepackage{comment}
%\usepackage{algorithm}
%\usepackage{algpseudocode}
%\algrenewcommand\textproc{}
\usepackage{epsfig}
\usepackage{amssymb}
\usepackage[black-square]{QED}
\usepackage{slashbox}
\usepackage{caption}
\captionsetup{font={small, singlespacing}}
%\usepackage {subcaption}
\usepackage{psfig}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{verbatim}
\usepackage{psfig}
\usepackage[a4paper,left=1.5in, right=1.1in, top=1.0in, bottom=.90in]{geometry}
\usepackage[numbers]{natbib}
\usepackage[T1]{fontenc} % important if your docs contain special characters
\usepackage{epstopdf}%
\usepackage{units} % for solidus fractions %
\usepackage{array,booktabs,ragged2e}
\usepackage{multirow}
\usepackage{pdflscape}
\usepackage{placeins}
\usepackage{float, caption}
\floatstyle{boxed} 
\usepackage{framed}
\usepackage[framemethod=tikz]{mdframed}
\captionsetup[longtable]{skip=.2em}
\usepackage{textcomp}
\usepackage[parfill]{parskip} 
\usepackage{tfrupee}
\usepackage{lscape} 
%\usepackage{enumerate}
\pagestyle{headings}
\usepackage{csquotes}
%\newcommand{\nextnr}{\stepcounter{AlgoLine}\ShowLn}
\newcommand\dunderline[3][-1pt]{{%
\setbox0=\hbox{#3}
\ooalign{\copy0\cr\rule[\dimexpr#1-#2\relax]{\wd0}{#2}}}}
\begin{document}
\sloppy
\maketitle
cleardoublepage
\pagestyle{fancy}
\fancyhf{}
\rhead{\scriptsize \textit{Chapter 1 }}
\cfoot{\thepage}
\pagenumbering{arabic} % This makes the page numbers Roman (i, ii, etc)
\include{chapter1_T7}
\let\cleardoublepage\clearpage
\newpage
\pagestyle{fancy}
\fancyhf{}
\rhead{\scriptsize \textit{Chapter 2 }}
\cfoot{\thepage}
\include{chapter2}
\newpage
\pagestyle{fancy}
\fancyhf{}
\rhead{\scriptsize \textit{Chapter 3}}
\cfoot{\thepage}
\include{chapter3_T1} 
\newpage
\pagestyle{fancy}
\fancyhf{}
\rhead{\scriptsize \textit{Chapter 4}}
\cfoot{\thepage}
\include{chapter4_T2}
\fancyhf{}
\rhead{\scriptsize \textit{Chapter 5}}
\cfoot{\thepage}
\newpage
\include{chapter5_T2}
\newpage
\pagestyle{fancy}
\fancyhf{}
\rhead{\scriptsize \textit{Chapter 6 }}
\cfoot{\thepage}
\include{chapter6_T3}
\let\cleardoublepage\clearpage
%\newpage
\pagestyle{fancy}
\fancyhf{}
\rhead{\scriptsize \textit{Chapter 7}}
\cfoot{\thepage}
\include{chapter7_T2}
\newpage
\pagestyle{fancy}
\fancyhf{}
\rhead{\scriptsize \textit{Chapter 8 }}
\cfoot{\thepage}
\include{chapter8_T2}
\newpage
\pagestyle{fancy}
\fancyhf{}
\rhead{\scriptsize \textit{Chapter 9 Conclusion}}
\cfoot{\thepage}
\include{chapter9}
\newpage 
\cleardoublepage
{\normalsize
\pagestyle{fancy}
\fancyhf{}
\rhead{\scriptsize \textit{Bibliography}}
\cfoot{\thepage}
\bibliographystyle{alpha}}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{references}
\newpage
\end{document}

我已经包含了额外的包以了解这些包中是否有任何包与“fancyhdr”包相矛盾。

相关内容