Quote style inherits numbering of previous List Paragraph style

I’m numbering my paragraphs throughout a long text. Sometimes I want to include an italicized and indented quote. However, when applying the Quote style, each of the quoted paragraphs is also numbered as if it’s part of the List Paragraph list. I have to manually disable numbering to avoid this.

I thought this meant that Quote was inheriting from List Paragraph, but when editing the Quote style, I see that it inherits from Default Paragraph Style, which has no numbering attached at all. (Yet, when I apply ‘Default Paragraph Style’ to a ‘List Paragraph’, the numbering isn’t removed either. Why is the numbering so sticky?)

Any ideas on what I could try next?

There are 3 main layers of formatting in Writer, from deeper to shallower:

  • paragraph style
  • character style
  • direct formatting

Every shallower (higher) layer overrides similar attributes. But every layer is independent from the others.

When you set a style (paragraph or character), it remains active until changed (either by a Next Style setting or a manual application). The same goes for direct formatting.

This means that a character style remains effective when you hit Enter to end a paragraph and start a new one. The same for direct formatting.

You didn’t tell how you enabled list numbering. I assume you either pressed a toolbar button (full direct formatting) or applied a list style (partial direct formatting). Since this numbering lives in the direct formatting layer, it remains active after Enter. But this type of direct formatting cannot be cleared with Ctl+M.

It is possible to shift list (or bullet) numbering into the paragraph style layer to make it disappear when you change style. This is done by changing paragraph style configuration in Outline & List tab where you associate a list style to this paragraph style.

You have noticed that all built-in List x (intended for bullets) and Numbering x (intended for numbers) styles do not show bullet nor number as shipped from the factory. You can associate your preferred list style to them.

If you do so, I have not sure if you won’t meet issue in the presently numbered items. As always, direct formatting is very sticky. My procedure to get rid of spurious numbering is to disable it (press Bksp at the very beginning of the item), apply Body Text (Ctl+0) and reapply my numbered paragraph style. After this stance, situation is back to normal.

REMARK

There are two schools regarding list numbering.

  • full styling: you specialise paragraph styles to be automatically numbered; this is my preferred method, but some object that it implies more paragraph styles
  • direct-format numbering: a list style is applied on any paragraph style; but you then bump into the general issues of direct formatting

In any case, avoid using Format>Bullets & Numbering or the equivalent toolbar button because it is unfortunate (personal opinion) compatibility device to mimic the badly designed feature in Word. It may not look so but you sooner or later meet big problems when you want to interleave separate lists.

PS: due to subtle differences, always mention OS name, exact LO version and save format. The latter is particularly important here because DOCX has no notion of list styles.

Thanks for the swift and extensive reply. I am indeed working in a .docx file, so that might be the reason.

The List Paragraph is numbered at the paragraph style level. It could be that it is also numbered at the direct formatting level, but I don’t know where I could check that in the UI?

As I mentioned DOCX format has no notion of list style. Consequently when you save, styling is converted to direct formatting. When the document is then re-opened, Writer has no way to guess from which (inexistent) style the number comes back and you’re locked in the awful generic Format>Bullets & Numbering direct formatting .

Have you any stringent reason to work DOCX? In any application, always work in native format, here .odt. I am afraid there is no way to recover from DOCX rot (cumulative damage due to repetitive conversions) if you already had many editing sessions. Even when your document is intended for an external recipient who (wrongly) claims he can’t read ODF, internally work ODF (i.e. .odt) and only export DOCX prior to sending to your recipient. In case, the latter modifies your document, manually incorporate the changes in your original ODF (enable change tracking to ease detection of changes).

If you want to revert to ODF, the most reliable way is to paste your existing text as unformatted in a new blank document. Of course, you’ll have to recreate styles (which anyway weren’t kept in the DOCX except for paragraph styles) and apply them anew.