How to reference list items?

If you have a list with items in it, can you label individual items and reference them? e.g.

#set enum(numbering: "(a)")
+ foo
+ bar <label>

@label is a reference to a list item.
// desired output: (b) is a reference to a list item.

Furthermore, if the list is nested, is there a way to accumulate the reference? e.g.

#set enum(numbering: "(a)")
1. foo
2. bar
  + foobar
  + foofoo <label>

@label is a reference to a list item.
// desired output: 2(b) is a reference to a nested list item.
1 Like

Take a look at this Github issue.

hmm i see. far from ideal but I guess it’s better than nothing.

Is this feature available in Typst now, or on a roadmap somewhere?

no, not yet build in. The itemize package provides this functionality.

Not on the official roadmap, but an open GitHub issue exists (linked above by @ParaN3xus).