2016-08-04 137 views
4

我想知道是否有辦法從第二頁開始頁碼和/或從R Markdown的第二頁開始創建pdf輸出時打印頁碼?如何從第二頁的R Markdown開始頁碼?

當將標題頁添加到文檔時,這會很有用。

謝謝!

+0

如何添加標題頁?請添加一個最小的例子。 –

+0

我在給出下面的建議[這裏](http://stackoverflow.com/questions/28962651/inserting-title-page-with-image-in-rmarkdown-to-render-a-pdf-document) – Ivona

+0

它使用膠乳所以搜索乳膠並跳過標題頁碼。 –

回答

4

接收有用的意見後,我解決了問題,僅由扉頁後的標題和\pagenumbering{arabic}之前添加\pagenumbering{gobble}如下:

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

請注意,這將啓動標題後,從頁編號,即頁號1將打印在標題頁後的下一頁上。