How do I label a section of a list in typst, for example labeling the first 3 elements of a list with "These are the first 3 list elements"? I would like the label to be shown on the right of the list elements, without interrupting the list contents. I would also like the label to show which list elements it is labeling using a symbol in the shape of the } character. Thanks in advanced.
#How to label a section of a list
3 messages · Page 1 of 1 (latest)
I think this matches what you're trying to do. https://forum.typst.app/t/how-to-right-annotate-a-span-of-list-items-with-a-brace-and-text/6013
Typst Forum
I want to annotate list items with a right brace and text, and only some of them. I currently have a janky math based version which is unsatisfactory, and furthermore, changes the font. Current effort: Example code: #set math.cases(reverse: true) $ #[ - Item 1 - Item 2 ] \ cases( #[ - Item 3 - Item 4 ...
in general for anything about list formatting, the package itemize is potentially a better starting point than the regular list, because it exposes more layout details. But it doesn't do this out of the box