From ce40702a501c3159db89693bd7da713ae1b4c011 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 29 Apr 2026 21:25:40 +0200 Subject: feat(typst): embed fonts --- src/data/_base.typ | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/data/_base.typ (limited to 'src/data/_base.typ') diff --git a/src/data/_base.typ b/src/data/_base.typ new file mode 100644 index 0000000..fa5b362 --- /dev/null +++ b/src/data/_base.typ @@ -0,0 +1,14 @@ +#let display(body) = context { + show math.equation: set text(font: "New Computer Modern Math") + show math.text: set text(font: "New Computer Modern") + + let margin = 4pt + let m = measure(body) + set page( + fill: none, + margin: margin, + width: m.width + margin*2, + height: m.height + margin*2, + ) + body +} -- cgit v1.2.3