Ivona Ivona - 4 months ago 57
Markdown Question

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

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!

Answer

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.