Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 263
Kivis Avatar asked Aug 04 '16 10:08

Kivis


People also ask

How do you number pages in R Markdown?

Page numbering is straightforward. You can use \pagenumbering{gobble} for pages without numbering, \pagenumbering{roman} for roman page numbering and \pagenumbering{arabic} for normal page numbering. Just include the argument wherever you want the have the page numbering changed.

How do I start page numbers on the second page in latex?

To suppress the page number on the first page, add \thispagestyle{empty} after the \maketitle command. The second page of the document will then be numbered "2". If you want this page to be numbered "1", you can add \pagenumbering{arabic} after the \clearpage command, and this will reset the page number.

Where should the page number start?

Numbering Requirements Since your Title Page is presumed to be the first page, but is not numbered, numbering should start with lowercase Roman numeral “ii” on the page that appears after your title page.

What does ## do in R Markdown?

headers - Place one or more hashtags at the start of a line that will be a header (or sub-header). For example, # Say Hello to markdown . A single hashtag creates a first level header. Two hashtags, ## , creates a second level header, and so on.


1 Answers

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.

like image 123
Kivis Avatar answered Sep 19 '22 21:09

Kivis