Skip to content

fig cap location not changing in revealjs #8938

@vrbiki

Description

@vrbiki

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcrossrefrevealjsIssues with the revealjs format

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions