Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inserting a blank page after a title page in RMarkdown

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?

like image 668
Kivis Avatar asked Aug 23 '16 09:08

Kivis


2 Answers

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

 

\pagebreak

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

like image 114
Keith Hughitt Avatar answered Oct 16 '22 18:10

Keith Hughitt


I had to do it a little different (Using bookdown):

  1. In the YAML header, set toc: no. Otherwise, we end up with two tocs.
  2. Directly after the YAML header I needed to add the following code.

\newpage
\thispagestyle{empty}
\mbox{}

\tableofcontents

\newpage
\thispagestyle{empty}
\mbox{}
like image 38
symbolrush Avatar answered Oct 16 '22 18:10

symbolrush