Removing picture text in rmarkdown

When I insert an image in Rmarkdown, I see "Image #:" below the image.

How do you get rid of the text "Figure:"?

for example here is my code

![my caption](C:/mypath/myimage.png)

and the image will appear with the caption “Figure 1: my signature” below. I just want the signature to be "my caption"

I looked here http://yihui.name/knitr/options/#chunk_options , and fig.lp seems like it could be a solution, but when I include this in the header like:

---
title: "My Title"
output: pdf_document
fig.lp: ('';character)
---

"Figure:" is still displayed.

Thank.

+4
source share
3 answers

You can use the option fig_captionin the header, for example:

---
title: "My Title"
output: 
  pdf_document:
    fig_caption: false
---
+9

, , :

![my caption](C:/mypath/myimage.png)\

.

+6

.

```{r echo = F}
library(knitr)
opts_chunk$set(fig.lp = '')
```
0

Source: https://habr.com/ru/post/1648710/


All Articles