diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-29 21:25:40 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-29 21:25:40 +0200 |
| commit | ce40702a501c3159db89693bd7da713ae1b4c011 (patch) | |
| tree | 1186ac83a59c7ce1b08b072ac82292338111824e /src/data/_base.typ | |
| parent | afd538d6af0baf8a1861ff2cdef881edbfb57000 (diff) | |
feat(typst): embed fonts
Diffstat (limited to 'src/data/_base.typ')
| -rw-r--r-- | src/data/_base.typ | 14 |
1 files changed, 14 insertions, 0 deletions
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 +} |
