However, I would like to number only every 5th line (for example, lines 5, 10, 15, etc.). Is there a way to achieve this in Typst? I would appreciate any help or suggestions on how to implement this!
The numbering parameter of par.line also accepts a function which the line number is passed to. You can use this to filter out numbers that are not divisible by 5 like this:
#set par.line(numbering: i => if calc.rem(i, 5) == 0 { i })