Typst template: polyfill divider for typst < 0.15.

This commit is contained in:
John MacFarlane
2026-07-09 01:28:43 +02:00
parent d2f33e5b53
commit d982f9f5ec
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -5,6 +5,10 @@
stroke: none
)
#let horizontalrule = line(start: (25%,0%), end: (75%,0%))
// Polyfill divider to allow compiling with typst < 0.15:
#let divider = if "divider" in std { divider } else { horizontalRule }
#show figure.where(
kind: table
): set figure.caption(position: top)