From 8e867c3cdebcebe0d28aa2aea53a08f4e49caa1a Mon Sep 17 00:00:00 2001 From: Charlotte Wickham Date: Fri, 14 Jul 2023 11:37:16 -0700 Subject: [PATCH] Add intro text and link to global figure options --- docs/authoring/figures.qmd | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/authoring/figures.qmd b/docs/authoring/figures.qmd index 04d9427b1e..533afc91b5 100644 --- a/docs/authoring/figures.qmd +++ b/docs/authoring/figures.qmd @@ -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: