我正在为需要补充材料的期刊写一篇文章。我希望使用一个独特的标签,SuppMat:而不是默认的标签fig:来将图表和表格发送到这个部分。
我知道使用乳胶的答案(在这里找到,在这里找到)但我必须在导出时完成这个docx(是的,我知道这很可怕,但合作者总是对的)
---
title: "My Title"
output:
bookdown::word_document2:
fig_caption: yes
link-citations: no
site: bookdown::bookdown_site
---
```{r setup, include=FALSE, cache=FALSE, echo=FALSE}
#create tables
table1 <- mtcars[1,2]
table2 <- mtcars[3,4]
#set knitr options
library(knitr)
knitr::opts_chunk$set(echo = FALSE,
warning = FALSE,
message = FALSE,
include = TRUE,
dpi = 300)
```
Table \@ref(tab:table1) and Figure \@ref(fig:figure1) ) should be displayed in ***Figure and Tables*** section
I need Supplementary Table \@ref(SuppMat:table2) and a Supplementary …Run Code Online (Sandbox Code Playgroud)