如何在所有页面上添加页码,而不仅仅是在章节的第一页上添加页码?

如何在所有页面上添加页码,而不仅仅是在章节的第一页上添加页码?

我们正在写论文,一开始我们在所有页面上都贴了页码。有时我们只在章节开始的页面上显示页码。不幸的是我们后来才注意到,所以我们不知道这是在哪个阶段发生的。

我认为问题出在某些软件包组合上。我们确实有很多。然而,在研究这些问题时,有一个类似的问题: 如何在 fancyhdr 中对所有页面进行编号 事实上,可能是我们在页脚部分没有预留出足够的空间。

\usepackage[dutch,english]{babel}
\usepackage{amsmath,amsthm,amssymb,amsfonts}
\usepackage{a4wide}  
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{float}
\usepackage[dvipsnames]{xcolor}
\usepackage{hyperref} 
\usepackage{algorithmic} 
\usepackage{algorithm} 
\usepackage{url}
\usepackage{tikz}
\usetikzlibrary{decorations}
\usetikzlibrary{snakes}
\usetikzlibrary{decorations.pathreplacing,positioning, arrows.meta}
\usepackage[percent]{overpic}
\usepackage[titletoc]{appendix}
\usepackage{booktabs} 
\usepackage{supertabular}
\usepackage{pifont}
\usepackage{acronym}
\usepackage{array}

%%%%%%%%%%%%%%%%
\usepackage[square,sort,comma,numbers]{natbib} 

%%%%%%%%%%%%%%%%
\usepackage{fancyhdr} 
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\usepackage[includefoot]{geometry}

[includefoot]在这个阶段,我尝试通过在几何包前面添加来解决这个问题。但仍然缺少页码。

\usepackage[headheight=8ex,includehead,includefoot]{geometry} 还尝试了以下两个选项,但没有解决问题 \cfoot{\thepage}

\numberwithin{equation}{chapter}

\newcommand{\nocontentsline}[3]{}
\newcommand{\tocless}[2]{\bgroup\let\addcontentsline=\nocontentsline#1{#2}\egroup}
\newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}}

\allowdisplaybreaks
\makeindex

%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\input{Titelpagina.tex}

\pagestyle{plain}
\frontmatter

\input{Abstract.tex}

%ToC
\restoregeometry
\setcounter{equation}{1}
\pagestyle{empty}
\tableofcontents

%content
\input{0GeneralIntroduction.tex}
\mainmatter
\input{1.1Part1.tex}
\input{1.2Part2.tex}

%Appendices
\begin{appendices}
\chapter{Appendix 1}
...
\end{appendices}

%Bibliography
\clearpage
\bibliographystyle{agsm} 
\bibliography{Bibfile.bib} 
\addcontentsline{toc}{chapter}{Bibliography}
\vfill

\end{document}

除标题页和书目文件外,其他文件都充满了章节和部分。

相关内容