aboutsummaryrefslogtreecommitdiff
path: root/src/eval/template_math_block.typ
blob: ecadae14b817391b8490844b76e132d116101405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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(
    fill: none,
    margin: margin,
    width: m.width + margin*2, 
    height: m.height + margin*2,
  )
  body
}

#display()[$ !! $]