How to start page numbering in R Markdown from the second page?

你说的曾经没有我的故事 提交于 2019-12-22 06:41:10

问题


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.

Thanks!


回答1:


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

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.



来源:https://stackoverflow.com/questions/38765422/how-to-start-page-numbering-in-r-markdown-from-the-second-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!