简体   繁体   中英

Remove/hide figure caption below knitted markdown->pandoc plot

I don't know how to remove Figure 1: as seen bellow from the generated pdf document: (using rmarkdown; knitr; pandoc). I have a .Rmd file > .md > .pdf

I generate the pdf in R console as:

system(paste("pandoc -V geometry:margin=0.7in -o", path, "/file_name", ".pdf ", "file_Rmd", ".md" ,sep=""))

Simple example:

```{r}
plot(1:20)
```

Output:

在此输入图像描述

在您的pandoc调用中添加-fmarkdown-implicit_figures以禁用隐式图形扩展,这将禁用“图#:xyz”标记。

system(paste("pandoc -V geometry:margin=0.7in -fmarkdown-implicit_figures -o", path, "/file_name", ".pdf ", "file_Rmd", ".md" ,sep=""))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM