Chapter Numbering set to Center is not Centered

I’m trying to understand the settings in Chapter Numbering.

I’m using Heading 1 for a Chapter Title. Heading 1 Alignment tab is set to Center. Heading 1 Indents & Spacing tab has Before text set to 0.00". Without using Chapter Numbering this is centered in the page. The result is:


Then, I apply Chapter Numbering. In the Numbering tab: Number is set to 1,2,3; Paragraph style is set to Heading 1, Show sublevels is set to 1; Before is set to Chapter. In the Position tab: Numbering alignment is set to Centered; Aligned at is set to 0.00"; Numbering followed by is set to New Line; Indent at is set to 0.00". The result is:

If I change Aligned at to 0.50", the result is:

Can anyone tell me why this change in Aligned at is needed and what it means?

Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 12; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Your confusion comes from a not correctly documented fact about numbered lists.

Heading numbering is based on the generic numbered list feature. When you register a paragraph style in the outline hierarchy with Tools>Heading Numbering, an internal list style (Outline Numbering as can be seen in Outline & List tab of Heading n style family) is applied on the members of the hierarchy.

This means that everything about the interaction between list styles and paragraph styles equally applies to heading numbering.

The most important point is that the list style takes over the left side layout of the paragraph. You should not try to “compensate” or tune the left look of your heading/list item by playing with Indents & Spacing tab in the paragraph style. Doing so will generally make things worse and less and less controllable.

The equivalent settings are Indent at for Before (text) and Aligned at for First line (indent) in the Position tab.

Numbering alignment should be left to its default Left, i.e. writing direction. It is used only for very special effect with “ordinary” numbering preceding the item on the same line. Numbering alignment specifies how the number will be laid out at this reference position. Note the emphasised words. If you want your number centred within the paragraph area, it is obvious that the number will not be located at this position but shifted across the sheet. And the setting won’t make any sense.

To give a thorough explanation, the numbering alignment does not refer to “global” text flow between margins/indents but to a very “local” shift around the reference position. In the ordinary case of standard reading order (from left to right) without shift, the reference position is at left of number. If you select centre, the number is centred over the position. With right, the reference position is at right of number, resulting in the number being set in the margin if indent is 0.0cm.

Now back to your case. You configured Heading 1 for centre alignment. This will cause the number to drift. Consequently, don’t try to fiddle with Numbering alignment because the reference position and number are now "detached*. Leave it at Left so that you don’t introduce ambiguity about text flow, separate alignment or writing direction.

Everything I explain should be mirrored in case your script is RTL.

Thank you for your detailed response, ajlittoz. While I couldn’t find all the settings you referred to, I understood enough to make the following settings which solved the problem.

For the paragraph style: In the Indents & Spacing tab, Before text is set to 0.00". In the Alignment tab, Center is applied.

For Chapter Numbering: In the Position tab, Numbering alignment is set to Left.

Is that what you were advising me to use?

Yes. As I alluded, the labelling for the setting is not ideal because it suggests wrong leads. It took me hours of experimentation to understand what each setting controls.