mirror of
https://github.com/kristoferssolo/LU-DF-Typst-Template.git
synced 2025-12-31 05:32:34 +00:00
feat: add sticky captions and heading
This commit is contained in:
parent
3dd154a517
commit
54f7a8cef8
@ -1,8 +1,5 @@
|
|||||||
#import "utils.typ": (
|
#import "utils.typ": (
|
||||||
make-abstract,
|
make-abstract, make-attachments, make-documentary-page, make-title,
|
||||||
make-attachments,
|
|
||||||
make-documentary-page,
|
|
||||||
make-title,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
#let indent = 1cm
|
#let indent = 1cm
|
||||||
@ -98,7 +95,7 @@
|
|||||||
|
|
||||||
// Headings
|
// Headings
|
||||||
set heading(numbering: "1.1.")
|
set heading(numbering: "1.1.")
|
||||||
show heading: set block(spacing: 2em)
|
show heading: set block(spacing: 2em, sticky: true)
|
||||||
show heading: it => {
|
show heading: it => {
|
||||||
if it.level == 1 {
|
if it.level == 1 {
|
||||||
pagebreak(weak: true)
|
pagebreak(weak: true)
|
||||||
@ -143,6 +140,7 @@
|
|||||||
|
|
||||||
show figure.where(kind: image): set figure(supplement: "att")
|
show figure.where(kind: image): set figure(supplement: "att")
|
||||||
show figure.caption.where(kind: image): set align(start)
|
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.caption: set text(size: 11pt)
|
||||||
show figure.where(kind: image): set figure.caption(
|
show figure.where(kind: image): set figure.caption(
|
||||||
position: bottom,
|
position: bottom,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user