From 54f7a8cef8c39c0da94e562812f0e313c5ac610c Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Mon, 3 Nov 2025 16:14:18 +0200 Subject: [PATCH] feat: add sticky captions and heading --- src/lib.typ | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib.typ b/src/lib.typ index 2f576b6..809c183 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -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,