Warm tip: This article is reproduced from stackoverflow.com, please click
latex r r-markdown pdf format

Inserting a blank page after a title page in RMarkdown

发布于 2020-03-27 10:31:59

I am trying to insert a blank page between the title page and the table of contents in my RMarkdown document, pdf output. I followed the suggestion described here. My issue is that the blank page does not appear. Here is my code:

\pagenumbering{gobble} 

\centering
\centerline{\includegraphics[height=2in]{glasgowuni.png}}

\large{UNIVERSITY OF GLASGOW}

\normalsize{COLLEGE OF SCIENCE AND ENGINEERING}

\normalsize{SCHOOL OF MATHEMATICS AND STATISTICS}\linebreak

\raggedright

\clearpage

\pagenumbering{arabic} 

\tableofcontents

\newpage

Can anyone spot why the blank page does not appear?

Questioner
Kivis
Viewed
84
Keith Hughitt 2016-08-23 18:58

Try adding an invisible character and \pagebreak before the TOC:

 

\pagebreak

This did the trick for me. Good luck with the thesis!