Delete / hide the signature of the figure below the knitted marking-> pandoc plot

I do not know how to remove Figure 1: as shown below from the created PDF: (using rmarkdown, knitr, pandoc). I have a .Rmd file > .md > .pdf

I create a pdf in the R console as:

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

A simple example:

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

Exit:

enter image description here

+7
r markdown knitr pandoc
source share
1 answer

Add -fmarkdown-implicit_figures to your pandoc call to disable the implicit shape extension, which in turn will disable the marking "Figure #: xyz".

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

All Articles