How do I left-align list items in a centered list?

See below code:

= Unwanted aligned:
#align(center, [
  + This is a long list entry. Every item is centered!
  + Small entry
  + Booze
])

= Wanted aligned:
#align(center, [
  + #align(left, [This is a long list entry, but how I want it!])
  + #align(left, [Small entry])
  + #align(left, [Booze])
])

My question is: I would like the output under the “Wanted aligned”. Right now I can solve this by specifying the alignment for each list item, but this is a bit tedious.

Is there a better way to achieve this?

Use show statement:

#align(
  center,
  [
    #show enum.item: align.with(left)
    + This is a long list entry. Every item is centered!
    + Small entry
    + Booze
  ],
)
3 Likes

Alternatively, make a centered block (that is by default only the width required by the list) within which everything is left-aligned. This also works if there is more content than just the list:

#align(center, block[
  #set align(left)
  + This is a long list entry, but how I want it!
  + Small entry
  + Booze
  voilà
])
1 Like

Thanks both of you! It’s a shame that I can only mark one as a solution, but it worked perfectly :smiley: