From 6371459259cb351a5350639a2932c570b555262e Mon Sep 17 00:00:00 2001 From: Sven Vogel Date: Thu, 18 Jul 2024 12:18:01 +0200 Subject: [PATCH] changed display supplement to bold text --- src/style.typ | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/style.typ b/src/style.typ index 0af11a0..0194996 100644 --- a/src/style.typ +++ b/src/style.typ @@ -82,6 +82,18 @@ show figure: set block(breakable: true) + // make figure supplements bold + // based on: https://github.com/typst/typst/discussions/3871 + show figure.caption: c => [ + #if c.body.fields().len() > 0 { + text(weight: "semibold")[ + #c.supplement #c.counter.display() + ] + c.separator + } + #c.body + ] + // APA style table set table( inset: 0.5em,