Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RStudio, knitr, pandoc, Word: how do I get a 'new page' in my docx?

I am using the RStudio, knitr, pandoc, MS Word combo to get my final results in a docx document.

Occasionally, I would like the report to continue on a new page. I can't find the way to achieve this.

From what I have Googled, it seems to be possible with CSS. I don't know HTML or CSS, but if it is the solution I will learn. Just don't want to take the wrong road...

like image 842
ap53 Avatar asked Apr 10 '13 22:04

ap53


1 Answers

Try the LaTeX command \newpage. Pandoc recognizes it and might (not on a computer right now) translate it to a Word page break.

like image 108
Abhijit Avatar answered Sep 27 '22 17:09

Abhijit