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!
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With