跳过计算页面

跳过计算页面

最初我想跳过计算我的第一页,所以我使用了\pagenumbering{gobble}下面\maketitle,在我想要开始的页面上,我使用了\pagenumbering{arabic}

但是现在我想跳过对文档中间的一页进行编号,当我使用上述方法“吞噬”页码并使用阿拉伯语进行下一页编号时,它会重置计数器......

因此我想到使用,\setcounter{page}{20}因为我跳过了第 20 页并将其应用到下一页,但即使这也不能解决问题,计数器仍然从 1 开始......

以下是片段:

\pagenumbering{gobble}
This is a normal text paragraph, on one page without numbering
\newpage
\setcounter{page}{20}
\pagenumbering{arabic}
This page's numbering starts at 1

答案1

\thispagestyle{empty}我建议您在不应该显示页码的页面上插入说明,并\addtocounter{page}{-1}在下一页上插入说明。

完整的 MWE (最小工作示例):

\documentclass{article}
\usepackage{lipsum} % filler text

\begin{document}
\lipsum[1-10]  % 2 pages of filler text
\clearpage     % jump to next page
\lipsum[11-12] % 2 more paragraphs of filler text, on 1 page
\thispagestyle{empty}   % don't show page number, on this page only
\clearpage     % jump to next page
\addtocounter{page}{-1} % decrement the page counter
\lipsum[13-22] % 2 more pages of filler text
\end{document}

相关内容