aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-28 21:50:21 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-28 21:50:21 +0200
commit2f2014fb9cf9b22593088f0fcc16b8b9d8a436ae (patch)
tree24b602f1d1d07f4aaf34479c26e47e32e2b11ee9
parent80ca399d821cd6380c37e507f2b1b13007174221 (diff)
feat(typst): template
-rw-r--r--template.typ12
1 files changed, 12 insertions, 0 deletions
diff --git a/template.typ b/template.typ
new file mode 100644
index 0000000..2eca2c0
--- /dev/null
+++ b/template.typ
@@ -0,0 +1,12 @@
+#set page(
+ fill: none,
+ margin: 2pt,
+);
+
+#let display(body) = context {
+ let m = measure(body)
+ set page(width: m.width + page.margin.length*2, height: m.height + page.margin.length*2)
+ body
+}
+
+#display()[$pi^2$]