feat: add sticky captions and heading

This commit is contained in:
Kristofers Solo 2025-11-03 16:14:18 +02:00
parent 3dd154a517
commit 54f7a8cef8
Signed by: kristoferssolo
GPG Key ID: 8687F2D3EEE6F0ED

View File

@ -1,8 +1,5 @@
#import "utils.typ": (
make-abstract,
make-attachments,
make-documentary-page,
make-title,
make-abstract, make-attachments, make-documentary-page, make-title,
)
#let indent = 1cm
@ -98,7 +95,7 @@
// Headings
set heading(numbering: "1.1.")
show heading: set block(spacing: 2em)
show heading: set block(spacing: 2em, sticky: true)
show heading: it => {
if it.level == 1 {
pagebreak(weak: true)
@ -143,6 +140,7 @@
show figure.where(kind: image): set figure(supplement: "att")
show figure.caption.where(kind: image): set align(start)
show figure.caption: set block(sticky: true)
show figure.caption: set text(size: 11pt)
show figure.where(kind: image): set figure.caption(
position: bottom,