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()[$ !! $]