在乳胶中手动定义页码?
我正在用 Latex 编辑一个 100 多页的文档,文档类别是“书”。 文档的前几页有罗马页码,其余页有阿拉伯页码以开头。 即该文档的页码为 i-iv,后跟第 1-120 页。 然而,我想要的页面是:vii-ix,后面是第 1-120 页。 (原因:我在 Latex 最终生成的 PDF 之前插入了一些其他 PDF 页面,这显然会导致所有后续页码更高)。
那么如何增加罗马页码以从更高的数字开始(但不能同时增加阿拉伯文页码)?
谢谢。
I am editing a 100+ page document in latex, document class is "book".
The first few pages of the document have roman page numbers, the rest have arabic page numbers starting with one.
I.e. the document has page numbers i-iv, followed by pages 1-120.
However, want I want is the pages to be: vii-ix, followed by pages 1-120.
(reason: I am inserting some other PDF pages preceding the PDF ultimately generated by latex, and this obviously leads to all following page numbers beeing higher).
So how can I increase the roman page numbers to start from a higher number (but not increase the arabic page numbers at the samee time)?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
当阿拉伯数字开头时,您不需要使用
\setcounter{page}{1}
。这会自动发生:第 iii 页后跟第 1 页。
You don't need to use
\setcounter{page}{1}
when arabic numbers start. This happens automatically:has page iii followed by page 1.
在
\begin{document}
之后使用\setcounter{page}{7}
,如果需要,在阿拉伯语时使用\setcounter{page}{1}
页码开始。use
\setcounter{page}{7}
after\begin{document}
and if necessary\setcounter{page}{1}
when the arabic page numbers start.尝试使用 pdfpages 包 (CTAN),它允许您将 PDF 文档插入 Latex 文档,并为其分配页码。您需要将其与 pdftex 一起使用。
除了不太有用之外 - 如果您使用Context,您将能够向您导入的 PDF 文档添加页码以及其他装饰。但这与 Latex 相比还有很大的差距。
Try using the pdfpages package (CTAN), which allows you to insert PDF documents into your Latex document, and assign page numbers to them. You need to use this with pdftex.
Not very useful aside — if you used Context, you'd be able to add page numbers to the PDF document you import, as well as other decoration. But that is a big step away from Latex.
book
(和report)类定义\frontmatter
、\mainmatter
和\backmatter
,以切换页面切片的样式和处理。特别是\frontmatter
将页码切换为罗马文,将\mainmatter
切换为阿拉伯文。为了在开始时考虑到未打印的页面,您仍然需要在首页内容之前使用
\setcounter{page}{7}
。The
book
(and report) classes define\frontmatter
,\mainmatter
, and\backmatter
, to switch the page style and handling of sectioning. In particular\frontmatter
switches the page numbers to roman, and\mainmatter
to arabic.To account for unprinted pages at the beginning, you still have to use
\setcounter{page}{7}
before your front matter content.