The fig-cap-location chunk option does not work as expected. I can do “bottom” or “margin” but “top” works the same way as “bottom”.
plot(pressure)
Figure 1: A Sample Figure
Here is yaml for the code chunk:
#| label: fig-a
#| fig-cap: “A Sample Figure”
#| fig-cap-location: top
(I tried to find a function that would allow me to fetch these values, but I didn’t see one so I’ve pasted them here.)
RStudio version: RStudio 2022.07.1+554 “Spotted Wakerobin”
Release (7872775ebddc40635780ca1ed238934c3345c5de, 2022-07-22)
for macOS Mozilla/5.0 (Macintosh; Intel Mac OS X 12_5_0) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.10 Chrome/69.0.3497.128 Safari/537.36
quarto –version 1.1.140
When I run this I get the fig-cap at the bottom of the figure even if I try to specify “top”.
“Top” May Not Work, But “Margin” Does
Next I’ll show I am able to change the location to “margin” and that works as expected (provided the html window is wide enough to allow for the caption to appear in the margin).
I wonder whether there is something else going on that I don’t understand. The typography when I use “margin” seems to be a smaller font. And when I use either “bottom” or “top” there seems to be a lot of space between the bottom of the figure and the caption.