How to add a page break in word document generated by RStudio & markdown

后端 未结 10 2195
情深已故
情深已故 2020-12-03 02:33

I writing a Word document with R markdown in R Studio. I can get many things, but at the moment I am not figuring out how can I get a page break. I have found solutions but

10条回答
  •  情深已故
    2020-12-03 03:01

    My solution is not very robust but can work for some of us. Assuming you need a page break before each level 1 title in your word document, I defined this in the format template used in the yaml field reference_docx: . In this document you modify the Heading 1 format (or equivalent) to insert a page break before the Title. Do not forget to start your template with the first docx rendered with knitr (pandoc) in RStudio.

提交回复
热议问题