because I want to have indent after headings too. But this does include indent after math blocks too:
#lorem(30)
$
1+1 = 2
$
#lorem(30)
where I don’t want to indent the following normal text paragraph, as it should be just continuation of the first one. Is there a built-in noob-friendly way how to achieve both at the same time? Thank you!
I guess the problem is Unexpected indentation after figures, lists and block equations (#3206).
The workaround is adding a line break and wrapping with a box of width: 100%.
#set par(first-line-indent: (amount: 2em, all: true), justify: true)
= Bad
#lorem(10), for example,
#box[$ integral x + y = z $]
shows that the integral of $x + y$ is $z$.
= Good
#lorem(10), for example, \ // 👈 Add a line break
#box(width: 100%)[$ integral x + y = z $] // 👈 Wrap with a box
shows that the integral of $x + y$ is $z$.
Thanks, this works! But it changes the height of the equation, see image below (eq. 3 is with your box, eq. 4 is what I had before with wrong indentation)