Page 1 of 1

Change of the properties of paragraphs' numeration in Writer

Posted: Mon Mar 08, 2021 2:36 pm
by vadval15
How can I place a text cursor to the numbers of the numbered paragraphs of a text document to change their properties using a macro? Thank you in advance for your reply.

Re: Change of the properties of paragraphs' numeration in Wr

Posted: Mon Mar 08, 2021 4:14 pm
by JeJe
Not sure what you mean...

Do you mean the nth Outline Numbered paragraph?
Or do you want to go to the nth paragraph of the document?
Or do you want to set the text cursor to a paragraph while enumerating the paragraphs?

Edit:
Or do you mean the actual numbering of the Outline Numbered paragraphs?

Re: Change of the properties of paragraphs' numeration in Wr

Posted: Tue Mar 09, 2021 12:28 am
by vadval15
Thank you for the answer. The ways I know how to navigate a text document include only paragraphs, but do not cover their numbering. To change the properties of these numbers (color in particular), I need to position the text cursor at the beginning of the range, and then select the fragment to be changed. How to do this using Basic, I do not know.

Re: Change of the properties of paragraphs' numeration in Wr

Posted: Tue Mar 09, 2021 10:45 am
by JeJe
Still not following - you could provide a screenshot or attach a document with your question.

Do you mean the numbering that is set with Format Menu/Paragraph/Outline & Numbering tab/Numbering style?

The numbering style has a character style and you change the character style to change the color of the numbering.

Re: Change of the properties of paragraphs' numeration in Wr

Posted: Fri Mar 12, 2021 1:40 am
by vadval15
List.jpg
List.jpg (15.95 KiB) Viewed 9986 times
Yes, you are right, this is exactly the numbering I mean. Ultimately, I should end up with paragraph numbers of different colors. The problem is that the command gotoStartOfParagraph moves the text cursor after the paragraph number, to its first letter. Which command can put the text cursor on the paragraph number, I don't know.

Re: Change of the properties of paragraphs' numeration in Wr

Posted: Fri Mar 12, 2021 2:33 am
by JeJe
You can't put the text cursor on the paragraph number - it doesn't work like that, its not available to you.

It looks that you can achieve what you want by setting the paragraph style to one which has the font color set to the one you want the paragraph number to be and then changing the color of the rest of the paragraph's text to black with format/character/font color.

You need a character such as a space at the start of the text which remains the same color as the paragraph number though.

Awkward... maybe someone else has another way.

Re: Change of the properties of paragraphs' numeration in Wr

Posted: Sun Mar 14, 2021 11:24 am
by vadval15
Thank you for your help. I think that your solution is the most appropriate.