How to use different numbering formats for each enumerated list level?

I’m a lawyer in Poland and I recently started using Typst for writing documents, which allowed me to use Emacs in my work to a larger extent. I created couple of templates for letterheads and use Tempel templates for types of documents, that I need most often.

My only gripe with Typst is, that I couldn’t find any obvious way to have different characters after numbers or letters in different levels of numbered lists (e.g. “1.” for 1st level, “1)” for 2nd level), which is style typically used in Poland.

I think it would be something like

#show heading.where(level: 1): set heading(numbering: "1.")

Hello @PiotrPyclik, you might be interested in numbly, if you want an easy way to specify different numbering cases.

Thanks, I actually found a solution using numbly:

#import "@preview/numbly:0.1.0": numbly

#set enum(
  full:true, 
  numbering: numbly("{1:1}.", "{2:1})", "{3:a})" )
)
2 Likes