aboutsummaryrefslogtreecommitdiff
path: root/src/eval/template_math_block.typ
blob: b36f0639c1f0d50c69b7de82b54353c725b914c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#let display(body) = context {
  show math.equation: set text(font: "New Computer Modern Math")
  show math.text: set text(font: "New Computer Modern")

  let margin = 4pt
  let m = measure(body)
  set page(
    fill: none,
    margin: margin,
    width: m.width + margin*2, 
    height: m.height + margin*2,
  )
  body
}

#display()[$ !! $]