get rid of captions when using texreg in Rmarkdown

匆匆过客 提交于 2019-12-06 10:13:14

In the YAML section where LaTeX packages can be included, add the caption package:

header-includes:
    - \usepackage{caption}

Then at the beginning of the RMarkdown document body add:

\captionsetup[table]{labelformat=empty}

This removes the caption labels for all tables.

In case you have an external .tex file for additional formatting (i. e. I made a file for including a logo in the header of each page as described here) you should include \usepackage{caption} (just this line) in the external .tex file, not in the yaml header of the RMarkdown document.

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