renderreport 0.2.0

Data-driven report generation with Typst as embedded render engine — no CLI dependency
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Columns Layout Component
// Asymmetric two-column layout with flexible width ratio

#let columns(data) = {
  let gap = if data.gap != none { data.gap } else { spacing-4 }
  let right_width = 1.0 - data.left_width

  block(width: 100%)[
    #grid(
      columns: (data.left_width * 100% - gap * 0.5, right_width * 100% - gap * 0.5),
      column-gutter: gap,

      block(width: 100%)[#data.left],
      block(width: 100%)[#data.right],
    )
  ]
}