quarto-figcap-demo
The “problem”/current behavior
Figure in .column-body-outset
div. The figcaption
element does not inherit .column-body-outset
, which is applied only to the image itself.1
Appearance in RStudio visual editor
If this behavior is intended, I would expect it to look different in the visual editor (the figure caption appears inside of what I would think would translate into the <div class="column-body-outset">
).
Desired output
Here’s how the same element would look rendered if I add column-body-outset
to the <figcaption>
’s classes (outlines added to make it easier to see).
More examples
The image below is in a div with .column-page-inset
.
Next, we’ve got one in .column-page-left
.
And here come the skulls again, but with .column-screen-right
.
Now .column-screen-left
.
Examples with grid columns
Margin figures and images
Per OrenBochman’s comment in quarto-cli Issue #8666, the captions for images placed in margins using .column-margin
are appearing in the body column with Quarto version 1.4.
![a caption](file_name.png){.column-margin}
Now let’s see how it works with the lightbox
class applied to Figure 11:
Footnotes
Image used is from the Appendices of The Accessibility Object Model: Explainer by Alice Boxhall, James Craig, Dominic Mazzoni, and Alexander Surkov (2021).↩︎