I try to change the style of enumeration labels, but revert the change for the item text.
This does however not work for single-item (sub) enumerations:
I think the second one is the right way. There is unfortunately a kind of complexity cliff when you need to customize a full numbering. But maybe it doesn’t look so bad if you separate styling from the numbering logic:
#let full-numbering(patterns: ("a.", "1.", "i."), ..args) = {
let n = args.pos()
let i = n.len()
let pattern = patterns.at(calc.rem(i, patterns.len()) - 1)
numbering(pattern, ..n.slice(i - 1))
}
#set enum(
full: true,
numbering: (..args) => text(blue, weight: "bold", full-numbering(..args)),
)
+ now correct
+ correct
+ correct
+ also correct
+ correct
+ correct
+ also correct#parbreak()
+ correct
Thanks, so would you happen to know whether the behaviour of my first snippet is a bug or a feature? I think your code looks a lot better than my second snippet, but it’s still a lot more complicated than the three lines of the first.