I am used to separating each list of paragraphs with an upper and lower margin (LoP).
Previously I formatted each LoP with my own paragraph style (eg ‘_IstN2’) associated with a list style (in my case numbering 2).
_IstN2 defined a top and bottom margin, but only when the previous or following styles were different. So all the paragraphs of the list had zero top and bottom margins, while the margins were applied in the first and last paragraph of list, as they were different from the styles preceding and following the list
Now, I have created a single paragraph style (’_def’) to format sequences of several paragraphs that define a given type of information (eg a long definition) and that can contain within LoP.
I formatted a sequence of paragraphs with _def, transforming some into LoP by applying “numbering 2”
The margin before and after the list was clearly absent
In the contitional definition form of _def I associated _def to my ‘istN2’ style when it was applied to a list
The association works, modifying _IstN2 also modifies the list formatted with _def.
But the top and bottom margins of the list do not change, probably because writer does not recognize that the same style, _def, is applied in different contexts.
Is there any way to create this top and bottom margin for the list of paragraph block without creating new _def-dependent styles (just to create top or bottom margins) and without using direct formatting?
Edit: added file test. Initially modifying _IstN2 (e.g. from numbering2 to other numbering) automatically modified the list of paragraphs formatted with _def. In this test file attachment it no longer works
Libreoffice 7.3.5 Ubuntu 16.04
ggStili_prove_7.3_ask.odt (43.5 KB)