quarto-dev / quarto-dev/quarto-cli

Repeated figure caption when figure and table captions are mixed

Open
#1,269 3 comments 0 reactions 1 assignee View on GitHub

@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:

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.