changed display supplement to bold text

This commit is contained in:
Sven Vogel 2024-07-18 12:18:01 +02:00
parent ca4312bfde
commit 6371459259
1 changed files with 12 additions and 0 deletions

View File

@ -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,