I have a MWE (see below, adapted from the Quarto doc), and I am wondering:
- Why the label
fig-testis not found - Is it possible to automatise the caption with a 'for loop' in the yaml? I found a beginning of answer here but I wonder if the language evolved since then
---
title: "MWE"
lightbox:
match: auto
format:
html:
toc: true
include-in-header: mathjax.html
code-fold: true
df-print: paged
number-sections: true
theme:
light: cerulean
dark: darkly
margin: 5% 0;
---
See @fig-test
```{r}
#| label: fig-test
#| fig-cap:
#| - Caption for first plot
#| - Caption for second plot
#| lightbox:
#| group: test_group
for (i in 1:2)
plot(rnorm(100), pch = 19, cex = 0.5)
```