quarto-dev / quarto-dev/quarto-cli

Raw LaTeX table as knitr output for cross referenced table are not correctly supported when subcaption

Open
#11,571 6 comments 0 reactions 1 assignee View on GitHub

@cderv is already working on this.

Since Nov 29, 2024.

bug crossref latex tables
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Hi, trying to use this for a research paper with no success. I need to style the tables and introducing kable_styling breaks the captions:

---
title: "repex"
format: pdf
---

```{r}
#| label: tbl-example4
#| tbl-cap: "Example4"
#| tbl-subcap: 
#|   - "Cars"
#|   - "Pressure"

kableExtra::kable(head(iris)) |> kableExtra::kable_styling(font_size = 7)
kableExtra::kable(tail(iris)) |> kableExtra::kable_styling(font_size = 7)
```

Output:
Image

Originally posted by @bautheac in #4517

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.