Court filings often require that paragraphs be numbered sequentially throughout the filing. Even if there are headings that interrupt the paragraphs, the next paragraph must be numbered sequentially from the paragraph above it.
In Typst, the use of the + to number a paragraph does not number sequentially (or I could not make it work) if a heading is inserted. Numbers of the paragraph start over.
To overcome the problem of paragraphs not being numbered sequentially if a heading is inserted I used counter.
#let para(body) = [
#para-counter.step()
#context para-counter.display("1.") #body
]
Each paragraph is in a block, like so:
#para[
This is a test of numbering paragraphs of a complaint and of using double
spacing for the text-24pt. Let's see if it wraps around and then does a
correct hanging indent.]\
But the paragraph does not create a hanging -indent, which is something I want.
The code
#set par(hanging-indent: 1.3em)
does create a hanging-indent in the #para[ block text, but only in the first paragraph. The remaining paragraphs are indented in the wrong place.
The problem is I have to put #set par(hanging-indent: 1.3em) above each @par to get hanging-indents to form correctly with each paragraph.
If I don’t do that, I get the first paragraph correctly numbered and correctly formated with a hanging-indent. But the subsequent paragraph indent in the wrong place, as the screen shot shows.
What I need is code that sets up hanging-indents that works throughout the document.
Any suggestions?

