From a2851c632b9028f22713e2efbddf2b8a42407e73 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Wed, 23 Apr 2025 21:50:06 +0200 Subject: [PATCH] Add an example of show-set `place.clearance` for figures --- crates/typst-library/src/model/figure.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/typst-library/src/model/figure.rs b/crates/typst-library/src/model/figure.rs index 78a79a8e2..f55b5d8ae 100644 --- a/crates/typst-library/src/model/figure.rs +++ b/crates/typst-library/src/model/figure.rs @@ -132,6 +132,9 @@ pub struct FigureElem { /// caption: [A glacier], /// image("glacier.jpg", width: 60%), /// ) + /// #show figure: set place( + /// clearance: 1em, + /// ) /// #lorem(60) /// ``` pub placement: Option>,