Create index entries using a paragraph style

Hello everyone,
Is there a way to automatically create an index entry every time X paragraph style is used in a document ? That way, I could create an alphabetical index simply by applying a style to the text I need.
Thanks in advance for your replies.

OS : Linux Mint 22.1 (Cinnamon)
LO 25.2.1
File(s) saved in the usual ODT format

Please could you be more specific? By “index entry”, do you mean text to be entered into the Alphabetical Index? Or some kind of heading for the TOC (but then which level? there are 10 of them)?

Provide these precisions by editing your question so that everything is at the same location without the need for scrolling. For that, click on … below the question, then on the “pencil” icon.

Don’t forget to mention OS name, LO version and save format.

1 Like

There you go

Alphabetical index entries are not created from paragraphs. They are an “annotation” anchored (or attached) to some location in your text. Initially, at Insert>TOC & Index>Index Entry time, they can be built from the current selection or word.

Alternatively to your requirement, you can create an entry manually and tick Apply to all other occurrences checkbox to capture all uses of the same term in your document.

Another approach, avoiding the need to tag your document, is to use a concordance file containing the words to include in the index. Such a file can be created when you insert the index: tick Concordance file and the drop-down menu File allows you to New to create an in initial version. The concordance file is a plain text file you can also edit outside LO with a text editor.

PS: “latest stable version” does not mean anything for anybody else than you because update cycle does not proceed at same rate over all platforms and distros. E.g. yu’re under Mint 22.1 and this is probably different from Mint 24 or 25. Prefer to mention explicitly the release. I am under 24.8.5.2 – lastest stable in Fedora 41 – though 25.2.x.y has already been released as “stable”.

Thanks for your explanations and alternatives