How to indent paragraphs following a list without affecting the paragraph after a heading?

I would like the paragraph that follows a numbered or bullet list to be indented. I have not figured out how to do so without also affecting the first paragraph after a heading, which I’d like to keep unindented as is the default. See the example below:

#set par(first-line-indent: (amount: 1em, all: false), justify: true, leading: .6em, spacing: .6em)

= Heading

#lorem(30)

+ item 1
+ item 2
+ item 3

I would like this paragraph to be indented. #lorem(30)

Maybe something like this:

#show enum: it => it + v(0pt, weak: true) + par(none)

This inserts an empty paragraph after the enumeration, so the actual paragraph is not the first one anymore. The weak vertical space is used to remove the default spacing between the enum and the empty paragraph.

1 Like

Brilliant, thank you! It does the job and simply. Thank you also for taking time to explain how it works.

1 Like

I think block without spacing makes more sense, and none for paragraph looks weird, never seen that before.

#set par(first-line-indent: 1em, justify: true, leading: 0.6em, spacing: 0.6em)
#show enum: it => it + block(spacing: 0pt) + par[]
2 Likes