Smart handling of consecutive references (i.e. cleveref for Typst).
Figures, tables, listings, sections, equations and footnotes example
See example/example.typ.

Subfigures example
See example/example-subfig.typ.

Heading-dependent numbering of subfigures
See example/example-subfig-headings.typ.

Compact consecutive references
See example/example-compact.typ.

Sort references in numerical order
References are sorted by counter value, so alphabetic (“A”, “B”, “C”) and roman (“i”, “ii”, “iii”) numbering sort in the same order as decimal numbering. Duplicate references are removed when sorting.

Subpar example
See example/example-subpar.typ.
