quarto-dev / quarto-dev/quarto-cli
fig cap location not changing in revealjs
Open
@cderv is already working on this.
Since Feb 29, 2024.
bug
crossref
revealjs
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
When I try to place the figure caption at the top of my figure it still defaults to the bottom.
Steps to reproduce
---
title: "test fig cap"
format:
revealjs:
fig-cap-location: top
editor: visual
---
## Slide
```{r}
#| fig-cap: "This caption should appear on top but doesn't"
#| fig-cap-location: top
#| label: fig-whatever
plot(1:10)
```
Does reference @fig-whatever help?
Expected behavior
By adding fig-cap-location: top to the code chunk (I also added it to the YAML in case the global declaration would help) I would have expected the caption to appear above the rendered plot.
Actual behavior
Instead it appears below.
Your environment
- IDE RStudio Version 2023.12.1+402 (2023.12.1+402)
- MacOS 14.3.1 (23D60)
Quarto check output
Quarto 1.4.549
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.