Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


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


Table_name - author: john

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

share|improve this question
why the downvotes? if you don't know the answer do not blame me. – Fel Sep 26 '11 at 2:22
For what it's worth, your question was hard to understand. I tried to reword it and hope it makes more sense now. – slhck Sep 26 '11 at 9:19
thank you. I found a solution with tables, but is not very functional. – Fel Sep 26 '11 at 14:13
I've added an answer regarding general indexes (alphabetic index). Does this fit your needs? You're writing about a table - is your question specific to creating an index of tables based on the table captions? This would require a different solution. – tohuwawohu Sep 27 '11 at 12:16
up vote 4 down vote accepted

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .