diff options
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 +} |
