Post #3102636
2026-05-11 19:30 UTC
@mxp@mastodon.acm.org
#{
let s = 0
let m = 4
let rows = ()
for i in range(1, m) {
s = s + i
rows.push([])
rows.push([#i])
}
rows.push([+])
rows.push([#m])
rows.push(grid.hline())
rows.push([])
rows.push([#{ s + m }])
align(left, {
grid(
columns: 2,
align: right,
inset: 3pt,
..rows
)
})
}
Replies (1)
-
@KingmaYpe@mastodon.green 2026-05-11 19:37
@mxp@mastodon.acm.org The align left is redundant, and rows is better called cells. Anyway this could be a decent start.