特定页面缺少页码

特定页面缺少页码

我的 Acknowlgwmnet 部分没有显示页码。因此,Dedication 以 iii 开头,然后 Acknowlgment 没有编号,然后 abstract 有 v 页码。因此它算数,但它不显示页码。这是我的代码

\documentclass[botnum, fleqn]{unmeethesis}
                 % OR
% Use the following specification for TOP page numbering:
% \documentclass[fleqn]{unmeethesis}
\usepackage{amsthm,cite,graphicx,,booktabs,lipsum,color,bm,caption,subcaption,soul}
\usepackage{epsfig}
\usepackage[ruled,linesnumbered]{algorithm2e}
\usepackage[cmex10]{amsmath}
\usepackage{pifont,tikz,paralist,multirow,amssymb,stmaryrd}
%\newtheorem{theorem}{Theorem}
\newtheorem{lem}{Lemma}

\begin{document}

\frontmatter


\title{}

\author{ }

\degreesubject{ }

\degree{}

\documenttype{DISSERTATION}

\previousdegrees{
}

\date{December, \thisyear}

\maketitle

\end{dedication}

\begin{acknowledgments}
\end{acknowledgments}

答案1

\clearpage环境定义中缺少命令 ( ),导致使用acknowledgements该选项时页码无法显示。botnum

尝试使用补丁重新定义该环境来执行此代码。

A

% !TeX TS-program = pdflatex

\documentclass[botnum, fleqn]{unmeethesis}  
\usepackage{amsthm,cite,graphicx,,booktabs,lipsum,color,bm,caption,subcaption,soul}
\usepackage{epsfig}
\usepackage[ruled,linesnumbered]{algorithm2e}
\usepackage[cmex10]{amsmath}
\usepackage{pifont,tikz,paralist,multirow,amssymb,stmaryrd}
%\newtheorem{theorem}{Theorem}
\newtheorem{lem}{Lemma}
    
%%******************* added <<<<<<<<<<<<<<<<<
\usepackage{xpatch}
\xapptocmd{\endacknowledgments}{\clearpage}{}{}
%%******************* 
    
\begin{document}    

\frontmatter

\title{}

\author{}

\degreesubject{}

\degree{}

\documenttype{DISSERTATION}

\previousdegrees{}

\date{December, \thisyear}

\maketitle

\begin{dedication}

\end{dedication}

\begin{acknowledgments}
Some text 

\end{acknowledgments}

%
\maketitleabstract %(required even though there's no abstract title anymore)

\begin{abstract}

\clearpage %(required for 1-page abstract)
\end{abstract}

\end{document}

相关内容