-
Notifications
You must be signed in to change notification settings - Fork 394
Open
Labels
bugSomething isn't workingSomething isn't workingcrossreflatexLaTeX engines related libraries and technologiesLaTeX engines related libraries and technologieslayoutneeds-discussionIssues that require a team-wide discussion before proceeding furtherIssues that require a team-wide discussion before proceeding further
Description
Bug description
When plotting multiple figures in a single chunk with parameters such as layout-ncol: 3 and fig-subcap, the subcaption numbering is incorrect in the PDF output. All subcaptions start with "a)" instead of incrementing as expected ("a)", "b)", "c)", etc.).
Steps to reproduce
Create and render this document to PDF.
---
title: "Test subcaption"
author: "me"
format:
pdf:
keep-tex: true
html: default
---
::: {.callout-note appearance="default"}
test
:::
::: {.callout-important appearance="simple"}
here come some plots
:::
```{r}
#| layout-ncol: 3
#| fig-subcap:
#| - This
#| - is a
#| - test
x <- c(1:100)
y <- x+x+2
plot(x, y)
hist(y, breaks=5)
barplot(table(x,y))
Or use minimal example here https://github.com/produnis/minimal_examples/tree/subcaption
Expected behavior
The 3 figures are numbered "a)", "b)", "c)"
Actual behavior
The 3 figures are numbered as "a)" "a)" "a)".
Your environment
archlinux, quarto 1.6.32 and 1.5.57
Quarto check output
$ quarto check
Quarto 1.6.32
[✓] Checking environment information...
Quarto cache location: /home/produnis/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.6.32
Path: /opt/quarto/bin
[✓] Checking tools....................OK
Chromium: 869685
TinyTeX: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /sbin
Version: undefined
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.12.7
Path: /sbin/python3
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with python3 -m pip install jupyter
[✓] Checking R installation...........OK
Version: 4.4.2
Path: /usr/lib64/R
LibPaths:
- /home/produnis/R/x86_64-pc-linux-gnu-library/4.4
- /usr/lib/R/library
knitr: 1.48
rmarkdown: 2.27
[✓] Checking Knitr engine render......OK
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcrossreflatexLaTeX engines related libraries and technologiesLaTeX engines related libraries and technologieslayoutneeds-discussionIssues that require a team-wide discussion before proceeding furtherIssues that require a team-wide discussion before proceeding further