8

Problem:

How do I apply two styles in the same line in LibreOffice?

The main problem is that I need two different styles:

  • one for the index and
  • one that is not supposed to appear in the index

Example:

Table_name - author: john

In the index, I only want "table_name". The author should not appear in the index.

Andrea
  • 1,536
Fel
  • 261

1 Answers1

6

It seems that there are two different issues combined in this question:

  • Restricting an index entry to a single word, not the complete paragraph;
  • Applying different styles in the same paragraph;

To restrict an index entry to a single word, just double-click that word and select (from Menu Insert) Indexes and Tables -> Entry. In the following dialogue, you can select if the word should appear in the TOC, the alphabetical index, or in a user-defined index.

Applying different styles can be done using character styles for the index entries.

Character Styles Window

After creating a character style for those entries (in my screenshot: "Indexed Word"), you will have to assign it manually to the words marked as index entries. To navigate between those entries, you can use the navigation window,

"Open Navigation" Button

selecting index entries as navigation object:

Navigation Window

tohuwawohu
  • 11,143