Hi there! I'm working on a thesis template, and have inherited some of the code. I'm trying to make a List of Figures, but I'm getting an error even from the numbering of the figures. This is the relevant part that gives the error:
set figure(numbering: (..args) => {
let chapter = counter(heading).display((..nums) => nums.pos().at(0))
[#chapter.numbering("1", ..args.pos())]
})
the error being:
Error: Command failed: typst compile "/Users/roaldarbol/Filen/Projects/templates/thesis-template/examples/example-myst/_build/temp/mystrCZDha/MyST-Thesis.typ"
error: type integer has no method `numbering`
┌─ _build/temp/mystrCZDha/typst-thesis.typ:71:14
│
71 │ [#chapter.numbering("1", ..args.pos())]
│ ^^^^^^^^^