标题页的页码

标题页的页码

我有一份“报告”类型的文档,我想用空白页分隔多个标题页。我想将这些页面排除在编号之外。然后在标题页之后,我想添加摘要,使用罗马字体页码,然后才开始使用阿拉伯字体页码。

我现在的问题是,摘要的罗马页码以“ii”开头,而不是以“i”开头,这应该是这样的(如果标题页不算的话)。所以我想让 Latex 从摘要开始计算页数。显然现在它只计算标题页之一。

为了生成标题页,我使用了命令 \begin{titlepage} ... \end{titlepage}。我尝试输入\thispagestyle{empty},但它并没有改变摘要中的编号。

您对我该如何修复此问题有什么想法吗?

这是我的代码(抱歉,帖子太长了):

\documentclass[12pt,a4paper,twoside]{report}

\usepackage[top=1in, bottom=1in, outer=1in, inner=1.5in, includefoot, headheight=13.6pt]{geometry}

\usepackage{afterpage}
\newcommand\blankpage{%
    \null
    \thispagestyle{empty}%
    \addtocounter{page}{-1}%
    \newpage}

\pagenumbering{roman}                  % Sets the pagenumbering to Roman nunerals to 

\begin{document}

\afterpage{\blankpage}
\begin{titlepage}
       Here is my 1st titlepage!
       \vfill
\end{titlepage}


\afterpage{\blankpage}
\begin{titlepage}
       Here is my 2nd titlepage!
       \vfill
\end{titlepage}


\afterpage{\blankpage}
\begin{titlepage}
       Here is my 3d titlepage!
       \vfill
\end{titlepage}

\chapter*{Abstract}
        Here is my abstract with page numbering "ii".

\newpage
\pagenumbering{arabic}
\chapter{Introduction}
        Here is my introduction.

\end{document}

答案1

只需\pagestyle{empty}在标题页部分使用\cleardoublepageafter进行设置即可\end{titlepage}。使用\pagenumbering{alph}以便保持hyperref满意,以防您最终使用它。

读完最后一页标题后,切换到\pagenumbering{roman}摘要,然后切换\pagenumbering{arabic}到 正文。

\documentclass[12pt,a4paper,twoside]{report}
\usepackage[top=1in,
   bottom=1in,
   outer=1in,
   inner=1.5in,
   includefoot,
   headheight=13.6pt
]{geometry}

\begin{document}

\pagestyle{empty}
\pagenumbering{alph}% just to keep hyperref happy, if you use it

\begin{titlepage}
       Here is my 1st titlepage!
       \vfill
\end{titlepage}
\cleardoublepage

\begin{titlepage}
       Here is my 2nd titlepage!
       \vfill
\end{titlepage}
\cleardoublepage

\begin{titlepage}
       Here is my 3d titlepage!
       \vfill
\end{titlepage}
\cleardoublepage

\pagestyle{plain}
\pagenumbering{roman}
\chapter*{Abstract}

Here is my abstract with page numbering "i".

\cleardoublepage
\pagenumbering{arabic}

\chapter{Introduction}

Here is my introduction.

\end{document}

答案2

一个带有软件包的解决方案etoolbox,以及一个abstract environment。文档正文中的代码进行了简化:

\documentclass[12pt,a4paper,twoside]{report}

\usepackage{etoolbox}
\AtBeginEnvironment{titlepage}{\pagenumbering{gobble}}
\AtEndEnvironment{titlepage}{\vfill\cleardoublepage}
\apptocmd{\abstract}{\pagenumbering{roman}\thispagestyle{plain}}{}{}
\AtEndEnvironment{abstract}{\vfill\clearpage\pagestyle{empty}}

\usepackage[top=1in, bottom=1in, outer=1in, inner=1.5in, includefoot, headheight=13.6pt]{geometry}

\begin{document}

\begin{titlepage}
  Here is my 1st titlepage!
\end{titlepage}

\begin{titlepage}
  Here is my 2nd titlepage!
\end{titlepage}

\begin{titlepage}
  Here is my 3rd titlepage!
\end{titlepage}

\begin{abstract}
  Here is my abstract with roman page numbering and page number \thepage
\end{abstract}

\pagenumbering{arabic}
\chapter{Introduction}
Here is my introduction.

\end{document} 

在此处输入图片描述

相关内容