How to set custom numbering for different ordered list levels (e.g., Chinese numerals for L1, Arabic for L2)?

Hi Typst community,

I’m looking to customize the numbering of my ordered lists in Typst as follows:

  • Level 1 lists: Should be numbered with Chinese numerals (e.g., 一, 二, 三, …).
  • Level 2 lists: Should be numbered with standard Arabic numerals (e.g., 1, 2, 3, …).

Hi! You can write a function for that, but it would be easier to use https://typst.app/universe/package/numbly:

#import "@preview/numbly:0.1.0": numbly
#set heading(numbering: numbly(
  "{1:一}、", // use {level:format} to specify the format
  "{2}.", // if format is not specified, arabic numbers will be used
))

Edit: The above is for headings, not lists. Please see the reply below for lists.

Hi. This is a duplicate of How to use different numbering formats for each enumerated list level?, just like How can I number a nested list with "(1)" and "a)" markers?.

Duplicate of

Thanks for pointing it out @Andrew! @ sanbei101344, feel free to flag your own post/message me if you think this is an error.