Hi! Is it possible to change the “Space before” and “Space after” depending on what style will come after the paragraph? Thanks in advance
As it is, you can’t. It is up to you to design appropriate values for these spacings.
The vertical spacing between two paragraphs is the sum of space_after_previous_style + space_before_next_style. Consequently, if you play smart with combinations, you may get something closer to your expectation.
In some limited way, you can tick Do not add space between paragraphs of the same style but this suppresses any vertical spacing between two identically styled paragraphs.
When designing a style set, remember that styles do not describe typographical aspects but rather establish a semantic markup as to the significance you, as an author, give to text. Therefore you have a one-to-one mapping between significance and style. If your styles are cleanly discriminant, there should be no (semantic) ambiguity of style sequence in your text. The “smart” configuration Ialluded to above can then “easily” be achieved.