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

拟墨画扇 提交于 2019-12-05 01:45:14

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

​```{=openxml}
<w:p>
  </w:pPr>
    <w:r>
      <w:br w:type="page"/>
    </w:r>
</w:p>
​```

Insert this codes in the position of new page you wanted in the .RMD file, and knit the file to word file. It will be translated into a new page break by pandoc, just like a \newpage command using $Latex$.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!