diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-29 19:55:57 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-29 19:55:57 +0200 |
| commit | afd538d6af0baf8a1861ff2cdef881edbfb57000 (patch) | |
| tree | db41d566c318163cb41916defd7cd274b92a9a43 /src/eval/template_math_block.typ | |
| parent | 0535fa152ae990a28d0b7b9a59e96911074118b8 (diff) | |
feat(): support math content
Diffstat (limited to 'src/eval/template_math_block.typ')
| -rw-r--r-- | src/eval/template_math_block.typ | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/eval/template_math_block.typ b/src/eval/template_math_block.typ new file mode 100644 index 0000000..3d5891a --- /dev/null +++ b/src/eval/template_math_block.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()[$ !! $] |
