The following is indented:
#set par(first-line-indent: 20pt, hanging-indent: 20pt)
First line #lorem(100)
Second line
$"inline equations should also work"$
$ "block equations are handled separately" $
#set par(first-line-indent: 0pt, hanging-indent: 0pt)
Normal indentation again
#set par(first-line-indent: 20pt, hanging-indent: 20pt)
Minimierung von $tilde(f)^l_alpha_l$ mit
$
tilde(f)^l_alpha_l (x) = f(x) + alpha_l/2 (uv(x)^l - x)^T (ov(x)_l - x)
$
mit $x^l = [uv(x)^l, ov(x)^l]$ und $alpha_l >= max {0, -min_(x in X^l) lambda_min (x)}$
#set par(first-line-indent: 0pt, hanging-indent: 0pt)
It does work when I add a / after the equation, but then the next line is pushed to the next page (it’s right at the end of the page), without the / it fits beneath the eqaution.
first-line-indent is ignored for the “first” paragraph after certain elements (headings and block equations)
If you add a \ after the equation, this will make the following paragraph start with a blank line (and the line with text on it then follows hanging-indent.
This means that if there isn’t a pagebreak there, it will add additional vertical whitespace.
Block equations are not affected by either indent, but also unaffected by placing a #h(20pt) infront of them (this h will be on its own line and not affect the equation)
Code for example image
#[
#set par(first-line-indent: 20pt, hanging-indent: 20pt)
The first paragraph always has a `first-line-indent` of 0.
#lorem(10)
Later paragraphs respect `first-line-indent`. #lorem(10)
Minimierung von $tilde(f)^l_alpha_l$ mit
$
tilde(f)^l_alpha_l (x) = f(x) + alpha_l/2 (bold(x)^l - x)^T (bold(x)_l - x)
$
mit $x^l = [bold(x)^l, bold(x)^l]$ und $alpha_l >= max {0, -min_(x in X^l) lambda_min (x)}$.
This is handled as a "first paragraph" because it follows a block equation.
]
Normal indent. #lorem(20)
#lorem(20)
$
tilde(f)^l_alpha_l (x) = f(x) + alpha_l/2 (bold(x)^l - x)^T (bold(x)_l - x)
$
#lorem(20)