How to make a single list numbered with letters, without using the `#set` command?

Hello! How to make a single list to be numbered with letters without using the #set command?

I tried this:

#enum(numbering: "a)")[
  + foo
  + bar
]

+ foo
+ bar

but the output doesn’t look correct. Currently, the output is

a) 1. foo
   2. bar

whereas I expected

a) foo
b) bar 

I also tried

#enum(numbering: "a)",
  enum.item[foo],
  enum.item[bar]
)

+ foo
+ bar

and it works fine, but maybe there is a simpler syntax for this?

Hello @jsx97,

this is a bit tricky, but enum is defined as enum(..children), where the .. is very important. It is a variadic argument, meaning it can be accepted multiple times. The simpler syntax is

#enum(numbering: "a)")[foo][bar]

which is equivalent to

#enum(numbering: "a)", "foo", "bar")

By writing your first example, you actually write the following

#enum(numbering: "a)", enum[foo][bar])
2 Likes