-
---
title: ""
format:
docx:
toc: true
toc-depth: 2
---
```{r, echo=FALSE}
#| out.width: 80%
knitr::include_graphics("QC_raw_Feature_spatial.png")
```
```{r, echo=FALSE}
#| out.width: 80%
knitr::include_graphics("QC_raw_Feature_spatial.jpg")
``` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Apparently you come from RMarkdown, in Quarto, the correct/proper syntax is below. Note that Mixing inline and YAML style syntaxes for code cell is not recommended even in RMarkdown. ---
format: docx
---
```{r}
#| echo: false
#| out-width: 80%
knitr::include_graphics("QC_raw_Feature_spatial.png")
```
```{r}
#| echo: false
#| out-width: 80%
knitr::include_graphics("QC_raw_Feature_spatial.jpg")
``` Finally, note that you don't need all of that to include an image: ---
format: docx
---
{width=80%}
{width=80%} All this being said, I cannot reproduce under Quarto 1.7.13+ your issue when using https://quarto.org/quarto.png |
Beta Was this translation helpful? Give feedback.
Apparently you come from RMarkdown, in Quarto, the correct/proper syntax is below.
Note that
title: ""
is not equivalent to not having a title, it's having an empty title.Mixing inline and YAML style syntaxes for code cell is not recommended even in RMarkdown.
You should choose.
In Quarto, there is nothing between the brackets beside the engine. Everything else is in YAML format (not dit notations).
Finally, note that you don't need all of that to include an image: