缺少页码

缺少页码

请问我有一个问题,页数只显示前几页,其余的都消失了?这很紧急,有什么建议吗?

在此处输入图片描述

该文件的序言:

\documentclass[12pt]{article}

\usepackage[margin=2.6cm]{geometry}

\usepackage{graphicx}
\usepackage{float}
\usepackage{subcaption}
\usepackage{indentfirst}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{blindtext}
\usepackage{changepage}
\usepackage[nopostdot,  style=super, nonumberlist]{glossaries}
\usepackage{leading}
\usepackage{longtable}
\usepackage{titlesec}
\usepackage[hidelinks]{hyperref}
\usepackage{pgfgantt} 
\usepackage[doublespacing]{setspace}
\usepackage{xcolor}
\usepackage{color, colortbl}
\usepackage{caption}


\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}



\usepackage{booktabs}
\usetikzlibrary{positioning}
\usepackage{float}
\usepackage{tocstyle}


\usepackage{capt-of}
\usetocstyle{standard}
\usepackage{tocloft}%
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}




%------------------------------------------------------
%Table

    \usepackage{enumitem, etoolbox, tabularx, makecell, booktabs}
    \makeatletter
    \newcommand*{\compress}{\@minipagetrue}
    \makeatother


%------------------------------------------------------



%\newcommand{\autodot}{.}

%----------------------------------------------------
%Add some level of subclasses
\newenvironment{subs}{\adjustwidth{2em}{0pt}}{\endadjustwidth}
\titleclass{\subsubsubsection}{straight}[\subsection]
\newcounter{subsubsubsection}[subsubsection]

\renewcommand\thesubsubsubsection{\thesubsubsection.\arabic{subsubsubsection}}
\renewcommand\theparagraph{\thesubsubsubsection.\arabic{paragraph}}
\renewcommand\thesubparagraph{\theparagraph.\arabic{subparagraph}}

\titleformat{\subsubsubsection}
  {\normalfont\normalsize\bfseries}{\thesubsubsubsection}{1em}{}
\titlespacing*{\subsubsubsection}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{5}{\z@}%
  {3.25ex \@plus1ex \@minus.2ex}%
  {-1em}%
  {\normalfont\normalsize\bfseries}}
\renewcommand\subparagraph{\@startsection{subparagraph}{6}{\parindent}
  {3.25ex \@plus1ex \@minus .2ex}%
  {-1em}%
  {\normalfont\normalsize\bfseries}}
\def\toclevel@subsubsubsection{4}
\def\toclevel@paragraph{5}
\def\toclevel@paragraph{6}
\def\l@subsubsubsection{\@dottedtocline{4}{7em}{4em}}
\def\l@paragraph{\@dottedtocline{5}{10em}{5em}}
\def\l@subparagraph{\@dottedtocline{6}{14em}{6em}}
\makeatother

\makeatletter
\@addtoreset{subsubsubsection}{section}
\@addtoreset{subsubsubsection}{subsection}
\makeatother

\setcounter{secnumdepth}{6}
\setcounter{tocdepth}{6}



%-----------------------------------------------------
%Space Before and After Sections and Subsections Titles 
\titlespacing*{\section}{0pt}{1\baselineskip}{1\baselineskip}
\titlespacing*{\subsection}{0pt}{1\baselineskip}{1\baselineskip}
\titlespacing*{\subsubsection}{0pt}{1\baselineskip}{1\baselineskip}

%------------------------------------------------------
%Space Between Lines
\linespread{1.15}

%-------------------------------------------------------
%Bibliography
\usepackage[backend=biber ,bibstyle=ieee, citestyle=numeric, dashed=false]{biblatex}
\addbibresource{bibliography.bib}

%-------------------------------------------------------
% Rename the contents title
\renewcommand*\contentsname{Table of Content}

   %Add dot after the section number




%-------------------------------------------------------
% Table caption
% \captionsetup[table]{skip=3pt}



%------------------------------------------------------
%Acronyms

\makeglossaries


\newglossaryentry{NB}{
name = NB,
description = Naïve Bayes
}




\overfullrule=0pt
\hypersetup{final}

%-------------------------------------------------------

\usepackage{arabtex}
\usepackage{utf8}
\pagestyle{empty}


\begin{document}



\end{document}

答案1

页码通常作为页面样式的一部分插入。empty页面样式会从文档中删除页眉和页脚,这里可能就是这种情况。

从代码中删除\pagestyle{empty}以恢复页码。

相关内容