Numbered lines in paragraph style

Finding the process of numbering certain lines in certain paragraphs cumbersome, so I’d like to do as advised on the link text where it says:

You can also create a paragraph style that includes line numbering, and apply it to the paragraphs that you want to add line numbers to.

Having a little trouble doing this. Everything I try comes out as a numbered list, and not numbered lines.

Any help appreciated on this.

OP: @Stephen1

Do you have followed steps 1 to 7 in the part “To Add Line Numbers to Specific Paragraphs” in the linked text? Do you have created a new style? If yes, choose it in Style&Formatting dialog > context menu > “modify” > “Outline & Numbering”. It has three sections. You need the lower one, that is labeled “Line numbering”. After you have finished with the style, apply it to the paragraphs by double-click on the style name. If it does not work, please give a detailed step by step description.

That are two different problems “Getting line numbering into a style” and “Make a new style available in other documents”. For the latter the template manager is needed, but see https://bugs.freedesktop.org/show_bug.cgi?id=60589 .

If your new style appears under “Index”, you work in the wrong category. You must not create a List style but a Paragraph style, the left most category.

Noted and got it. Thanks for your patience and knowledgeable help. Hope they get that bug fixed.

Hi. Thanks for your answer. Yes I can successfully do all the steps from 1-7 in the ‘To Add Line Numbers…’ The problem appears to be the new style.I’ve tried following the instructions of ‘Creating a new Style’ from link text. When I carry out the instructions ‘Click the arrow next to the New Style from Selection icon and choose New Style from Selection from the submenu;Type a name in the Style Name box’, (and I call it ‘Line_numbering’) it appears under ‘Index.’ This works for the current document, but if I open another document, and hit F11 for the ‘Styles and Formatting’ context menu, my new style has disappeared. I’ve tried ‘Updating style’ after creating it but it doesn’t make any difference.