How can I change the spacing between lines of a math.equation in "block" mode?

I would like to change the spacing above and below the lines in a math equation, but I do not know how to do it.

I have three other rules set which reflect how I want my spacing to look but I cannot work out a way to get the math.equation to have a different spacing.

#set par(leading: 1.45em)
#show raw: set par(leading: 1.7em)
#show par: set block(spacing: 1.5em)
#show math.equation.where(block: true): // not sure what goes here

Similar to paragraphs:

#show math.equation.where(block: true): set block(spacing: 1.5em)

My understanding of block spacing is incomplete, but I think that the spacing between two blocks is the maximum of the upper block’s below and the lower block’s above. So if you already have a par show rule and then add an equation rule, you may not see the difference as the spacing was already increased.

I think that this solution just sets the spacing above and below an equation. I was unclear, but I meant the actual spacing between lines within an equation that has line breaks.

So, if I have the two-line equation below, I would like to customise the spacing between the first line (x = 4 + 3) and the second line (= 7)

// mystery rule goes here: #show ?: ?
$
x &= 4 + 3 \
  &= 7
$

Ah! that would be:

#show math.equation.where(block: true): set par(leading: 1.5em)
$
x &= 4 + 3 \
  &= 7
$

:slight_smile:

1 Like