What is the easiest way to horizontally visually flatten nested enum list?

If we accept the indent, maybe it can be done like this, with measure to always get the right size. It seems to produce the right spacing - it seems to be correct, but I’m not sure if it always is.

#import "@preview/numbly:0.1.0": numbly
#set enum(full: true, numbering: numbly(
  "{1:1}.",
  "{2:A}.",
))

#show enum: it => {
  context {
    let size = measure((it.numbering)(1))
    set enum(indent: -size.width - it.body-indent)
    it
  }
}

+ What is the primary purpose of machine learning according to the text?
  + To replace human decision-making
  + To analyze and extract useful information from large volumes of data
  + To create complex computer networks
  + To develop new storage technologies

bild

(And also - the question if it’s a bug when that set enum thing works - that came up recently)

1 Like