In RMarkdown Word document, how to make table of contents appear later

China☆狼群 提交于 2019-12-06 01:45:13
Ben

As explained here, based on this and this, you could change the style of the date in the Word document to add a page break after it.

Of course, that only separates the title page from the table of contents and if you want to insert other pages between those two, it wouldn't work.

But at least that's an idea to start from.

I've just been playing around with this issue myself. Unfortunately, I don't think Word allows you to modify a style to insert a break after a style, only before.

However, the TOC header is a style that is created when a TOC is included and can be modified. If you change the TOC header style to include a page break before, save this as your reference style document and run it forces the TOC onto a new page when knit.

As @Ben notes though this only allow you to move the TOC off the title page, not insert it where you want within the document.

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