// Define the appendix function
#let appendix = it => {
appendix_counter.step(); // Increment the counter
heading(numbering:none , supplement: "Appendix")[
A#lower[ppendix]
#appendix_counter.display("A.") #swiggly line here
#h(5pt)
#it
]
}
I keep getting this error:
caused this warning:
`counter.display `without context is deprecated
Use it in a `context` expression instead
Hello @This_isYE, please update your question your topic! I think something like “How do I fix the warning “counter.display without context is deprecated””? should do.
P.S.: don’t hesitate to provide a reproducible example, for example, your code is missing the variable appendix_counter. Removing any unnecessary parts of your code to produce a minimal example also helps.
It is absolutely not a nuisance, sorry if I sounded harsh. I meant to give you advice on how to best receive an answer promptly!
You cannot run Typst on the forum, what I meant is that you should provide code that can run standalone. Basically, copy paste what you wrote in an editor and see if it compiles. If it does not, remove unnecessary elements that are not relevant to the question.
Don’t hesitate to ask more questions if you need to!