aboutsummaryrefslogtreecommitdiff
path: root/src/eval/template_math_content.typ
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval/template_math_content.typ')
-rw-r--r--src/eval/template_math_content.typ15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/eval/template_math_content.typ b/src/eval/template_math_content.typ
index 03732af..cd31ef6 100644
--- a/src/eval/template_math_content.typ
+++ b/src/eval/template_math_content.typ
@@ -1,11 +1,14 @@
-#set page(
- fill: none,
- margin: 2pt,
-);
-
#let display(body) = context {
+ show math.equation: set text(font: "New Computer Modern Math")
+
+ let margin = 2pt
let m = measure(body)
- set page(width: m.width + page.margin.length*2, height: m.height + page.margin.length*2)
+ set page(
+ fill: none,
+ margin: margin,
+ width: m.width + margin*2,
+ height: m.height + margin*2,
+ )
body
}