如何从第二页开始在R Markdown中进行页码编号? [英] How to start page numbering in R Markdown from the second page?

查看:625
本文介绍了如何从第二页开始在R Markdown中进行页码编号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在创建pdf输出时是否有办法从第二页开始从第二页开始编号和/或从第二页开始从第二页开始打印页码?

I was wondering if there is a way to start page numbering from the second page and/or print page numbers starting from second page in R Markdown when creating pdf output?

将标题页添加到文档中时,这将很有用.

This would be useful when adding a title page to the document.

谢谢!

推荐答案

收到有用的评论后,我通过在标题之前添加\pagenumbering{gobble}并在标题页面之后添加\pagenumbering{arabic}来解决问题,如下所示:

After receiving useful comments I solved issue by adding \pagenumbering{gobble} just before the title and \pagenumbering{arabic} after the title page as follows:

\pagenumbering{gobble} 
\centerline{\includegraphics[height=2in]{youricon.png}}
\large{TITLE}
\pagenumbering{arabic} 
 ......
 Other chapters of the document

请注意,此操作从标题后的页面开始编号,即页面编号1将被打印在标题页面之后的下一页上.

Note that this starts numbering from the page after the title, i.e. page number 1 will be printed on the following page after the title page.

这篇关于如何从第二页开始在R Markdown中进行页码编号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆