Ask Your Question
0

Writer How can I find text by attribute and replace with a style?

asked 2019-07-24 16:30:54 +0200

big_smile gravatar image

updated 2019-07-24 17:02:04 +0200

I have several long documents, where the same formatting is used through out, but Paragraph styles have not been used.

Example: On every page, there is a heading in Bold, font size 24. There is a subheading in Bold, font size 12. etc

Is it possible to use find and replace to find text by formatting attribute and then use replace to apply a paragraph style?


Steps I have tried:

Step one: Using the built-in Find and Replace.

With this, I can search text that has specific formatting attributes, but there doesn't seem to be any way to replace the found text with a paragraph style.

The find and replace has a checkbox option for "Including Styles". However, there does not seem to be any way to select paragraph style in the replace field.

Step 2: Using the "Alternative Find & Replace" addon

This add on is supposed to allow the use of styles in Find and Replace.

But when I use it, I just get this screen:

image description

It let's me use Paragraph styles in the replace, but I can't search by formatting attribute.

Environment: Libre Office Version: 6.2.5.2 On Mac OS X 10.14.5

edit retag flag offensive close merge delete

Comments

Have you tried tab: Properties in Search for?

Opaque gravatar imageOpaque ( 2019-07-24 16:51:17 +0200 )edit

@Opaque Are you talking about alt.Find and Replace? When I click on properties, nothing happens. How do I use it to select formatting attribute? Thanks!

big_smile gravatar imagebig_smile ( 2019-07-24 17:03:42 +0200 )edit

@big_smile, yes alt.Find and Replace - according to the screenshot. Sorry for this imprecise comment (Before commenting checked on my Linux, where there a plenty of formats to search for; did not check on Mac OS X Mojave).

Opaque gravatar imageOpaque ( 2019-07-24 19:30:00 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2019-07-24 17:31:55 +0200

Grantler gravatar image

updated 2019-07-24 17:44:44 +0200

Step one: Using the built-in Find and Replace.

With this, I can search text that has specific formatting attributes, but there doesn't seem to be any way to replace the found text with a paragraph style.

If your text is hard formatted (e.g. font size 24) you can search/find all and the text is selected. Close FIND&REPLACE and the text still is selected. Apply any paragraph style and the selected paragraphs (and texts) will change the properties.

If there are more than one font sizes within one paragraph you have to use some steps more (search/find paragraph style and hit STRG+M (STRG = German for CTRL) resp. CTRL+M for eliminating rests of hard format).

edit flag offensive delete link more

Comments

STRG = Steuerung? I took the liberty to replace it with CTRL

ajlittoz gravatar imageajlittoz ( 2019-07-24 17:36:29 +0200 )edit

@ajlittoz You're right, German Steuerung means English control. I updated my answer. Thanks a lot!

Grantler gravatar imageGrantler ( 2019-07-24 17:43:51 +0200 )edit

@Grantler: Bitte schön! I couldn't edit your answer because I'm experiencing service disruption (lots of "server internal error"). I think my account is corrupted.

ajlittoz gravatar imageajlittoz ( 2019-07-24 18:18:37 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-07-24 16:30:54 +0200

Seen: 39 times

Last updated: Jul 24