From 69d1c5c0882129396b0d5b8ad186a1d8ae120c53 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 11 Jul 2023 22:34:00 -0400 Subject: [PATCH] main.typ: better spacing on figures --- main.typ | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/main.typ b/main.typ index 2c07ebf..2adbd9a 100644 --- a/main.typ +++ b/main.typ @@ -74,6 +74,21 @@ set text(size: normal-size, font: font, weight: "light") show link: body => text(fill: rgb("#777777"), weight: "bold", body) show math.equation: eq => eq + show figure: fig => { + show: pad.with(x: 1em) + set align(center) + v(1em) + fig.body + if fig.has("caption") { + v(1em, weak: true) + [Figure ] + if fig.numbering != none { + [#counter(figure).display(fig.numbering)] + } + [. ] + fig.caption + } + } set table(inset: 10pt) show heading: set text(font: heading_font, weight: "black") show raw.where(block: true): txt => pad(