Here’s a fun alternative which doesn’t discard any parameters, for short enough enums:
#block(height: 1em, columns(4)[
1. Hello world
2. Around the
3. The world
4. World world
])
For manually numbered enums specifically (1. 2. 3.
instead of + + +
), this more automatic solution also works:
#let henum(it) = [
#let items = if it.func() == enum {
enum.children.len()
} else if it.has("children") {
it.children.filter(x => x.func() == enum.item).len()
} else {
panic("Unknown input")
}
#show enum.item: it => [#it #colbreak()]
#columns(items)[
#it
]
]
// Add a colbreak after every item
#henum[
1. aaaa
2. bbbb
3. ccccc
4. ddddd
]