Is it possible to number paragraphs with different text prefixes in different sections?

I’d like to list a number of bird species in one sub-section, then a number of snake species in another, and a number of bee species in a third section, etc.

I’ve shown this in the example at the end.

I don’t want to use Heading numbers for these.

If i use “Numbering 123”, then i can manage to number the different species serially. But, I’d like a “prefix” before the numbers to indicate context (whether i am talking about birds, snakes, or bees.).

Is there a way to do this? If i use “Separator Before”, that gets applied to all paragraphs with “Numbering 123” list style, as in the following example.

I used different paragraph styles for the birds, snakes, and bees. In each I chose “Numbering 123” as the list style.

I browsed ask.libreoffice.org and found the following:
How do I create numbered paragraphs in the context of "Heading 1" without polluting the "Heading 2"

But, this is different from my requirement.

Thank you.
Ramki

1 Chapter 1

1.1 Species of Birds

Bird 1. Bird 1: Red Wattled Lapwing

Bird 2. Bird 2: Cattle Egret

Bird 3. Bird 3: Black Drongo

1.2 Species of Snakes

Bird 1. Snake 1: Cobra

Bird 2. Snake 2: Rat Snake

1.3 Species of Bees

Bird 1. Bee 1: Bumblebee

Bird 2. Bee 2: Indian Honeybee

Bird 3. Bee 3: Eurpoean Honeybee

1.4 Species of …

2 Chaper 2

What defines membership to a “logical” list is the list style, not the paragraph style. The paragraph style operates on list item text. Manipulating item number is done with the list style.

You need 3 different list styles. Let’s call them Bird 123, Snake 123 and Bee 123.

To create them, display the style sidepane. Click on the fifth icon from the left in the style toolbar to display list styles. Right-click anywhere in the list and New. Play only with Position and Customize tabs (you can initialise configuration with the other tabs but once you’ve begun customising, never come back to the shortcut tabs because you’ll erase your customisation).

Once you have created your list styles, you have two options:

  • fully automatic use
    You attach a list style to a specific paragraph style via its Outline & List tab, which means you’ll create one paragraph style per category, though usually the appearance is the same).

  • semi direct formatting
    Here, you have a single paragraph style for the list (which makes sense because semantically the lists have same structure and significance). You dynamically attach the list style by double-clicking its name in the style sidepane while the cursor is in the item.

Thank you very much!

Amazingly elegant and simple solution!

I should (and, could) have framed my question in a much simpler way as: How do i create numbered lists similar to ‘Number 123’?

Then it would not have got the same answer (because creating new list styles is very simple).
Your question contains the interesting point about “what is a list”. This point is very intriguing and misleading for newbies.

Here, you want really independent lists. This is not the same as having several lists belonging in the same “logical” model: you do this by resetting the number.
Observe that with independent logical lists, you can interlace them without disturbing their numberings: they live in different spaces.

1 Like

Great! Thank you very much for pointing out this subtle, but important, aspect!

you can adjust the macro outlined in this post, to cope with the naming convention of your styles on the line : if tC.CharStyleName ...

Thank you! Since the elegant solution suggested by @ajlittoz is sufficient for me I didn’t try the macro solution.