quarto-dev / quarto-dev/quarto-cli
Repeated figure caption when figure and table captions are mixed
Open
@cderv is already working on this.
Since May 27, 2024.
bug
computations
crossref
engines-knitr
figures
tables
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Repro:
---
title: "sidebyside"
format: pdf
editor: visual
keep-tex: true
---
```{r}
#| layout-ncol: 2
#| layout-valign: bottom
#| fig-cap: "A plot"
#| tbl-cap: "A table"
library(knitr)
# plot on the left
plot(cars)
# table on the right
kable(head(cars))
```
Note the duplicated caption on the figure:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.