Skip to content

How to add a note under a figure or table? #6103

Answered by cscheid
ravivmg asked this question in Q&A
Discussion options

You must be logged in to vote

In 1.4, you can do this instead:

---
title: "Reproducible Quarto Document"
format: pdf
fig-cap-location: top
---

::: {#fig-1}

```{r}
#| echo: false
plot(1:10)
```

Source: My source

My figure caption.

:::

See @fig-1.

The reason this works is that, semantically, the last paragraph of a div with fig-* identifier is its caption, and everything else before that is the figure content. But the placement of the caption is controlled by fig-cap-location.

Replies: 9 comments 58 replies

Comment options

You must be logged in to vote
13 replies
@eyayaw
Comment options

@baarthur
Comment options

@mcanouil
Comment options

@danielvartan
Comment options

@baarthur
Comment options

Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

mcanouil Aug 7, 2023
Collaborator

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@cscheid
Comment options

@MarcoPortmann
Comment options

@mcanouil
Comment options

@cscheid
Comment options

@mcanouil
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
15 replies
@mcanouil
Comment options

@mcanouil
Comment options

@cscheid
Comment options

Answer selected by mcanouil
@mcanouil
Comment options

@mcanouil
Comment options

@MarcoPortmann
Comment options

@turbanisch
Comment options

Comment options

You must be logged in to vote
5 replies
@cscheid
Comment options

@mcanouil
Comment options

@baarthur
Comment options

@mcanouil
Comment options

@cscheid
Comment options

Comment options

You must be logged in to vote
16 replies
@turbanisch
Comment options

@mcanouil
Comment options

mcanouil Nov 8, 2023
Collaborator

@cderv
Comment options

cderv Nov 8, 2023
Maintainer

@cderv
Comment options

cderv Nov 8, 2023
Maintainer

@danielvartan
Comment options

Comment options

You must be logged in to vote
3 replies
@eyayaw
Comment options

@mcanouil
Comment options

@simonreif
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
crossref tables Issues with Tables including the gt integration figures