Can custom floats work with compact syntax? #11394
Answered
by
cscheid
d-morrison
asked this question in
Q&A
-
DescriptionI'm wondering whether there's a way to make the following qmd add the ---
title: "test"
format: html
crossref:
custom:
- kind: float
key: suppfig
reference-prefix: Figure S
space-before-numbering: false
---
```{r}
#| label: suppfig-fig1
#| fig-cap: "a figure"
plot(1:10)
```
::: {#suppfig-fig2}
```{r}
#| fig-cap: "another figure"
plot(10:1)
```
:::
Currently, the first figure doesn't get a caption label: |
Beta Was this translation helpful? Give feedback.
Answered by
cscheid
Nov 13, 2024
Replies: 1 comment 1 reply
-
It won't be an easy thing to change, because it will require us to teach knitr about custom crossrefs. The syntax we would support would be something like
But don't hold your breath, this is a harder change than it appears. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
d-morrison
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It won't be an easy thing to change, because it will require us to teach knitr about custom crossrefs. The syntax we would support would be something like
But don't hold your breath, this is a harder change than it appears.