Paragraphs are assigned a paragraph style where the “geometric” properties of text appearance are defined. On first approximation, paragraph styles are independent from each other.
In your case, if I understand correctly your requirement, you’d like to have the left indent of text following a heading, styled with Heading n, aligned with the heading itself, excluding the chapter number.
This is a bit complicated because heading formatting is a combination of a paragraph style (one of Heading n) and a list style (a reserved one configured with Tools
>Chapter Numbering
). When you have such a combination, left indent is no longer controlled by the paragraph style but by the list style. To add to the difficulty, the single list style controls all levels of the list. Therefore the left indent property is “multi-valued”.
Supposing you could inherit in some way the left indent from the list style into a paragraph style, which level would the paragraph style take? So, fulfilling your goal through simple inheritance is not possible.
You have then two solutions:
-
a Text Body n family of paragraph styles
You create Text Body n with n=1 to your maximum heading nesting level derived from Text Body where you set the left indent as appropriate to match Heading n.
Pro: easy to do
Cons: you must manually choose the style and must change it if you change the nesting level of the heading; manual sync with Tools
>Chapter Numbering
configuration
-
make Text Body suitable for bullet list
Create a dedicated list style: set the bullet to space on all levels. In the Position
tab of the list style, set all parameters to the same values as Tools
>Chapter Numbering
.
When the style is created, attach it to Text Body in Outline & Numbering
tab (renamed Outline & List
in 7.2.x).
When you enter your (sub-…) chapter text, type n-1 Tab
characters at the very first position of you paragraph to get the indent corresponding to level n.
When you edit your document and change heading level, put the cursor at start of paragraph and type Tab
to go one level deeper or Shift
+Tab
for one level higher.
Pros: a single paragraph style, easier to change level
Cons: list styles and their interactions with paragraph styles more difficult to understand and master by newbies; level change requires to review all paragraphs under the heading
Note: in case you have text outside headings (say an introduction before the first heading) you may need Text Body unaltered. In this case, create a paragraph style derived from Text Body and apply the trick on this derived style.
EDIT 2021-12-14
I slightly modified your chapter numbering settings (essentially changed the alignment properties) and noted the indents you defined.
I created a HeadingIndent list style as a bullet type where I copied the indents from chapter numbering. The bullet character is set to “space” so that the style really defines a list (selecting None
would cancel the list effect) and the bullet is invisible.
I attached HeadingIndent to Text Body paragraph style and used it for the text. To left-align paragraph on preceding Heading n, I press n-1 times on Tab
key.
Here is my customisation: Sample Document-ajl.odt (18.3 KB)
Important remark: don’t format your discourse with Default Paragraph Style. The intended style for that is Text Body, contrary to M$ Word. In Writer Default Paragraph Style is the ancestor of all other styles and any change you apply to it will affect all others. Default Paragraph Style is there to record shared attributes over all styles. It is its sole role (a convenient way to change the global appearance of your document without the need to proceed paragraph after paragraph, provided you don’t direct format and you don’t mess up your style hierarchy with inconsiderate style tweaking.