aboutsummaryrefslogtreecommitdiff
path: root/src/eval/template_math_content.typ
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-29 19:55:57 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-29 19:55:57 +0200
commitafd538d6af0baf8a1861ff2cdef881edbfb57000 (patch)
treedb41d566c318163cb41916defd7cd274b92a9a43 /src/eval/template_math_content.typ
parent0535fa152ae990a28d0b7b9a59e96911074118b8 (diff)
feat(): support math content
Diffstat (limited to 'src/eval/template_math_content.typ')
-rw-r--r--src/eval/template_math_content.typ12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/eval/template_math_content.typ b/src/eval/template_math_content.typ
new file mode 100644
index 0000000..03732af
--- /dev/null
+++ b/src/eval/template_math_content.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()[$!!$]