renderreport 0.1.0-alpha.3

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
// Image Component
// Image with optional caption

#let report-image(data) = {
  let img-width = if data.width != none { eval(data.width) } else { 100% }

  align(center)[
    #figure(
      image(data.src, width: img-width, alt: data.alt),
      caption: if data.caption != none { data.caption } else { none },
    )
  ]
}