aboutsummaryrefslogtreecommitdiff
path: root/src/eval/template_math_block.typ
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-29 21:25:40 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-29 21:25:40 +0200
commitce40702a501c3159db89693bd7da713ae1b4c011 (patch)
tree1186ac83a59c7ce1b08b072ac82292338111824e /src/eval/template_math_block.typ
parentafd538d6af0baf8a1861ff2cdef881edbfb57000 (diff)
feat(typst): embed fonts
Diffstat (limited to 'src/eval/template_math_block.typ')
-rw-r--r--src/eval/template_math_block.typ14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/eval/template_math_block.typ b/src/eval/template_math_block.typ
index 3d5891a..ecadae1 100644
--- a/src/eval/template_math_block.typ
+++ b/src/eval/template_math_block.typ
@@ -1,11 +1,15 @@
-#set page(
- fill: none,
- margin: 2pt,
-);
+#show math.equation: set text(font: "New Computer Modern Math")
+#show math.text: set text(font: "New Computer Modern")
#let display(body) = context {
+ 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
}