#layout(size => {
  let body = [
#show figure.where(kind: "tytable"): set block(breakable: false)
#figure(
  kind: "tytable",
  supplement: "Table",

block[
  #table(
    columns: (auto, auto),
    stroke: none,
    rows: auto,
    align: right,
    fill: none,
    table.hline(y: 0, start: 0, end: 2, stroke: 0.08em + black),
    table.hline(y: 1, start: 0, end: 2, stroke: 0.05em + black),
    table.hline(y: 3, start: 0, end: 2, stroke: 0.08em + black),
    table.header(
      repeat: true,
      [A],[B],
    ),
    [1],[2],
    [3],[4],
  )
]
)
  ]
  let body-size = measure(body)
  let target-width = size.width * 1
  if true {
    let factor = target-width / body-size.width * 100%
    scale(x: factor, y: factor, reflow: true, body)
  } else {
    body
  }
})