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

  let m = measure(body)

  let data = param(m)

  set page(
    fill: none,
    margin: data.margin,
    width: data.width, 
    height: data.height,
  )
  
  body
}