Skip to content
Discussion options

You must be logged in to vote

The following works for R and Python.
The second embedding does not have the "source" link, but it works.

---
title: "Reproducible Quarto Document"
format: html
figure-captions:
  plot: "This is a plot generated from an embedded code cell."
crossref: 
  custom: 
    - kind: float
      key: suppfig
      latex-env: suppfig
      reference-prefix: Figure S
      space-before-numbering: false
      latex-list-of-description: Supplementary Figure
---

:::: {#fig-plot}
{{< embed cell.qmd#plot >}}

{{< meta figure-captions.plot >}}
:::


:::: {#suppfig-plot}
{{< embed cell.qmd#plot >}}

{{< meta figure-captions.plot >}}
:::

With cell.qmd:

R Python
---
engine: knitr
---

```{r}
#| label: plot
p…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jestupinanm
Comment options

@mcanouil
Comment options

@mcanouil
Comment options

Answer selected by jestupinanm
@jestupinanm
Comment options

@mcanouil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants