How to properly number headings in Word from a RMarkdown document

倖福魔咒の 提交于 2019-12-05 09:45:20

Following on from the Blockquote debate. I found the following solution:

R Markdown

add a block quote with a space

>  

Word template

The block quote is formatted as Block Text style in Word.

Edit the Block Text style

  • small font (I use size 3)
  • change the paragraph settings
    • no space before/after
    • tick "page break before"

As suggested by Frost_Maggot in the comments,

Maybe try modifying a different style in Word that is shared with R Markdown. If you are not using block quotes in your R markdown this might relate to quote in the MS Word stylings?

This indeed works for me as I don't use the quote style in my document.

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