Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs/authoring/figures.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,14 @@ Note that vertical alignment isn't limited to images, you can also vertically al

## Computations

### Figures
Figures produced by executable code blocks are automatically included in your document.
To set the ID, caption and link, use the chunk options `label`, `fig-cap` and `fig-link` respectively.
Other attributes, e.g. `fig-align` and `fig-alt`, can be set using the chunk option of the same name.

You can control the default size for computational figures using the `fig-width` and `fig-height` options in the document header.
Read more about these options in [Execution Options: Figure Options](https://quarto.org/docs/computations/execution-options.html#figure-options).

### Layout

Note that figure layout attributes also work for figures produced by executable code blocks. Here are examples for both Jupyter and Knitr:

Expand Down