quarto-dev / quarto-dev/quarto-cli

fig cap location not changing in revealjs

Open
#8,938 8 comments 2 reactions 2 assignees View on GitHub

@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.
Screenshot 2024-02-29 at 10 59 37 AM

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

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.