Ask Your Question
0

Writer: Is it possible to generate a list from Character Styles?

asked 2021-04-17 22:35:31 +0200

perolav gravatar image

I have used some Character Styles in LO Writer. Is it possible to generate an automatic list/register and a reference to where in the document (page nr.) they are present?

edit retag flag offensive close merge delete

Comments

In the side bar, at the bottom, change from Hierarchical to Applied Styles to see the styles in the current document

Earnest Al gravatar imageEarnest Al ( 2021-04-18 03:57:17 +0200 )edit

Unfortunately Edit>Find & Replace doesn't search for character styles (only paragraph styles).

ajlittoz gravatar imageajlittoz ( 2021-04-18 07:55:02 +0200 )edit

Thanks for the reply. I'm wondering how to get a list of "keywords" and "surenames" in my document. I've given them different Character Styles, but perhaps this is not the best way to do it? Like a surename-register at the end of the document so its easy to find the right person mentioned in the document etc.?

perolav gravatar imageperolav ( 2021-04-18 12:40:20 +0200 )edit

Quoting @perolay: "...but perhaps this is not the best way to do it?"
It's surely a specifically bad way.
@ajlittoz aready hinted how to get your surname index by appropriate means.
Remains the question how many names you aready marked the bad way, and if you made sure to always used the same character style.
Only if the answers are "very many" and "yes, surely", an attempt to automate the revision might be sensible.
To find all the text portions having set a specific named character style, you can use the well-known ecxtension AltSearch.

Lupp gravatar imageLupp ( 2021-04-18 14:45:46 +0200 )edit

Thanks for the help. This was very useful and a lot easier. Still has a lot to do manually, but this looks like the right solution. Its about 45 pages with around 100 keywords and surnames, but most of them will be quick to find, I think.

@Lupp, I will check the extension out!

perolav gravatar imageperolav ( 2021-04-18 15:44:48 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-04-18 14:00:20 +0200

ajlittoz gravatar image

updated 2021-04-18 14:00:44 +0200

Apologies for not reading accurately your question. Let me reword it. Correct me if again I don't understand.

You goal seems to be able to create a list of person names and references to where these names occur in text.

This is simply the definition of an Alphabetical Index.

The first step is to mark up the occurrences in the text:

  • Select the name (it may be simply the name, first name and family name group or anything else related to the name)
  • Insert>TOC & Index>Index Entry
  • Entry field is prefilled with the selection

    You can change it for something else: it is common that names are misspelled in ancient records. Forcing Entry to a "standard* spelling is a way to normalize or group names

  • Insert

At the location where you want the index to appear:

  • Insert>TOC & Index>TOC, Index or Bibliography
  • Select Alphabetical Index from Type drop-down menu
  • Set options to your taste
  • Eventually, change the caption for the index at Title
  • OK

This is not exclusive from having your names also character-styled so that you can highlight them in your document. Assigning a character style can be done simultaneously with the markup. To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2021-04-17 22:35:31 +0200

Seen: 39 times

Last updated: Apr 18