footer: grid(
columns: (46cm - margin-left, auto, auto),
block(
width: 100%,
fill: primary_color,
outset: (left: 10000pt),
radius: (top-right: 15%),
)[
#grid(
columns: (auto, auto, auto),
align: left + horizon,
stack(
dir: ltr,
spacing: 40pt,
image(height: 100%, author_image),
stack(
dir: ttb,
spacing: 12pt,
text(size: 22pt, weight: "bold", event_name),
v(20pt),
..address_lines.map(x => text(size: 22pt, x)),
),
),
h(50pt),
block(inset: 1cm, fill: red, height: 100%, width: 100%)[#grid(
align: left + horizon,
columns: (auto,) * column_count,
..additional_images.map(x => image(x, height: auto)),
)
]
)
],
h(2cm),
block(width: 100%, height: 100%)[
#line(length: 100%)
#v(-1cm)
#set text(size: 14pt)
#if bibliography_name != "" {
bibliography(title: none, bibliography_name)
} else {}
],
),
)
I have this footer, which should contain an array of optional images. I use a min(array.len(), 3) function to calculate column count. But when the images break to a second row, they clip outside of the block and look wrong. I can’t find a way to automatically fit them into the grid/block correctly.
